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)[源代码]

基类:Packet, LowEnergyBeaconHelper

Apple/Google BLE Exposure Notification broadcast frame.

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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                           IDENTIFIER                          |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+                                                               +
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                            METADATA                           |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                 Fig. Exposure_Notification_Frame                 
Exposure_Notification_Frame fields

identifier

StrFixedLenField

None

metadata

StrFixedLenField

None