From 5ab1270cbc1c4cee790b583f081db7ad4753c11d Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 26 Jun 2019 03:22:24 +0000 Subject: [PATCH] Don't print trailing '=' in ssh hostkey fingerprints (sha256) --- nselib/ssh1.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/ssh1.lua b/nselib/ssh1.lua index be56493ef..f943671d8 100644 --- a/nselib/ssh1.lua +++ b/nselib/ssh1.lua @@ -130,7 +130,7 @@ end -- @param bits Key size in bits. fingerprint_base64 = function( fingerprint, hash, algorithm, bits ) fingerprint = base64.enc(fingerprint) - return ("%d %s:%s (%s)"):format( bits, hash, fingerprint, algorithm ) + return ("%d %s:%s (%s)"):format( bits, hash, fingerprint:match("[^=]+"), algorithm ) end --- Format a key fingerprint in Bubble Babble.