Fix undefined method error

[FixRM #8336]
bug/bundler_fix
sinn3r 2013-08-21 00:54:08 -05:00
parent 2597c71831
commit 0561928b92
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,11 @@ class Metasploit3 < Msf::Auxiliary
'uri' => uri + payload,
}, 25)
if res.nil?
print_error("Connection timed out")
return
end
print_status("#{rhost}:#{rport} Trying URL " + payload )
if (res and res.code == 200 and res.body)
@ -93,6 +98,7 @@ class Metasploit3 < Msf::Auxiliary
print_error("#{rhost}:#{rport} No HTML was returned")
end
else
# if res is nil, we hit this
print_error("#{rhost}:#{rport} Unrecognized #{res.code} response")
end
i += 1;