Skip to content
X11
Service

X11

X11 is a display server protocol. Attackers probe open ports, check for auth bypass, capture keystrokes or screenshots, pivot via display access, and maintain persistence through xhost misconfigs

:6000 :6063 2 guides 2 phases
1 min read Created: Apr 4, 2026 Updated: Sep 14, 2026

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.

Enumeration

Guides for finding open X11 displays and confirming unauth access

1

X11 Open Display Enumeration

Enumerate exposed X11 displays accepting unauthenticated connections, identify open DISPLAY targets, and assess remote screen access via xauth and xdpyinfo.

Sep 14, 2026 • 2 min read

Exploitation

Hijack X11 displays to capture screens and inject shells

1

X11 Session Hijacking

Exploit unauthenticated X11 displays to capture keystrokes, screenshots, and spawn interactive shells by abusing open DISPLAY sockets.

Sep 14, 2026 • 3 min read