scapy.layers.bluetooth4LE

蓝牙4LE层

class scapy.layers.bluetooth4LE.BDAddrField(name, default, resolve=False)

Bases: scapy.fields.MACField

i2m(pkt, x)
m2i(pkt, x)
class scapy.layers.bluetooth4LE.BTLE

Bases: scapy.packet.Packet

aliastypes
static compute_crc(pdu, init=5592405)
fields_desc
BTLE栏位

access_addr

XLEIntField

2391391958

crc

X3BytesField

None

hashret()
payload_guess

可能的子层: BTLE_ADVBTLE_DATA

post_build(p, pay)
post_dissect(s)
pre_dissect(s)
class scapy.layers.bluetooth4LE.BTLEChanMapField(name, default)

Bases: scapy.fields.XByteField

addfield(pkt, s, val)
getfield(pkt, s)
class scapy.layers.bluetooth4LE.BTLE_ADV

Bases: scapy.packet.Packet

aliastypes
fields_desc
BTLE_ADV栏位

RxAdd

BitEnumField (1位)

0

TxAdd

BitEnumField (1位)

0

RFU

BitField (2 bits)

0

PDU_type

BitEnumField (4位)

0

unused

BitField (2位)

0

Length

XBitField (6位)

None

payload_guess

可能的子层: BTLE_ADV_DIRECT_INDBTLE_ADV_INDBTLE_ADV_NONCONN_INDBTLE_ADV_SCAN_INDBTLE_CONNECT_REQBTLE_SCAN_REQBTLE_SCAN_RSP

post_build(p, pay)
class scapy.layers.bluetooth4LE.BTLE_ADV_DIRECT_IND

Bases: scapy.packet.Packet

aliastypes
fields_desc
BTLE_ADV_DIRECT_IND栏位

AdvA

BDAddrField

None

InitA

BDAddrField

None

class scapy.layers.bluetooth4LE.BTLE_ADV_IND

Bases: scapy.packet.Packet

aliastypes
fields_desc
BTLE_ADV_IND栏位

AdvA

BDAddrField

None

data

PacketListField

[]

class scapy.layers.bluetooth4LE.BTLE_ADV_NONCONN_IND

Bases: scapy.layers.bluetooth4LE.BTLE_ADV_IND

aliastypes
fields_desc
BTLE_ADV_NONCONN_IND个字段

AdvA

BDAddrField

None

data

PacketListField

[]

class scapy.layers.bluetooth4LE.BTLE_ADV_SCAN_IND

Bases: scapy.layers.bluetooth4LE.BTLE_ADV_IND

aliastypes
fields_desc
BTLE_ADV_SCAN_IND栏位

AdvA

BDAddrField

None

data

PacketListField

[]

class scapy.layers.bluetooth4LE.BTLE_CONNECT_REQ

Bases: scapy.packet.Packet

aliastypes
fields_desc
BTLE_CONNECT_REQ字段

InitA

BDAddrField

None

AdvA

BDAddrField

None

AA

XIntField

0

crc_init

X3BytesField

0

win_size

XByteField

0

win_offset

XLEShortField

0

interval

XLEShortField

0

latency

XLEShortField

0

timeout

XLEShortField

0

chM

BTLEChanMapField

0

SCA

BitField (3位)

0

hop

BitField (5位)

0

class scapy.layers.bluetooth4LE.BTLE_DATA

Bases: scapy.packet.Packet

aliastypes
fields_desc
BTLE_DATA栏位

RFU

BitField (3位)

0

MD

BitField (1位)

0

SN

BitField (1位)

0

NESN

BitField (1位)

0

LLID

BitEnumField (2位)

0

len

ByteField

None

payload_guess

可能的子层: L2CAP_HdrCtrlPDU

post_build(p, pay)
class scapy.layers.bluetooth4LE.BTLE_PPI

Bases: scapy.layers.ppi.PPI_Element

煮熟的BTLE PPI标头

See ppi_btle_t in https://github.com/greatscottgadgets/libbtbb/blob/master/lib/src/pcap.c

aliastypes
fields_desc
BTLE_PPI字段

btle_version

ByteField

0

btle_channel

LEShortField

None

btle_clkn_high

ByteField

None

btle_clk_100ns

LEIntField

None

rssi_max

SignedByteField

None

rssi_min

SignedByteField

None

rssi_avg

SignedByteField

None

rssi_count

ByteField

None

class scapy.layers.bluetooth4LE.BTLE_RF

Bases: scapy.packet.Packet

煮熟的BTLE链接层伪头.

http://www.whiterocker.com/bt/LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR.html

aliastypes
fields_desc
BTLE_RF栏位

rf_channel

ByteField

0

signal

SignedByteField

-128

noise

SignedByteField

-128

access_address_offenses

ByteField

0

reference_access_address

XLEIntField

0

flags

FlagsField (16位)

<Flag 0 ()>

payload_guess

可能的子层: BTLE

class scapy.layers.bluetooth4LE.BTLE_SCAN_REQ

Bases: scapy.packet.Packet

aliastypes
answers(other)
fields_desc
BTLE_SCAN_REQ栏位

ScanA

BDAddrField

None

AdvA

BDAddrField

None

class scapy.layers.bluetooth4LE.BTLE_SCAN_RSP

Bases: scapy.packet.Packet

aliastypes
answers(other)
fields_desc
BTLE_SCAN_RSP栏位

AdvA

BDAddrField

None

data

PacketListField

[]

class scapy.layers.bluetooth4LE.CtrlPDU

Bases: scapy.packet.Packet

aliastypes
fields_desc
CtrlPDU字段

optcode

XByteField

0

version

ByteEnumField

0

Company

LEShortEnumField

0

subversion

XShortField

0