PORT STATE SERVICE
47808/udp open BACNet -- Building Automation and Control NetworksEnumerate
枚举
手动
pip3installBAC0pip3installnetifacesimportBAC0importtimemyIP='<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 devicestime.sleep(5) #Wait for devices to respondfor 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