47808/udp - Pentesting BACNet

htARTE (HackTricks AWS Red Team 전문가)에서 AWS 해킹을 처음부터 전문가까지 배우세요!

다른 방법으로 HackTricks를 지원하는 방법:

프로토콜 정보

BACnet건물 자동화 및 제어 (BAC) 네트워크통신 프로토콜로, ASHRAE, ANSI, 및 ISO 16484-5 표준 프로토콜을 활용합니다. 이는 건물 자동화 및 제어 시스템 간의 통신을 용이하게 하며 HVAC 제어, 조명 제어, 출입 제어 및 화재 감지 시스템과 같은 응용 프로그램이 정보를 교환할 수 있도록 합니다. BACnet은 상호 운용성을 보장하며, 특정 서비스의 종류에 관계없이 컴퓨터화된 건물 자동화 장치가 통신할 수 있도록 합니다.

기본 포트: 47808

PORT      STATE SERVICE
47808/udp open  BACNet -- Building Automation and Control NetworksEnumerate

열거

수동

pip3 install BAC0
pip3 install netifaces

import BAC0
import time

myIP = '<Your IP>/<MASK>' #You need to be on the same subnet as the bacnet device. Example: '192.168.1.4/24'
bacnet = BAC0.connect(ip=myIP)
bacnet.whois() #Broadcast request of bacnet devices
time.sleep(5)  #Wait for devices to respond
for i, (deviceId, companyId, devIp, numDeviceId) in enumerate(bacnet.devices):
print(f"-------- Device #{numDeviceId} --------")
print(f"Device:     {deviceId}")
print(f"IP:         {devIp}")
print(f"Company:    {companyId}")
readDevice = bacnet.readMultiple(f"{devIp} device {numDeviceId} all")
print(f"Model Name: {readDevice[11]}")
print(f"Version:    {readDevice[2]}")
# print(readDevice) #List all available info about the device

자동

nmap --script bacnet-info --script-args full=yes -sU -n -sV -p 47808 <IP>

이 스크립트는 외부 장치로 BACnet 네트워크에 가입하려고 시도하지 않습니다. 단순히 IP 주소 지정 장치로 BACnet 요청을 직접 보냅니다.

Shodan

  • port:47808 instance

  • "Instance ID" "Vendor Name"

Last updated