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, **kargs)¶ Bases:
scapy.packet.Packet,scapy.layers.bluetooth.LowEnergyBeaconHelperAltBeacon broadcast frame type.
https://github.com/AltBeacon/spec
-
aliastypes¶
-
build_eir()¶ Builds a list of EIR messages to wrap this frame.
-
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'¶
-
classmethod
magic_check(payload)¶ Checks if the given payload is for us (starts with our magic string).
-