scapy.contrib.exposure_notification

Apple/Google Exposure Notification System (ENS), formerly known as Privacy-Preserving Contact Tracing Project.

This module parses the Bluetooth Low Energy beacon payloads used by the system. This does not yet implement any cryptographic functionality.

More info:

Bluetooth protocol specifications:

class scapy.contrib.exposure_notification.Exposure_Notification_Frame(_pkt, /, *, identifier=None, metadata=None)[source]

Bases: Packet, LowEnergyBeaconHelper

Apple/Google BLE Exposure Notification broadcast frame.

aliastypes = [<class 'scapy.contrib.exposure_notification.Exposure_Notification_Frame'>, <class 'scapy.packet.Packet'>]
build_eir()[source]

Builds a list of EIR messages to wrap this frame.

fields_desc: ClassVar[List[Field[Any, Any] | _FieldContainer]] = [<StrFixedLenField (Exposure_Notification_Frame).identifier>, <StrFixedLenField (Exposure_Notification_Frame).metadata>]