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.
1 parent 8a51305 commit 9aa3c75Copy full SHA for 9aa3c75
modules/post/windows/gather/enum_services.rb
@@ -108,8 +108,12 @@ def run
108
vprint_good(msgString)
109
lootString << msgString
110
end
111
- rescue
+ rescue ::Exception => e
112
+ # July 3rd 2014 wchen-r7: Not very sure what exceptions this method is trying to rescue,
113
+ # probably the typical shut-everything-up coding habit. We'll have to fix this later,
114
+ # but for now let's at least print the error for debugging purposes
115
print_error("An error occured enumerating service: #{sname}")
116
+ print_error(e.to_s)
117
118
else
119
print_error("Problem enumerating services")
0 commit comments