scapy.contrib.enipTCP

class scapy.contrib.enipTCP.BaseSendPacket

Bases: scapy.packet.Packet

抽象类

aliastypes
fields_desc
BaseSendPacket字段

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.CommandSpecificData

Bases: scapy.packet.Packet

命令特定的数据字段默认

aliastypes
class scapy.contrib.enipTCP.ENIPListIdentityReply

Bases: scapy.packet.Packet

列表身份命令字段

aliastypes
fields_desc
ENIPListIdentityReply字段

itemCount

FieldLenField

0

identityItems

PacketField

None

class scapy.contrib.enipTCP.ENIPListIdentityReplyItems

Bases: scapy.packet.Packet

列出身份项字段

aliastypes
fields_desc
ENIPListIdentityReplyItems字段

itemTypeCode

LEIntField

0

itemLength

FieldLenField

0

itemData

StrLenField

b''

class scapy.contrib.enipTCP.ENIPListInterfacesReply

Bases: scapy.packet.Packet

列出接口命令字段

aliastypes
fields_desc
ENIPListInterfacesReply字段

itemCount

FieldLenField

0

identityItems

PacketField

0

class scapy.contrib.enipTCP.ENIPListInterfacesReplyItems

Bases: scapy.packet.Packet

列出接口项目字段

aliastypes
fields_desc
ENIPListInterfacesReplyItems字段

itemTypeCode

LEIntField

0

itemLength

FieldLenField

0

itemData

StrLenField

b''

class scapy.contrib.enipTCP.ENIPListServicesReply

Bases: scapy.packet.Packet

列出服务命令字段

aliastypes
fields_desc
ENIPListServicesReply字段

itemCount

FieldLenField

0

targetItems

PacketField

None

class scapy.contrib.enipTCP.ENIPListServicesReplyItems

Bases: scapy.packet.Packet

列出服务项目字段

aliastypes
fields_desc
ENIPListServicesReplyItems字段

itemTypeCode

LEIntField

0

itemLength

LEIntField

0

version

ByteField

1

flag

ByteField

0

serviceName

StrFixedLenField

None

class scapy.contrib.enipTCP.ENIPRegisterSession

Bases: scapy.contrib.enipTCP.CommandSpecificData

注册会话命令字段

aliastypes
fields_desc
ENIPRegisterSession字段

protocolVersion

LEShortField

1

options

LEShortField

0

class scapy.contrib.enipTCP.ENIPSendRRData

Bases: scapy.contrib.enipTCP.BaseSendPacket

发送RR数据命令字段

aliastypes
fields_desc
ENIPSendRRData字段

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.ENIPSendUnitData

Bases: scapy.contrib.enipTCP.BaseSendPacket

发送单位数据命令字段

aliastypes
fields_desc
ENIPSendUnitData字段

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.ENIPTCP

Bases: scapy.packet.Packet

TCP上的以太网/ IP数据包

aliastypes
fields_desc
ENIPTCP字段

commandId

LEShortEnumField

None

length

LEShortField

0

session

XLEIntField

0

status

LEIntEnumField

None

senderContext

LELongField

0

options

LEIntField

0

commandSpecificData

MultipleTypeField

None

post_build(pkt, pay)
class scapy.contrib.enipTCP.EncapsulatedPacket

Bases: scapy.packet.Packet

封装封包

aliastypes
fields_desc
EncapsulatedPacket字段

itemCount

LEShortField

2

item

PacketListField

[]

class scapy.contrib.enipTCP.ItemData

Bases: scapy.packet.Packet

通用包格式

aliastypes
extract_padding(s)
fields_desc
ItemData字段

typeId

LEShortEnumField

0

length

LEShortField

0

data

XLEStrLenField

b''