Check for when reg key list is nil

git-svn-id: file:///home/svn/framework3/trunk@13157 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Carlos Perez 2011-07-12 21:05:44 +00:00
parent dc84ee6aab
commit 8e5c5e114d
1 changed files with 5 additions and 2 deletions

View File

@ -47,8 +47,11 @@ class Metasploit3 < Msf::Post
] ]
apps = [] apps = []
appkeys.each do |keyx86| appkeys.each do |keyx86|
registry_enumkeys(keyx86).each do |ak| found_keys = registry_enumkeys(keyx86)
apps << keyx86 +"\\" + ak if found_keys
found_keys.each do |ak|
apps << keyx86 +"\\" + ak
end
end end
end end