1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

Adds support for Ed25519 keys to script ssh-hostkey

This commit is contained in:
nnposter
2016-12-28 18:23:58 +00:00
parent 3961450aad
commit 8bc9473a55
3 changed files with 8 additions and 0 deletions

View File

@@ -300,6 +300,9 @@ local function portaction(host, port)
key = ssh2.fetch_host_key( host, port, "ecdsa-sha2-nistp521" )
if key then table.insert( keys, key ) end
key = ssh2.fetch_host_key( host, port, "ssh-ed25519" )
if key then table.insert( keys, key ) end
if #keys == 0 then
return nil
end