scapy.contrib.enipTCP

class scapy.contrib.enipTCP.BaseSendPacket

Bases: scapy.packet.Packet

Abstract Class

aliastypes
fields_desc
BaseSendPacket fields

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.CommandSpecificData

Bases: scapy.packet.Packet

Command Specific Data Field Default

aliastypes
class scapy.contrib.enipTCP.ENIPListIdentityReply

Bases: scapy.packet.Packet

List Identity Command Field

aliastypes
fields_desc
ENIPListIdentityReply fields

itemCount

FieldLenField

0

identityItems

PacketField

None

class scapy.contrib.enipTCP.ENIPListIdentityReplyItems

Bases: scapy.packet.Packet

List Identity Items Field

aliastypes
fields_desc
ENIPListIdentityReplyItems fields

itemTypeCode

LEIntField

0

itemLength

FieldLenField

0

itemData

StrLenField

b''

class scapy.contrib.enipTCP.ENIPListInterfacesReply

Bases: scapy.packet.Packet

List Interfaces Command Field

aliastypes
fields_desc
ENIPListInterfacesReply fields

itemCount

FieldLenField

0

identityItems

PacketField

0

class scapy.contrib.enipTCP.ENIPListInterfacesReplyItems

Bases: scapy.packet.Packet

List Interfaces Items Field

aliastypes
fields_desc
ENIPListInterfacesReplyItems fields

itemTypeCode

LEIntField

0

itemLength

FieldLenField

0

itemData

StrLenField

b''

class scapy.contrib.enipTCP.ENIPListServicesReply

Bases: scapy.packet.Packet

List Services Command Field

aliastypes
fields_desc
ENIPListServicesReply fields

itemCount

FieldLenField

0

targetItems

PacketField

None

class scapy.contrib.enipTCP.ENIPListServicesReplyItems

Bases: scapy.packet.Packet

List Services Items Field

aliastypes
fields_desc
ENIPListServicesReplyItems fields

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

Register Session Command Field

aliastypes
fields_desc
ENIPRegisterSession fields

protocolVersion

LEShortField

1

options

LEShortField

0

class scapy.contrib.enipTCP.ENIPSendRRData

Bases: scapy.contrib.enipTCP.BaseSendPacket

Send RR Data Command Field

aliastypes
fields_desc
ENIPSendRRData fields

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.ENIPSendUnitData

Bases: scapy.contrib.enipTCP.BaseSendPacket

Send Unit Data Command Field

aliastypes
fields_desc
ENIPSendUnitData fields

interfaceHandle

LEIntField

0

timeout

LEShortField

0

encapsulatedPacket

PacketField

None

class scapy.contrib.enipTCP.ENIPTCP

Bases: scapy.packet.Packet

Ethernet/IP packet over TCP

aliastypes
fields_desc
ENIPTCP fields

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

Encapsulated Packet

aliastypes
fields_desc
EncapsulatedPacket fields

itemCount

LEShortField

2

item

PacketListField

[]

class scapy.contrib.enipTCP.ItemData

Bases: scapy.packet.Packet

Common Packet Format

aliastypes
extract_padding(s)
fields_desc
ItemData fields

typeId

LEShortEnumField

0

length

LEShortField

0

data

XLEStrLenField

b''