Store SSH key as a note

I know, I know, it should use the creds model. >:[
bug/bundler_fix
William Vu 2016-05-19 15:12:58 -05:00
parent 9f738c3e41
commit d018bba301
1 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,12 @@ class MetasploitModule < Msf::Exploit::Remote
refs: self.references,
info: ssh.transport.server_version.version
)
report_note(
host: rhost,
port: datastore['SSH_PORT'],
type: 'airos.ssh.key',
data: private_key
)
return Net::SSH::CommandStream.new(ssh, '/bin/sh', true)
end