From 26491eed1acb2a4e38af39979694faa00707aa0a Mon Sep 17 00:00:00 2001 From: David Maloney Date: Fri, 16 Sep 2016 11:48:51 -0500 Subject: [PATCH] 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 --- modules/auxiliary/scanner/ssh/ssh_identify_pubkeys.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/ssh/ssh_identify_pubkeys.rb b/modules/auxiliary/scanner/ssh/ssh_identify_pubkeys.rb index ba2dc228da..d54c1e4579 100644 --- a/modules/auxiliary/scanner/ssh/ssh_identify_pubkeys.rb +++ b/modules/auxiliary/scanner/ssh/ssh_identify_pubkeys.rb @@ -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,