mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Don't print trailing '=' in ssh hostkey fingerprints (sha256)
This commit is contained in:
@@ -130,7 +130,7 @@ end
|
|||||||
-- @param bits Key size in bits.
|
-- @param bits Key size in bits.
|
||||||
fingerprint_base64 = function( fingerprint, hash, algorithm, bits )
|
fingerprint_base64 = function( fingerprint, hash, algorithm, bits )
|
||||||
fingerprint = base64.enc(fingerprint)
|
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
|
end
|
||||||
|
|
||||||
--- Format a key fingerprint in Bubble Babble.
|
--- Format a key fingerprint in Bubble Babble.
|
||||||
|
|||||||
Reference in New Issue
Block a user