Wrong order. Should check nil first, and then ""
git-svn-id: file:///home/svn/framework3/trunk@13454 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c59a51667d
commit
2078b874af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue