
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
github.com/beattime/bacnet
Advanced tools
bacnet client written in go.
learn some golang if you don't know it first :)
go mod tidy
For usage run:
go mod tidy
cd cli
go run main.go --help
change out the interface and device and so on
go run main.go whois --interface=wlp3s0
go run main.go whois --interface=wlp3s0
go run main.go read --interface=wlp3s0 --device=202 --objectID=1 --objectType=1 --property=87
go run main.go write --interface=wlp3s0 --device=202 --address=192.168.15.20 --network=4 --mstp=1 --objectID=1 --objectType=1 --property=85 --priority=16 --value=21
go run main.go write --interface=wlp3s0 --device=202 --objectID=1 --objectType=1 --property=85 --priority=16 --null=true
go run main.go read --interface=wlp3s0 --device=202 --address=192.168.15.20 --network=4 --mstp=1 --objectID=1 --objectType=1 --property=85
get device name
go run main.go read --interface=wlp3s0 --device=202 --address=192.168.15.20 --network=4 --mstp=1 --objectID=202 --objectType=8 --property=77
Max APDU Length is important on for read/write prop multiple
In the variable "Max APDU Length Accepted" the following are the values that can be returned:
mstp device: 480
ip device: 1476
get device MaxApdu length over MSTP will return 480
go run main.go read --interface=wlp3s0 --device=202 --address=192.168.15.20 --network=4 --mstp=1 --objectID=202 --objectType=8 --property=62
get device MaxApdu length and on the same device but over IP will return 1476
go run main.go read --interface=wlp3s0 --device=202 --address=192.168.15.202 --network=0 --mstp=0 --objectID=202 --objectType=8 --property=62
This library is heavily based on the BACnet-Stack library originally written by Steve Karg.
example whois
bytes := []byte{
0x81, 0x0b, 0x00, 0x08, // BVLC
0x01, 0x00, // NPDU
0x10, 0x08, // APDU
}
pc, err := net.ListenPacket("udp4", ":47809")
if err != nil {
panic(err)
}
defer pc.Close()
addr, err := net.ResolveUDPAddr("udp4", "255.255.255.255:47808")
if err != nil {
panic(err)
}
_, err = pc.WriteTo(bytes, addr)
if err != nil {
panic(err)
}
d := make([]byte, 1)
a, b, c := pc.ReadFrom(d)
fmt.Println(a)
fmt.Println(b)
fmt.Println(c)
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.