X11 Open Display Enumeration
Enumerate exposed X11 displays accepting unauthenticated connections, identify open DISPLAY targets, and assess remote screen access via xauth and xdpyinfo.
HackIndex.io
Language
X11 (X Window System) provides the graphical display framework for Unix and Linux systems. X11 servers listen on TCP ports 6000 and above, where port 6000 corresponds to display :0, port 6001 to display :1, and so on. Nmap identifies the service as X11.
An accessible X11 server with weak or disabled access controls allows an attacker to view the target's screen in real time, capture keystrokes (including passwords), take screenshots, and inject keyboard or mouse input. The xhost + misconfiguration, which disables all access restrictions, is still found in practice. X11 forwarding through SSH can also be abused if the forwarded display is accessible to other users on the system.
Enumeration begins with Nmap's x11-access script to check if the X11 server allows unauthenticated connections. When access is granted, xdpyinfo retrieves display information, xwininfo lists open windows, and xwd captures screenshots of individual windows or the entire screen. The xspy tool or xinput can log keystrokes from the remote display. Testing for X11 access is a standard check during local privilege escalation assessments.
Guides for finding open X11 displays and confirming unauth access
Enumerate exposed X11 displays accepting unauthenticated connections, identify open DISPLAY targets, and assess remote screen access via xauth and xdpyinfo.
Hijack X11 displays to capture screens and inject shells
Exploit unauthenticated X11 displays to capture keystrokes, screenshots, and spawn interactive shells by abusing open DISPLAY sockets.
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.