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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user