mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Replace hyphens in the client SSH banner
Hyphen is not allowed in the software version string (RFC 4253, section 4.2)
This commit is contained in:
@@ -171,7 +171,7 @@ action = function(host, port)
|
||||
return
|
||||
end
|
||||
|
||||
status = sock:send("SSH-2.0-Nmap-SSH2-Enum-Algos\r\n")
|
||||
status = sock:send("SSH-2.0-Nmap_SSH2_Enum_Algos\r\n")
|
||||
if not status then
|
||||
sock:close()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user