scapy.layers.lltd
LLTD Protocol
https://msdn.microsoft.com/en-us/library/cc233983.aspx
- class scapy.layers.lltd.LLTD(_pkt, /, *, version=1, tos=0, reserved=0, function=0, real_dst=None, real_src=None, xid=0, seq=0)[源代码]
基类:
Packet- aliastypes
- answer_hashret = {(0, 12): (0, 11), (1, 1): (0, 0)}
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | VERSION | TOS | RESERVED | FUNCTION | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | REAL DST | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | REAL SRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | XID | SEQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDLLTD fields version
1tos
0reserved
0function
MultiEnumField(Depends on 0)0real_dst
Nonereal_src
Nonexid
ShortField(Cond)0seq
ShortField(Cond)0
- payload_guess
Possible sublayers:
LLTDDiscover,LLTDEmit,LLTDHello,LLTDQueryLargeTlvResp,LLTDQueryLargeTlv,LLTDQueryResp
- class scapy.layers.lltd.LLTDAttribute(_pkt, /, *, type=0, len=None, value=b'')[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeLLTDAttribute fields type
0len
Nonevalue
b''
- payload_guess
Possible sublayers:
LLTDAttribute,Padding
- show_indent = False
- show_summary = False
- class scapy.layers.lltd.LLTDAttribute80211MaxRate(_pkt, /, *, len=2, rate=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | RATE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttribute80211MaxRateLLTDAttribute80211MaxRate fields type
9len
2rate
0
- class scapy.layers.lltd.LLTDAttribute80211PhysicalMedium(_pkt, /, *, len=1, medium=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MEDIUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttribute80211PhysicalMediumLLTDAttribute80211PhysicalMedium fields type
21len
1medium
0
- class scapy.layers.lltd.LLTDAttributeCharacteristics(_pkt, /, *, len=None, flags=<Flag 0 ()>, reserved1=0, reserved2=b'')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | FLAGS | RESERVED1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeCharacteristicsLLTDAttributeCharacteristics fields type
2len
Noneflags
<Flag 0 ()>reserved1
BitField(11 bits)0reserved2
b''
- class scapy.layers.lltd.LLTDAttributeDeviceUUID(_pkt, /, *, len=None, uuid=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | UUID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeDeviceUUIDLLTDAttributeDeviceUUID fields type
18len
Noneuuid
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
- class scapy.layers.lltd.LLTDAttributeEOP(_pkt, /)[源代码]
-
- aliastypes
- class scapy.layers.lltd.LLTDAttributeHostID(_pkt, /, *, len=6, mac='00:00:00:00:00:00')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MAC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeHostIDLLTDAttributeHostID fields type
1len
6mac
'00:00:00:00:00:00'
- class scapy.layers.lltd.LLTDAttributeIPv4Address(_pkt, /, *, len=4, ipv4='0.0.0.0')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | IPV4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeIPv4AddressLLTDAttributeIPv4Address fields type
7len
4ipv4
'0.0.0.0'
- class scapy.layers.lltd.LLTDAttributeIPv6Address(_pkt, /, *, len=16, ipv6='::')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | IPV6 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + + | | + + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeIPv6AddressLLTDAttributeIPv6Address fields type
8len
16ipv6
'::'
- class scapy.layers.lltd.LLTDAttributeLargeTLV(_pkt, /, *, len=0)[源代码]
-
- aliastypes
- class scapy.layers.lltd.LLTDAttributeLinkSpeed(_pkt, /, *, len=4, speed=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | SPEED | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeLinkSpeedLLTDAttributeLinkSpeed fields type
12len
4speed
0
- class scapy.layers.lltd.LLTDAttributeMachineName(_pkt, /, *, len=None, hostname=b'')[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | HOSTNAME | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeMachineNameLLTDAttributeMachineName fields type
15len
Nonehostname
b''
- class scapy.layers.lltd.LLTDAttributePerformanceCounterFrequency(_pkt, /, *, len=8, freq=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | FREQ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributePerformanceCounterFrequencyLLTDAttributePerformanceCounterFrequency fields type
10len
8freq
0
- class scapy.layers.lltd.LLTDAttributePhysicalMedium(_pkt, /, *, len=4, medium=6)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MEDIUM | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributePhysicalMediumLLTDAttributePhysicalMedium fields type
3len
4medium
6
- class scapy.layers.lltd.LLTDAttributeQOSCharacteristics(_pkt, /, *, len=4, flags=<Flag 0 ()>, reserved1=0, reserved2=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN |FLAGS| RESERVED1 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | RESERVED2 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeQOSCharacteristicsLLTDAttributeQOSCharacteristics fields type
20len
4flags
<Flag 0 ()>reserved1
BitField(13 bits)0reserved2
0
- class scapy.layers.lltd.LLTDAttributeSeesList(_pkt, /, *, len=2, max_entries=0)[源代码]
-
- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | LEN | MAX ENTRIES | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDAttributeSeesListLLTDAttributeSeesList fields type
25len
2max_entries
0
- class scapy.layers.lltd.LLTDDiscover(_pkt, /, *, gen_number=0, stations_count=None, stations_list=[])[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GEN NUMBER | STATIONS COUNT | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | STATIONS LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDDiscoverLLTDDiscover fields gen_number
0stations_count
Nonestations_list
[]
- class scapy.layers.lltd.LLTDEmit(_pkt, /, *, descs_count=None, descs_list=[])[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DESCS COUNT | DESCS LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDEmitLLTDEmit fields descs_count
Nonedescs_list
[]
- class scapy.layers.lltd.LLTDEmiteeDesc(_pkt, /, *, type=0, pause=0, src=None, dst='00:00:00:00:00:00')[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | PAUSE | SRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | DST | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDEmiteeDescLLTDEmiteeDesc fields type
0pause
0src
Nonedst
'00:00:00:00:00:00'
- class scapy.layers.lltd.LLTDHello(_pkt, /, *, gen_number=0, current_mapper_address='00:00:00:00:00:00', apparent_mapper_address='00:00:00:00:00:00')[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | GEN NUMBER | CURRENT MAPPER ADDRESS | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | APPARENT MAPPER ADDRESS | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDHelloLLTDHello fields gen_number
0current_mapper_address
'00:00:00:00:00:00'apparent_mapper_address
'00:00:00:00:00:00'
- payload_guess
Possible sublayers:
LLTDAttribute
- show_summary = False
- class scapy.layers.lltd.LLTDQueryLargeTlv(_pkt, /, *, type=14, offset=0)[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | OFFSET | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | +-+-+-+-+-+-+-+-+ Fig. LLTDQueryLargeTlvLLTDQueryLargeTlv fields type
14offset
0
- class scapy.layers.lltd.LLTDQueryLargeTlvResp(_pkt, /, *, flags=<Flag 0 ()>, len=None, value=b'')[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |FLA| LEN | VALUE | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDQueryLargeTlvRespLLTDQueryLargeTlvResp fields flags
<Flag 0 ()>len
BitField(14 bits)Nonevalue
b''
- class scapy.layers.lltd.LLTDQueryResp(_pkt, /, *, flags=<Flag 0 ()>, descs_count=None, descs_list=[])[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |FLA| DESCS COUNT | DESCS LIST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDQueryRespLLTDQueryResp fields flags
<Flag 0 ()>descs_count
BitField(14 bits)Nonedescs_list
[]
- class scapy.layers.lltd.LLTDRecveeDesc(_pkt, /, *, type=0, real_src='00:00:00:00:00:00', ether_src='00:00:00:00:00:00', ether_dst='00:00:00:00:00:00')[源代码]
基类:
Packet- aliastypes
- 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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TYPE | REAL SRC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ETHER SRC | + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | ETHER DST | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Fig. LLTDRecveeDescLLTDRecveeDesc fields type
0real_src
'00:00:00:00:00:00'ether_src
'00:00:00:00:00:00'ether_dst
'00:00:00:00:00:00'
- class scapy.layers.lltd.LargeTlvBuilder[源代码]
基类:
objectAn object to build content fetched through LLTDQueryLargeTlv / LLTDQueryLargeTlvResp packets.
Usable with a PacketList() object: >>> p = LargeTlvBuilder() >>> p.parse(rdpcap('capture_file.cap'))
Or during a network capture: >>> p = LargeTlvBuilder() >>> sniff(filter="ether proto 0x88d9", prn=p.parse)
To get the result, use .get_data()