Fix undefined method error

[FixRM #8342]
bug/bundler_fix
sinn3r 2013-08-21 00:45:48 -05:00
parent 8806e76e4d
commit 3a271e7cc7
1 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,12 @@ class Metasploit3 < Msf::Auxiliary
print_status("#{target_url} - Apache Axis - Dumping administrative credentials")
if (res and res.code == 200)
if res.nil?
print_error("Connection timed out")
return
end
if (res.code == 200)
if res.body.to_s.match(/axisconfig/)
res.body.scan(/parameter\sname=\"userName\">([^\s]+)</)