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

7321
bug/bundler_fix
David Maloney 2016-09-16 11:48:51 -05:00
parent dfcd5742c1
commit 26491eed1a
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,8 @@ class MetasploitModule < Msf::Auxiliary
opt_hash = {
:auth_methods => ['publickey'],
:port => port,
:key_data => key_data[:public],
#:key_data => key_data[:public],
:keys => [ datastore['KEY_FILE'] ],
:use_agent => false,
:config =>false,
:proxy => factory,