__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Interface definitions for working with raw packets
"""
from zope.interface import Interface
class IRawDatagramProtocol(Interface):
"""
An interface for protocols such as UDP, ICMP and TCP.
"""
def addProto(num, proto):
"""
Add a protocol on top of this one.
"""
def datagramReceived(
data,
partial,
source,
dest,
protocol,
version,
ihl,
tos,
tot_len,
fragment_id,
fragment_offset,
dont_fragment,
more_fragments,
ttl,
):
"""
An IP datagram has been received. Parse and process it.
"""
class IRawPacketProtocol(Interface):
"""
An interface for low-level protocols such as IP and ARP.
"""
def addProto(num, proto):
"""
Add a protocol on top of this one.
"""
def datagramReceived(data, partial, dest, source, protocol):
"""
An IP datagram has been received. Parse and process it.
"""
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| __init__.py | File | 315 B | 0644 |
|
| ethernet.py | File | 1.64 KB | 0644 |
|
| ip.py | File | 2.27 KB | 0644 |
|
| raw.py | File | 1.09 KB | 0644 |
|
| rawudp.py | File | 1.52 KB | 0644 |
|
| testing.py | File | 16.85 KB | 0644 |
|
| tuntap.py | File | 12.46 KB | 0644 |
|