tip

AWSハッキングを学び、実践する:HackTricks Training AWS Red Team Expert (ARTE)
GCPハッキングを学び、実践する:HackTricks Training GCP Red Team Expert (GRTE) Azureハッキングを学び、実践する:HackTricks Training Azure Red Team Expert (AzRTE)

HackTricksをサポートする

プロトコル情報

BACnetは、ASHRAEANSI、およびISO 16484-5標準プロトコルを活用した、ビルオートメーションおよび制御(BAC)ネットワークのための通信プロトコルです。これは、HVAC制御、照明制御、アクセス制御、火災検知システムなどのビルオートメーションおよび制御システム間の通信を促進し、情報の交換を可能にします。BACnetは相互運用性を確保し、特定のサービスに関係なく、コンピュータ化されたビルオートメーションデバイスが通信できるようにします。

デフォルトポート: 47808

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

列挙

手動

bash
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

自動

bash
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"

tip

AWSハッキングを学び、実践する:HackTricks Training AWS Red Team Expert (ARTE)
GCPハッキングを学び、実践する:HackTricks Training GCP Red Team Expert (GRTE) Azureハッキングを学び、実践する:HackTricks Training Azure Red Team Expert (AzRTE)

HackTricksをサポートする