From 2078b874af3a959b56596545151a95483823d9ff Mon Sep 17 00:00:00 2001 From: Wei Chen Date: Sun, 31 Jul 2011 19:02:40 +0000 Subject: [PATCH] Wrong order. Should check nil first, and then "" git-svn-id: file:///home/svn/framework3/trunk@13454 4d416f70-5f16-0410-b530-b9f4589650da --- modules/post/windows/gather/enum_coreftp_pwds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/windows/gather/enum_coreftp_pwds.rb b/modules/post/windows/gather/enum_coreftp_pwds.rb index 8a5c1962b7..9e50fe786f 100644 --- a/modules/post/windows/gather/enum_coreftp_pwds.rb +++ b/modules/post/windows/gather/enum_coreftp_pwds.rb @@ -42,7 +42,7 @@ class Metasploit3 < Msf::Post print_status("Looking at Key #{hive['HKU']}") begin subkeys = registry_enumkeys("#{hive['HKU']}\\Software\\FTPware\\CoreFTP\\Sites") - if subkeys.empty? or subkeys.nil? + if subkeys.nil? or subkeys.empty? print_status ("CoreFTP not installed for this user.") return end