Skip to content

Commit 5d96f54

Browse files
committed
Be verbose about 307
1 parent 88b7dc3 commit 5d96f54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/sap/sap_icm_urlscan.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def check_url(url)
116116
vprint_status("#{full_url} - not found (#{res.code})")
117117
when 400,500
118118
print_status("#{full_url} - produced a server error (#{res.code})")
119-
when 301, 302
119+
when 301, 302,
120120
print_good("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
121121
@valid_urls << full_url << "\n"
122122
when 307
123-
vprint_status("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
123+
print_status("#{full_url} - redirected (#{res.code}) to #{res.redirection} (not following)")
124124
else
125125
print_error("#{full_url} - unhandled response code #{res.code}")
126126
@valid_urls << full_url << "\n"

0 commit comments

Comments
 (0)