make ftp guest attempts optional
parent
1164cf5363
commit
83a2dc250d
|
@ -126,9 +126,11 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# Always check for anonymous access by pretending to be a browser.
|
# Always check for anonymous access by pretending to be a browser.
|
||||||
def anonymous_creds
|
def anonymous_creds
|
||||||
anon_creds = [ ]
|
anon_creds = [ ]
|
||||||
|
if datastore['RECORD_GUEST']
|
||||||
['IEUser@', 'User@', 'mozilla@example.com', 'chrome@example.com' ].each do |password|
|
['IEUser@', 'User@', 'mozilla@example.com', 'chrome@example.com' ].each do |password|
|
||||||
anon_creds << Metasploit::Framework::Credential.new(public: 'anonymous', private: password)
|
anon_creds << Metasploit::Framework::Credential.new(public: 'anonymous', private: password)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
anon_creds
|
anon_creds
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue