scapy.layers.lltd

LLTD协议

https://msdn.microsoft.com/en-us/library/cc233983.aspx

class scapy.layers.lltd.LLTD

Bases: scapy.packet.Packet

aliastypes
answer_hashret = {(0, 12): (0, 11), (1, 1): (0, 0)}
answers(other)
fields_desc
LLTD领域

version

ByteField

1

tos

ByteEnumField

0

reserved

ByteField

0

function

MultiEnumField (取决于tos)

0

real_dst

MACField

None

real_src

MACField

None

xid

ShortField (Cond)

0

seq

ShortField (Cond)

0

hashret()
mysummary()
payload_guess

可能的子层: LLTDDiscoverLLTDEmitLLTDHelloLLTDQueryLargeTlvRespLLTDQueryLargeTlvLLTDQueryResp

post_build(pkt, pay)
class scapy.layers.lltd.LLTDAttribute

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *_, **kargs)
fields_desc
LLTD属性字段

type

ByteEnumField

0

len

FieldLenField

None

value

StrLenField

b''

payload_guess

可能的子层: LLTDAttributePadding

show_indent = False
show_summary = False
class scapy.layers.lltd.LLTDAttribute80211MaxRate

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttribute80211MaxRate字段

type

ByteEnumField

9

len

ByteField

2

rate

ShortField

0

class scapy.layers.lltd.LLTDAttribute80211PhysicalMedium

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttribute80211物理介质字段

type

ByteEnumField

21

len

ByteField

1

medium

ByteEnumField

0

class scapy.layers.lltd.LLTDAttributeCharacteristics

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeCharacteristics字段

type

ByteEnumField

2

len

FieldLenField

None

flags

FlagsField (5位)

<Flag 0 ()>

reserved1

BitField (11位)

0

reserved2

StrLenField

b''

class scapy.layers.lltd.LLTDAttributeDeviceUUID

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeDeviceUUID字段

type

ByteEnumField

18

len

FieldLenField

None

uuid

StrLenField

b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

class scapy.layers.lltd.LLTDAttributeEOP

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeEOP字段

type

ByteEnumField

0

class scapy.layers.lltd.LLTDAttributeHostID

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeHostID字段

type

ByteEnumField

1

len

ByteField

6

mac

MACField

'00:00:00:00:00:00'

mysummary()
class scapy.layers.lltd.LLTDAttributeIPv4Address

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeIPv4Address字段

type

ByteEnumField

7

len

ByteField

4

ipv4

IPField

'0.0.0.0'

class scapy.layers.lltd.LLTDAttributeIPv6Address

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeIPv6Address字段

type

ByteEnumField

8

len

ByteField

16

ipv6

IP6Field

'::'

class scapy.layers.lltd.LLTDAttributeLargeTLV

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeLargeTLV字段

type

ByteEnumField

14

len

ByteField

0

class scapy.layers.lltd.LLTDAttributeLinkSpeed

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeLinkSpeed字段

type

ByteEnumField

12

len

ByteField

4

speed

IntField

0

class scapy.layers.lltd.LLTDAttributeMachineName

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeMachineName字段

type

ByteEnumField

15

len

FieldLenField

None

hostname

StrLenFieldUtf16

b''

mysummary()
class scapy.layers.lltd.LLTDAttributePerformanceCounterFrequency

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributePerformanceCounterFrequency字段

type

ByteEnumField

10

len

ByteField

8

freq

LongField

0

class scapy.layers.lltd.LLTDAttributePhysicalMedium

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributePhysicalMedium字段

type

ByteEnumField

3

len

ByteField

4

medium

IntEnumField

6

class scapy.layers.lltd.LLTDAttributeQOSCharacteristics

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeQOS特征字段

type

ByteEnumField

20

len

ByteField

4

flags

FlagsField (3位)

<Flag 0 ()>

reserved1

BitField (13位)

0

reserved2

ShortField

0

class scapy.layers.lltd.LLTDAttributeSeesList

Bases: scapy.layers.lltd.LLTDAttribute

aliastypes
fields_desc
LLTDAttributeSeesList字段

type

ByteEnumField

25

len

ByteField

2

max_entries

ShortField

0

class scapy.layers.lltd.LLTDDiscover

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTD发现领域

gen_number

ShortField

0

stations_count

FieldLenField

None

stations_list

FieldListField

[]

mysummary()
class scapy.layers.lltd.LLTDEmit

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDEmit字段

descs_count

FieldLenField

None

descs_list

PacketListField

[]

mysummary()
class scapy.layers.lltd.LLTDEmiteeDesc

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDEmiteeDesc栏位

type

ByteEnumField

0

pause

ByteField

0

src

MACField

None

dst

MACField

'00:00:00:00:00:00'

payload_guess

可能的子层: Padding

class scapy.layers.lltd.LLTDHello

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTD你好领域

gen_number

ShortField

0

current_mapper_address

MACField

'00:00:00:00:00:00'

apparent_mapper_address

MACField

'00:00:00:00:00:00'

payload_guess

可能的子层: LLTDAttribute

show_summary = False
class scapy.layers.lltd.LLTDQueryLargeTlv

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDQueryLargeTlv字段

type

ByteEnumField

14

offset

ThreeBytesField

0

mysummary()
class scapy.layers.lltd.LLTDQueryLargeTlvResp

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDQueryLargeTlvResp字段

flags

FlagsField (2位)

<Flag 0 ()>

len

BitField (14 bits)

None

value

StrLenField

b''

mysummary()
post_build(pkt, pay)
class scapy.layers.lltd.LLTDQueryResp

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDQueryResp字段

flags

FlagsField (2位)

<Flag 0 ()>

descs_count

BitField (14位)

None

descs_list

PacketListField

[]

mysummary()
post_build(pkt, pay)
class scapy.layers.lltd.LLTDRecveeDesc

Bases: scapy.packet.Packet

aliastypes
fields_desc
LLTDRecveeDesc栏位

type

ShortEnumField

0

real_src

MACField

'00:00:00:00:00:00'

ether_src

MACField

'00:00:00:00:00:00'

ether_dst

MACField

'00:00:00:00:00:00'

payload_guess

可能的子层: Padding

class scapy.layers.lltd.LargeTlvBuilder

Bases: object

用于构建通过LLTDQueryLargeTlv / LLTDQueryLargeTlvResp数据包获取的内容的对象.

可与PacketList()对象一起使用:>>> p = LargeTlvBuilder()>>> p.parse(rdpcap('capture_file.cap'))

或在网络捕获期间:>>> p = LargeTlvBuilder()>>>嗅探(过滤器=" ether proto 0x88d9",prn = p.parse)

要获得结果,请使用.get_data()

get_data()

返回一个字典对象,键是字符串" source> destincation [内容类型]",值是获取的内容,也作为字符串.

parse(plist)

使用提供的plist更新构建器. plist可以是Packet()或PacketList().