1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Use a looser match pattern for retrieving the owner out of the identd response. This patch was from Richard Sammet - http://seclists.org/nmap-dev/2009/q4/549

This commit is contained in:
fyodor
2009-11-30 05:58:01 +00:00
parent 0f8c77ba4c
commit c272e68cf3

View File

@@ -65,7 +65,7 @@ action = function(host, port)
if string.match(owner, "ERROR") then if string.match(owner, "ERROR") then
owner = nil owner = nil
else else
owner = string.match(owner, "USERID : .+ : (.-)\r?\n", 1) owner = string.match(owner, "%d+%s*,%s*%d+%s*:%s*USERID%s*:%s*.+%s*:%s*(.+)\r?\n", 1)
end end
try(client_ident:close()) try(client_ident:close())