pass the public key in as a file instead of data
when using key_data it seems to assume it is a private key now. the initial key parsing error can be bypassed by doing this 7321bug/bundler_fix
parent
dfcd5742c1
commit
26491eed1a
|
@ -208,7 +208,8 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
opt_hash = {
|
opt_hash = {
|
||||||
:auth_methods => ['publickey'],
|
:auth_methods => ['publickey'],
|
||||||
:port => port,
|
:port => port,
|
||||||
:key_data => key_data[:public],
|
#:key_data => key_data[:public],
|
||||||
|
:keys => [ datastore['KEY_FILE'] ],
|
||||||
:use_agent => false,
|
:use_agent => false,
|
||||||
:config =>false,
|
:config =>false,
|
||||||
:proxy => factory,
|
:proxy => factory,
|
||||||
|
|
Loading…
Reference in New Issue