Wirelen ( int) – The length of the packet on the wire. If sec is not specified,Ĭaplen ( int) – The length of the packet in the capture file. Then the number of microseconds after the second the Usec ( int or long) – If nano=True, then number of nanoseconds after the Sec ( float) – time the packet was captured, in seconds since epoch. Packet ( or bytes) – Packet, or bytes for a single packet GenericPcapWriter īases: object linktype : int | None = None nano = False write_header ( pkt : Packet | bytes | None ) → None write_packet ( packet : bytes | Packet, sec : float | None = None, usec : int | None = None, caplen : int | None = None, wirelen : int | None = None ) → None Enum_metaclass ( name : Any, bases : str, dct : Any ) Īlias of EnumElement get ( attr : str, val : Any | None = None ) → Any class scapy.utils. EnumElement ( key : str, value : int ) īases: object class scapy.utils. Pkt ( iterable, ) – Packet(s) to write (one record for each Packet) write_packet ( pkt : Packet ) → None class scapy.utils. Writes a Packet, a SndRcvList object, or bytes to a ERF file. ERFEthernetWriter ( filename : IO | str, gz : bool = False, append : bool = False, sync : bool = False ) Ī stream ERF Ethernet writer with more control than wrerf() close ( ) → Any | None write ( pkt : _PacketIterable ) → None Open (if necessary) filename class scapy.utils. ERFEthernetReader_metaclass ( name : Any, bases : str, dct : Any ) īases: PcapReader_metaclass static open ( fname ) → Tuple | GzipFile ] ERFEthernetReader ( filename : IO | str ) īases: PcapReader read_packet ( size : int = 65535 ) → Packet class scapy.utils. ![]() This implements arithmetic and comparison with float forīackward compatibility normalize ( precision : int ) → EDecimal class scapy.utils. EDecimal ( value = '0', context = None ) > subprocess.Popen()ĮRROR: Could not execute tcpdump, is it installed? class scapy.utils. > with ContextManagerSubprocess(“tcpdump”): ![]() ContextManagerSubprocess ( prog : str, suppress : bool = True ) Ĭontext manager that eases checking for unknown command, without … assert cmco.get_output() = “hey” get_output ( eval_bytes : bool = False ) → str class scapy.utils. > with ContextManagerCaptureOutput() as cmco: ContextManagerCaptureOutput Ĭontext manager that intercept the console’s output.
0 Comments
Leave a Reply. |