make ftp guest attempts optional

bug/bundler_fix
David Maloney 2014-06-11 16:37:59 -05:00
parent 1164cf5363
commit 83a2dc250d
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 4 additions and 2 deletions

View File

@ -126,8 +126,10 @@ 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 = [ ]
['IEUser@', 'User@', 'mozilla@example.com', 'chrome@example.com' ].each do |password| if datastore['RECORD_GUEST']
anon_creds << Metasploit::Framework::Credential.new(public: 'anonymous', private: password) ['IEUser@', 'User@', 'mozilla@example.com', 'chrome@example.com' ].each do |password|
anon_creds << Metasploit::Framework::Credential.new(public: 'anonymous', private: password)
end
end end
anon_creds anon_creds
end end