3rd-Party Engines#
Scapy Support#
This module contains the implementation for Scapy engine
support, as is used by pcapkit.foundation.extraction.Extractor.
- class pcapkit.foundation.engines.scapy.Scapy(extractor)#
Bases:
Engine[ScapyPacket]Scapy engine support.
- run()#
Call
scapy.all.sniff()to extract PCAP files.This method assigns
self._expkgasscapy.allandself._extmpas an iterator fromscapy.all.sniff().- Warns:
AttributeWarning – If
self._exlyrand/orself._exptlis provided as the Scapy engine currently does not support such operations.- Return type:
DPKT Support#
This module contains the implementation for DPKT engine
support, as is used by pcapkit.foundation.extraction.Extractor.
- class pcapkit.foundation.engines.dpkt.DPKT(extractor)#
Bases:
Engine[DPKTPacket]DPKT engine support.
- run()#
Call
dpkt.pcap.Readerto extract PCAP files.This method assigns
self._expkgasdpktandself._extmpas an iterator fromdpkt.pcap.Reader.- Warns:
AttributeWarning – If
self._exlyrand/orself._exptlis provided as the DPKT engine currently does not support such operations.- Return type:
- read_frame()#
Read frames with DPKT engine.
- Returns:
Parsed frame instance.
- Return type:
See also
Please refer to
_default_read_frame()for more operational information.
PyShark Support#
This module contains the implementation for PyShark engine
support, as is used by pcapkit.foundation.extraction.Extractor.
- class pcapkit.foundation.engines.pyshark.PyShark(extractor)#
Bases:
Engine[PySharkPacket]PyShark engine support.
- run()#
Call
pyshark.FileCaptureto extract PCAP files.This method assigns
self._expkgaspysharkandself._extmpas an iterator frompyshark.FileCapture.- Warns:
AttributeWarning – Warns under following circumstances:
if
self._exlyrand/orself._exptlis provided as the PyShark engine currently does not support such operations.if reassembly is enabled, as the PyShark engine currently does not support such operation.
- Return type:
- read_frame()#
Read frames with PyShark engine.
- Return type:
Packet- Returns:
Parsed frame instance.
See also
Please refer to
_default_read_frame()for more operational information.