We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f4196d + 83a179f commit 79acc96Copy full SHA for 79acc96
modules/post/windows/gather/enum_shares.rb
@@ -56,7 +56,7 @@ def enum_recent_mounts(base_key)
56
recent_mounts = []
57
partial_path = base_key + "\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer"
58
full_path = "#{partial_path}\\Map Network Drive MRU"
59
- explorer_keys = registry_enumkeys(partial_path)
+ explorer_keys = registry_enumkeys(partial_path) || ''
60
if explorer_keys.include?("Map Network Drive MRU")
61
vals_found = registry_enumvals(full_path)
62
if vals_found
0 commit comments