mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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
|
return
|
||||||
end
|
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
|
if not status then
|
||||||
sock:close()
|
sock:close()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user