Small fix on authenticated dir check. Thanks Rhys Kidd

git-svn-id: file:///home/svn/framework3/trunk@6603 4d416f70-5f16-0410-b530-b9f4589650da
unstable
et 2009-05-31 01:34:04 +00:00
parent 9fabd18c24
commit ee70866e08
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class Metasploit3 < Msf::Auxiliary
print_status("Found #{wmap_base_url}#{tpath}#{testfdir} #{res.code} (#{wmap_target_host})")
if res.code_to_i == 401
if res.code.to_i == 401
print_status("#{wmap_base_url}#{tpath}#{testfdir} requires authentication: #{res.headers['WWW-Authenticate']}")
wmap_report(vul_id,'DIRECTORY','WWW-AUTHENTICATE',"#{res.headers['WWW-Authenticate']}",nil)
end