Skip to content

Commit 5ef1e50

Browse files
author
jvazquez-r7
committed
Make msftidy happy with http_login
1 parent ea60a05 commit 5ef1e50

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

modules/auxiliary/scanner/http/http_login.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,20 @@ def do_login(user='admin', pass='admin')
149149
print_status("#{target_url} - Random passwords are not allowed.")
150150
end
151151

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)
166166
return :next_user
167167
else
168168
vprint_error("#{target_url} - Failed to login as '#{user}'")

0 commit comments

Comments
 (0)