Fix undefined method error

[FixRM #8325]
bug/bundler_fix
sinn3r 2013-08-21 01:20:03 -05:00
parent 2fa75e0133
commit 77942f0d29
1 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,11 @@ class Metasploit3 < Msf::Auxiliary
'uri' => "#{$uri}\/$defaultview?Readviewentries",
}, 25)
if res.nil?
print_error("Connection timed out")
return
end
if (res and res.body.to_s =~ /\<viewentries/)
print_good("http://#{vhost}:#{rport} - Lotus Domino - OK names.nsf accessible without credentials")
cookie = ''
@ -85,6 +90,11 @@ class Metasploit3 < Msf::Auxiliary
'data' => post_data,
}, 20)
if res.nil?
print_error("Connection timed out")
return
end
if (res and res.code == 302 )
if res.headers['Set-Cookie'] and res.headers['Set-Cookie'].match(/DomAuthSessId=(.*);(.*)/i)
cookie = "DomAuthSessId=#{$1}"