From a4d51ff8d629efe11b9c5ebb9ba0e60b710ba7f0 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 27 Aug 2014 19:41:32 +0000 Subject: [PATCH] Handle 'foo=,' case in ntp-info --- scripts/ntp-info.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ntp-info.nse b/scripts/ntp-info.nse index 048faf002..54df5f937 100644 --- a/scripts/ntp-info.nse +++ b/scripts/ntp-info.nse @@ -77,7 +77,7 @@ local kvmatch = U.localize( { lpeg.V "space"^0 * lpeg.V "kv" * lpeg.P ","^-1, kv = lpeg.V "key" * lpeg.P "="^-1 * lpeg.V "value", key = lpeg.C( (lpeg.V "alnum" + lpeg.S "_-.")^1 ), - value = U.escaped_quote() + lpeg.C((lpeg.P(1) - ",")^1), + value = U.escaped_quote() + lpeg.C((lpeg.P(1) - ",")^0), } ) action = function(host, port)