hacktricks/network-services-pentesting/47808-udp-bacnet.md

4 KiB

Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)!

Njia nyingine za kusaidia HackTricks:

Taarifa za Itifaki

BACnet ni itifaki ya mawasiliano kwa mitandao ya Udhibiti na Uendeshaji wa Majengo (BAC) ambayo inatumia itifaki ya kiwango cha ASHRAE, ANSI, na ISO 16484-5. Inarahisisha mawasiliano kati ya mifumo ya udhibiti na uendeshaji wa majengo, ikiruhusu matumizi kama udhibiti wa HVAC, udhibiti wa taa, udhibiti wa ufikiaji, na mifumo ya kugundua moto kubadilishana habari. BACnet inahakikisha uwezo wa kufanya kazi pamoja na kuruhusu vifaa vya kiotomatiki vya udhibiti wa majengo kuzungumza, bila kujali huduma maalum wanazotoa.

Bandari ya chaguo: 47808

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

Uchambuzi

Kwa Mkono

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

Kiotomatiki

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

Hati hii haina jaribio la kujiunga na mtandao wa BACnet kama kifaa cha kigeni, badala yake inatuma maombi ya BACnet moja kwa moja kwa kifaa chenye anwani ya IP.

Shodan

  • port:47808 instance
  • "Instance ID" "Vendor Name"
Jifunze AWS hacking kutoka sifuri hadi shujaa na htARTE (HackTricks AWS Red Team Expert)!

Njia nyingine za kusaidia HackTricks: