1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 13:19:01 +00:00

Add xmloutput to x11-access.nse

This commit is contained in:
dmiller
2013-10-18 16:05:45 +00:00
parent 8ce3b65272
commit 66569165ac

View File

@@ -19,6 +19,9 @@ the <code>xhost +</code> 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