Show the IP address if it doesn't match the VHOST
parent
3c394d673d
commit
b8eee4a9e4
|
@ -127,15 +127,21 @@ class Metasploit3 < Msf::Auxiliary
|
|||
print_error("You need need to set AUTH_URI when using PUT Method !")
|
||||
return
|
||||
end
|
||||
|
||||
extra_info = ""
|
||||
if rhost != vhost
|
||||
extra_info = " (#{rhost})"
|
||||
end
|
||||
|
||||
@uri = find_auth_uri
|
||||
if ! @uri
|
||||
print_error("#{target_url} No URI found that asks for HTTP authentication")
|
||||
print_error("#{target_url}#{extra_info} No URI found that asks for HTTP authentication")
|
||||
return
|
||||
end
|
||||
|
||||
@uri = "/#{@uri}" if @uri[0,1] != "/"
|
||||
|
||||
print_status("Attempting to login to #{target_url}")
|
||||
print_status("Attempting to login to #{target_url}#{extra_info}")
|
||||
|
||||
cred_collection = Metasploit::Framework::CredentialCollection.new(
|
||||
blank_passwords: datastore['BLANK_PASSWORDS'],
|
||||
|
|
Loading…
Reference in New Issue