scapy.layers.usb

Default USB frames & Basic implementation

class scapy.layers.usb.USBpcap

Bases: scapy.packet.Packet

aliastypes
fields_desc
USBpcap fields

headerLen

ByteField

None

res

ByteField

0

irpId

XLELongField

0

usbd_status

LEIntEnumField

0

function

LEShortEnumField

0

info

XByteField

0

bus

LEShortField

0

device

LEShortField

0

endpoint

XByteField

0

transfer

ByteEnumField

0

dataLength

LenField

None

guess_payload_class(payload)
post_build(p, pay)
class scapy.layers.usb.USBpcapTransferControl

Bases: scapy.packet.Packet

aliastypes
fields_desc
USBpcapTransferControl fields

stage

ByteField

0

class scapy.layers.usb.USBpcapTransferInterrupt

Bases: scapy.packet.Packet

aliastypes
fields_desc
USBpcapTransferInterrupt fields

startFrame

LEIntField

0

numberOfPackets

LEIntField

0

errorCount

LEIntField

0

class scapy.layers.usb.USBpcapTransferIsochronous

Bases: scapy.packet.Packet

aliastypes
fields_desc
USBpcapTransferIsochronous fields

offset

LEIntField

0

length

LEIntField

0

usbd_status

LEIntEnumField

0