CasperSecurity

Current Path : /lib/python3/dist-packages/twisted/pair/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/twisted/pair/__pycache__/rawudp.cpython-310.pyc

o

�b�@s^dZddlZddlmZddlmZddlmZGdd�d�Zeej	�Gdd	�d	ej
��ZdS)
z1
Implementation of raw packet interfaces for UDP
�N)�implementer)�protocol)�rawc@seZdZdd�ZdS)�	UDPHeadercCs(t�d|dd��\|_|_|_|_dS)Nz!HHHH�)�struct�unpack�source�dest�len�check)�self�data�r�5/usr/lib/python3/dist-packages/twisted/pair/rawudp.py�__init__s�zUDPHeader.__init__N)�__name__�
__module__�__qualname__rrrrrrsrc@s$eZdZdd�Zdd�Zdd�ZdS)�RawUDPProtocolcCs
i|_dS)N)�	udpProtos)r
rrrrs
zRawUDPProtocol.__init__cCs\t|tj�s
td��|dkrtd��|dkrtd��||jvr$g|j|<|j|�|�dS)Nz6Added protocol must be an instance of DatagramProtocolrz'Added protocol must be positive or zeroiz"Added protocol must fit in 16 bits)�
isinstancer�DatagramProtocol�	TypeErrorr�append)r
�num�protorrr�addProtos

zRawUDPProtocol.addProtocCs<t|�}|j�|jd�D]}|�|dd�||jf�qdS)Nrr)rr�getr
�datagramReceivedr	)r
r�partialr	r
r�version�ihl�tos�tot_len�fragment_id�fragment_offset�
dont_fragment�more_fragments�ttl�headerrrrrr)s�zRawUDPProtocol.datagramReceivedN)rrrrrrrrrrrsr)�__doc__r�zope.interfacer�twisted.internetr�twisted.pairrr�IRawDatagramProtocol�AbstractDatagramProtocolrrrrr�<module>s
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY