From 66569165ac5222304426d86983bbb8a14094f4d8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 18 Oct 2013 16:05:45 +0000 Subject: [PATCH] Add xmloutput to x11-access.nse --- scripts/x11-access.nse | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/x11-access.nse b/scripts/x11-access.nse index 98a04f59a..c4aa71686 100644 --- a/scripts/x11-access.nse +++ b/scripts/x11-access.nse @@ -19,6 +19,9 @@ the xhost + list. In this case, script will display the message: -- @output -- Host script results: -- |_ x11-access: X server access is granted +-- +-- @xmloutput +-- true author = "vladz" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" @@ -66,6 +69,6 @@ action = function(host, port) -- Check if first byte received is 0x01 (xTrue: succeed). if string.match(result, "^\001") then - return "X server access is granted" + return true, "X server access is granted" end end