diff --git a/modules/post/windows/gather/enum_services.rb b/modules/post/windows/gather/enum_services.rb index 828440f454..b13e3eee57 100644 --- a/modules/post/windows/gather/enum_services.rb +++ b/modules/post/windows/gather/enum_services.rb @@ -85,7 +85,7 @@ class Metasploit3 < Msf::Post end #count the occurance of specific credentials services are running as serviceCred = srv_conf['Credentials'].upcase - if not serviceCred == '' + unless serviceCred.empty? if credentialCount.has_key?(serviceCred) credentialCount[serviceCred] += 1 else