shell bypass 403

Cubjrnet7 Shell


name : hexlify_codec.cpython-39.pyc
a

��WW5�	@s�dZddlZddlZzeWneefy6eZYn0dZddd�Zddd�Z	Gd	d
�d
ej
�Z
Gdd�dej�ZGd
d�dej�ZGdd�de
ej
�Z
Gdd�de
ej�Zdd�ZdS)aLPython 'hex' Codec - 2-digit hex with spaces content transfer encoding.

Encode and decode may be a bit missleading at first sight...

The textual representation is a hex dump: e.g. "40 41"
The "encoded" data of this is the binary form, e.g. b"@A"

Therefore decoding is binary to text and thus converting binary data to hex dump.

�NZ0123456789ABCDEF�strictcCs t�dd�|��D��t|�fS)�'40 41 42' -> b'@ab'cSsg|]}t|d��qS����int��.0�h�r�>/usr/lib/python3.9/site-packages/serial/tools/hexlify_codec.py�
<listcomp>&�zhex_encode.<locals>.<listcomp>)�serial�to_bytes�split�len��data�errorsrrr�
hex_encode$srcCs&td�dd�t�|�D���t|�fS)�b'@ab' -> '40 41 42'�css|]}d�t|��VqdS�z{:02X} N��format�ord�r	�brrr�	<genexpr>+rzhex_decode.<locals>.<genexpr>)�unicode�joinr�	iterbytesrrrrr�
hex_decode)sr#c@s eZdZddd�Zddd�ZdS)	�CodecrcCst�dd�|��D��S)rcSsg|]}t|d��qSrrrrrrr
1rz Codec.encode.<locals>.<listcomp>)rrr��selfrrrrr�encode/szCodec.encodecCstd�dd�t�|�D���S)rrcss|]}d�t|��VqdSrrrrrrr5rzCodec.decode.<locals>.<genexpr>�r r!rr"r%rrr�decode3szCodec.decodeN)r)r)�__name__�
__module__�__qualname__r'r)rrrrr$.s
r$c@s<eZdZdZddd�Zdd�Zdd�Zd	d
�Zddd
�ZdS)�IncrementalEncoderzIncremental hex encoderrcCs||_d|_dS�Nr)r�state)r&rrrr�__init__;szIncrementalEncoder.__init__cCs
d|_dSr.�r/�r&rrr�reset?szIncrementalEncoder.resetcCs|jS�Nr1r2rrr�getstateBszIncrementalEncoder.getstatecCs
||_dSr4r1)r&r/rrr�setstateEszIncrementalEncoder.setstateFcCs�|j}g}|��D]|}|tvrRt�|�}|rD|�||d@�d}q�d|d>}q|dkrv|rp|jdkrptd��d}q|jdkrtd�|���q||_t�	|�S)	z�        Incremental encode, keep track of digits and emit a byte when a pair
        of hex digits is found. The space is optional unless the error
        handling is defined to be 'strict'.
        ��r��� rzodd number of hex digitsznon-hex digit found: {!r})
r/�upper�	HEXDIGITS�index�appendr�UnicodeErrorrrr)r&r�finalr/Zencoded�c�zrrrr'Hs"

zIncrementalEncoder.encodeN)r)F)	r*r+r,�__doc__r0r3r5r6r'rrrrr-8s
r-c@seZdZdZddd�ZdS)�IncrementalDecoderzIncremental decoderFcCstd�dd�t�|�D���S)Nrcss|]}d�t|��VqdSrrrrrrrfrz,IncrementalDecoder.decode.<locals>.<genexpr>r()r&rr@rrrr)eszIncrementalDecoder.decodeN)F)r*r+r,rCr)rrrrrDcsrDc@seZdZdZdS)�StreamWriterz-Combination of hexlify codec and StreamWriterN�r*r+r,rCrrrrrEisrEc@seZdZdZdS)�StreamReaderz-Combination of hexlify codec and StreamReaderNrFrrrrrGmsrGc	Cstjdttttttd�S)zencodings module APIZhexlify)�namer'r)�incrementalencoder�incrementaldecoder�streamwriter�streamreader)�codecs�	CodecInforr#r-rDrErGrrrr�getregentryqs�rO)r)r)rCrMrr �	NameError�AttributeError�strr<rr#r$r-rDrErGrOrrrr�<module>	s



+

© 2025 Cubjrnet7