From 74a2168a1556a587eaaadadb45d876ae0c9d60e6 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 16 Aug 2012 14:46:40 +0000 Subject: [PATCH] Use base64-encoded key, not double-encoded type and key --- scripts/ssh-hostkey.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ssh-hostkey.nse b/scripts/ssh-hostkey.nse index e5d182e86..7069e99fa 100644 --- a/scripts/ssh-hostkey.nse +++ b/scripts/ssh-hostkey.nse @@ -142,7 +142,7 @@ local function portaction(host, port) fingerprint=stdnse.tohex(key.fingerprint), type=key.key_type, bits=key.bits, - key=base64.enc(key.full_key), + key=base64.enc(key.key), }) if format:find( 'hex', 1, true ) or all_formats then table.insert( output, ssh1.fingerprint_hex( key.fingerprint, key.algorithm, key.bits ) )