File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ def try_user_pass(opts)
248
248
return :abort
249
249
end
250
250
251
+ if res . redirect?
252
+ vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (response was a #{ res . code } redirect)" )
253
+ return :skip_pass
254
+ end
255
+
251
256
if res . body =~ login_check
252
257
print_good ( "#{ msg } SUCCESSFUL LOGIN. '#{ user } ' : '#{ pass } '" )
253
258
@@ -262,12 +267,6 @@ def try_user_pass(opts)
262
267
263
268
report_auth_info ( report_hash )
264
269
return :next_user
265
-
266
- if res . redirect?
267
- vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (response was a #{ res . code } redirect)" )
268
- return :skip_pass
269
- end
270
-
271
270
else
272
271
vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (response body did not match)" )
273
272
return :skip_pass
You can’t perform that action at this time.
0 commit comments