Nmap x11-access NSE Script


This page contains detailed information about how to use the x11-access NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/x11-access.nse
Script categories: default, safe, auth
Target service / protocol: -
Target network port(s): 6000-6009
List of CVEs: -

Script Description


The x11-access.nse script 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.

X11-access NSE Script Arguments


The x11-access.nse script does not have any arguments.

X11-access NSE Script Example Usage


Here's an example of how to use the x11-access.nse script:

nmap --script=x11-access <target>

X11-access NSE Script Example Output


Here's a sample output from the x11-access.nse script:

Host script results:
|_ x11-access: X server access is granted

X11-access NSE Script Example XML Output


Here's a sample XML output from the x11-access.nse script produced by providing the -oX <file> Nmap option:

 true

Author


  • vladz

References


See Also


Visit Nmap NSE Library for more scripts.

Version


This page has been created based on Nmap version 7.92.