Repository URL to install this package:
Version:
1.0.8-2 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
scapy
/
__pycache__
/
scapypipes.cpython-37.pyc
|
---|
B ì]¥&'¶ã @ s d dl mZ d dlZd dlZd dlmZmZ d dlmZm Z m Z d dlmZ d dl mZ d dlmZmZmZ G dd d eZG d d deZG dd d e ZG dd deZG dd de ZG dd deZG dd de ZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!e ZG d"d# d#e Z G d$d% d%e Z!G d&d' d'e Z"G d(d) d)e Z#G d*d+ d+e Z$dS ),é )Úprint_functionN)ÚQueueÚEmpty)ÚSourceÚDrainÚSink)Úconf)Úraw)ÚContextManagerSubprocessÚ PcapReaderÚ PcapWriterc @ sB e Zd ZdZdddZdd Zdd Zd d Zdd Zd d Z dS )ÚSniffSourcea¡ Read packets from an interface and send them to low exit. .. code:: +-----------+ >>-| |->> | | >-| [iface]--|-> +-----------+ If neither of the ``iface`` or ``socket`` parameters are specified, then Scapy will capture from the first network interface. :param iface: A layer 2 interface to sniff packets from. Mutually exclusive with the ``socket`` parameter. :param filter: Packet filter to use while capturing. See ``L2listen``. Not used with ``socket`` parameter. :param socket: A ``SuperSocket`` to sniff packets from. Nc C s8 t j| |d |s|r"|r"td|| _|| _|| _d S )N)Únamez;iface and filter options are mutually exclusive with socket)r Ú__init__Ú ValueErrorÚsÚifaceÚfilter)Úselfr r Úsocketr © r ú/build/wlanpi-profiler-SHjkbd/wlanpi-profiler-1.0.8/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/scapy/scapypipes.pyr &