Fixed issue with a missing nil check in ftp_login

unstable
David Maloney 2012-01-06 20:51:58 -08:00
parent 81acfd2126
commit 40a1d8bcc8
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ class Metasploit3 < Msf::Auxiliary
if datastore['RECORD_GUEST']
report_ftp_creds(user,pass,@access)
else
report_ftp_creds(user,pass,@access) unless @accepts_all_logins[@access].include?(ip)
if @accepts_all_logins[@access]
report_ftp_creds(user,pass,@access) unless @accepts_all_logins[@access].include?(ip)
else
report_ftp_creds(user,pass,@access)
end
end
end
ret