scapy.contrib.altbeacon
scapy.contrib.altbeacon - AltBeacon Bluetooth LE proximity beacons.
The AltBeacon specification can be found at: https://github.com/AltBeacon/spec
- class scapy.contrib.altbeacon.AltBeacon(*args: Any, **kargs: Any)[source]
Bases:
scapy.packet.Packet,scapy.layers.bluetooth.LowEnergyBeaconHelperAltBeacon broadcast frame type.
https://github.com/AltBeacon/spec
- aliastypes
- fields_desc
Display RFC-like schema
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | HEADER | ID1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ID2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ID3 | TX POWER | MFG RESERVED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. AltBeaconAltBeacon fields header
b'\xbe\xac'id1
Noneid2
Noneid3
Nonetx_power
Nonemfg_reserved
None
- magic = b'\xbe\xac'