From c272e68cf3e20c08cf3c850ab3d15ad95be3075f Mon Sep 17 00:00:00 2001 From: fyodor Date: Mon, 30 Nov 2009 05:58:01 +0000 Subject: [PATCH] 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 --- scripts/auth-owners.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/auth-owners.nse b/scripts/auth-owners.nse index f3c47f7a3..9ef9e77b5 100644 --- a/scripts/auth-owners.nse +++ b/scripts/auth-owners.nse @@ -65,7 +65,7 @@ action = function(host, port) if string.match(owner, "ERROR") then owner = nil 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 try(client_ident:close())