File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -149,20 +149,20 @@ def do_login(user='admin', pass='admin')
149
149
print_status ( "#{ target_url } - Random passwords are not allowed." )
150
150
end
151
151
152
- unless ( user == "anyuser" and pass == "anypass" )
153
- report_auth_info (
154
- :host => rhost ,
155
- :port => rport ,
156
- :sname => ( ssl ? 'https' : 'http' ) ,
157
- :user => user ,
158
- :pass => pass ,
159
- :proof => "WEBAPP=\" Generic\" , PROOF=#{ response . to_s } " ,
160
- :source_type => "user_supplied" ,
161
- :active => true
162
- )
163
- end
164
-
165
- return :abort if ( [ any_user , any_pass ] . include? :success )
152
+ unless ( user == "anyuser" and pass == "anypass" )
153
+ report_auth_info (
154
+ :host => rhost ,
155
+ :port => rport ,
156
+ :sname => ( ssl ? 'https' : 'http' ) ,
157
+ :user => user ,
158
+ :pass => pass ,
159
+ :proof => "WEBAPP=\" Generic\" , PROOF=#{ response . to_s } " ,
160
+ :source_type => "user_supplied" ,
161
+ :active => true
162
+ )
163
+ end
164
+
165
+ return :abort if ( [ any_user , any_pass ] . include? :success )
166
166
return :next_user
167
167
else
168
168
vprint_error ( "#{ target_url } - Failed to login as '#{ user } '" )
You can’t perform that action at this time.
0 commit comments