Make conditional easier

bug/bundler_fix
jvazquez-r7 2014-11-25 13:54:08 -06:00
parent ba57bc55b0
commit aad860a310
1 changed files with 3 additions and 5 deletions

View File

@ -199,11 +199,9 @@ class Metasploit3 < Msf::Auxiliary
if result && result.body && result.body =~ /#{clue_start}([^>]*)#{clue_end}/
windows_login = $1
if windows_login.length != 0
print_status("#{peer} - #{windows_login}")
windows_logins.push(windows_login) unless windows_logins.include?(windows_login)
# Verbose output
vprint_status("#{peer} - Test sid: #{win_sid}")
unless windows_login.empty? || windows_logins.include?(windows_login)
windows_logins.push(windows_login)
print_good("#{peer} - #{windows_login}")
end
end