Store SSH key as a note
I know, I know, it should use the creds model. >:[bug/bundler_fix
parent
9f738c3e41
commit
d018bba301
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue