Do something for the shut-everything-up event handling practice

bug/bundler_fix
sinn3r 2014-07-03 13:04:56 -05:00
parent 8a513058f6
commit 9aa3c75234
1 changed files with 5 additions and 1 deletions

View File

@ -108,8 +108,12 @@ class Metasploit3 < Msf::Post
vprint_good(msgString) vprint_good(msgString)
lootString << msgString lootString << msgString
end end
rescue rescue ::Exception => e
# July 3rd 2014 wchen-r7: Not very sure what exceptions this method is trying to rescue,
# probably the typical shut-everything-up coding habit. We'll have to fix this later,
# but for now let's at least print the error for debugging purposes
print_error("An error occured enumerating service: #{sname}") print_error("An error occured enumerating service: #{sname}")
print_error(e.to_s)
end end
else else
print_error("Problem enumerating services") print_error("Problem enumerating services")