diff --git a/scripts/ssh-hostkey.nse b/scripts/ssh-hostkey.nse index cbc7c84f8..042d96691 100644 --- a/scripts/ssh-hostkey.nse +++ b/scripts/ssh-hostkey.nse @@ -37,6 +37,8 @@ gathered keys. --@args ssh_hostkey Controls the output format of keys. Multiple values may be -- given, separated by spaces. Possible values are -- * "full": The entire key, not just the fingerprint. +-- * "sha256": Base64-encoded SHA256 fingerprint. +-- * "md5": hex-encoded MD5 fingerprint (the default). -- * "bubble": Bubble Babble output, -- * "visual": Visual ASCII art representation. -- * "all": All of the above. @@ -281,7 +283,7 @@ local function portaction(host, port) local output_tab = {} local keys = {} local key - local format = nmap.registry.args.ssh_hostkey or "hex" + local format = nmap.registry.args.ssh_hostkey or "md5" local format_bits = { md5 = 1, hex = 1, -- compatibility alias for md5