Don't save creds of anyuser:anypass
If http accepts any user and any pass, it's not a real auth there is no reason to create cred objects for this. These creds have been confusing our usersunstable
parent
c82bb73347
commit
4503a7af50
|
@ -149,18 +149,20 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
print_status("#{target_url} - Random passwords are not allowed.")
|
print_status("#{target_url} - Random passwords are not allowed.")
|
||||||
end
|
end
|
||||||
|
|
||||||
report_auth_info(
|
unless user == "anyuser" and pass == "anypass"
|
||||||
:host => rhost,
|
report_auth_info(
|
||||||
:port => rport,
|
:host => rhost,
|
||||||
:sname => (ssl ? 'https' : 'http'),
|
:port => rport,
|
||||||
:user => user,
|
:sname => (ssl ? 'https' : 'http'),
|
||||||
:pass => pass,
|
:user => user,
|
||||||
:proof => "WEBAPP=\"Generic\", PROOF=#{response.to_s}",
|
:pass => pass,
|
||||||
:source_type => "user_supplied",
|
:proof => "WEBAPP=\"Generic\", PROOF=#{response.to_s}",
|
||||||
:active => true
|
:source_type => "user_supplied",
|
||||||
)
|
:active => true
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
return :abort if ([any_user,any_pass].include? :success)
|
return :abort if ([any_user,any_pass].include? :success)
|
||||||
return :next_user
|
return :next_user
|
||||||
else
|
else
|
||||||
vprint_error("#{target_url} - Failed to login as '#{user}'")
|
vprint_error("#{target_url} - Failed to login as '#{user}'")
|
||||||
|
|
Loading…
Reference in New Issue