Be verbose about 307

This commit is contained in:
Meatballs 2014-05-19 10:52:06 +01:00
parent 88b7dc3def
commit 5d96f54410
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 2 deletions

View File

@ -116,11 +116,11 @@ class Metasploit3 < Msf::Auxiliary
vprint_status("#{full_url} - not found (#{res.code})")
when 400,500
print_status("#{full_url} - produced a server error (#{res.code})")
when 301, 302
when 301, 302,
print_good("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
@valid_urls << full_url << "\n"
when 307
vprint_status("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
print_status("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
else
print_error("#{full_url} - unhandled response code #{res.code}")
@valid_urls << full_url << "\n"