Fix undefined method error

[FixRM #8341]
bug/bundler_fix
sinn3r 2013-08-21 00:47:31 -05:00
parent 3a271e7cc7
commit 217d89fa7c
1 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,12 @@ class Metasploit3 < Msf::Auxiliary
'uri' => uri + payload, 'uri' => uri + payload,
}, 25) }, 25)
if (res and res.code == 200 and res.body) if res.nil?
print_error("Connection timed out")
return
end
if (res.code == 200 and res.body)
if res.body.match(/\<html\>(.*)\<\/html\>/im) if res.body.match(/\<html\>(.*)\<\/html\>/im)
html = $1 html = $1