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