File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ def try_user_pass(opts)
209
209
headers [ 'Cookie' ] = 'PBack=0;' << res . get_cookies
210
210
else
211
211
#Login didn't work. no point on going on.
212
- vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } '" )
212
+ vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (HTTP redirect with reason #{ reason } ) " )
213
213
return :Skip_pass
214
214
end
215
215
else
@@ -243,8 +243,8 @@ def try_user_pass(opts)
243
243
return :abort
244
244
end
245
245
246
- if res . code == 302
247
- vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } '" )
246
+ if res . redirect?
247
+ vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (response was a #{ res . code } redirect) " )
248
248
return :skip_pass
249
249
end
250
250
@@ -263,7 +263,7 @@ def try_user_pass(opts)
263
263
report_auth_info ( report_hash )
264
264
return :next_user
265
265
else
266
- vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } '" )
266
+ vprint_error ( "#{ msg } FAILED LOGIN. '#{ user } ' : '#{ pass } ' (response body did not match) " )
267
267
return :skip_pass
268
268
end
269
269
end
You can’t perform that action at this time.
0 commit comments