x11-access NSE script — Nmap Scripting Engine documentation (original) (raw)
Script types: portrule
Categories:default, safe, auth
Download: https://svn.nmap.org/nmap/scripts/x11-access.nse
Script Summary
Checks if you're allowed to connect to the X server.
If the X server is listening on TCP port 6000+n (where n is the display number), it is possible to check if you're able to get connected to the remote display by sending a X11 initial connection request.
In reply, the success byte (0x00 or 0x01) will determine if you are in the xhost +
list. In this case, script will display the message:X server access is granted
.
Example Usage
nmap -sV -sC
Script Output
Host script results: |_ x11-access: X server access is granted
Requires
- nmap
- string
Author:
License: Same as Nmap--See https://nmap.org/book/man-legal.html