403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/idna/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/idna/__pycache__/core.cpython-39.pyc
a


>�a�1�@sddlmZddlZddlZddlZddlmZmZddlm	Z	dZ
dZe�d�Z
Gd	d
�d
e�ZGdd�de�ZGd
d�de�ZGdd�de�Zeed�dd�Zeeed�dd�Zeed�dd�Zeed�dd�Zeeefed�dd�Zeeefeed�d d!�ZdBeeed#�d$d%�Zeed�d&d'�Zeed�d(d)�Zedd�d*d+�Z eeed,�d-d.�Z!dCeeeed/�d0d1�Z"eeee#fdd�d2d3�Z$eed�d4d5�Z%eeee#fed�d6d7�Z&dDeeeed9�d:d;�Z'dEeeee#feeeeed<�d=d>�Z(dFeeee#feeeed?�d@dA�Z)dS)G�)�idnadata�N)�Union�Optional)�intranges_contain�	sxn--u[.。.。]c@seZdZdZdS)�	IDNAErrorz7 Base exception for all IDNA-encoding related problems N��__name__�
__module__�__qualname__�__doc__�rr�-/usr/lib/python3.9/site-packages/idna/core.pyrsrc@seZdZdZdS)�
IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr	rrrrrsrc@seZdZdZdS)�InvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr	rrrrrsrc@seZdZdZdS)�InvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used Nr	rrrrrsr)�cp�returncCs0t�t|��}|dkr,t�t|��s,td��|S)Nrz Unknown character in unicodedata)�unicodedataZ	combining�chr�name�
ValueError)r�vrrr�_combining_class s
r)r�scriptrcCstt|�tj|�S)N)r�ordrZscripts)rrrrr�
_is_script'sr)�srcCs
|�d�S)N�punycode)�encode�rrrr�	_punycode*sr"cCs
d�|�S)NzU+{:04X})�formatr!rrr�_unot-sr$)�labelrcCst|�dkrdSdS)N�?FT��len�r%rrr�valid_label_length1sr*)r%�trailing_dotrcCst|�|rdndkrdSdS)N��FTr')r%r+rrr�valid_string_length7sr.F)r%�	check_ltrrc	Cs^d}t|d�D]:\}}t�|�}|dkr<td�t|�|���|dvrd}q|sV|sVdSt�|d�}|dvrrd}n |d	kr�d}ntd
�t|����d}d}t|d�D]�\}}t�|�}|�r|dvr�td�|���|d
vr�d}n|dkr�d}|dv�rJ|�s|}n||k�rJtd��q�|dv�r.td�|���|dv�r>d}q�|dkr�d}q�|�sZtd��dS)NFr�z1Unknown directionality in label {} at position {})�R�AL�ANTr)r1r2�Lz=First codepoint in label {} must be directionality L, R or AL)
r1r2r3�EN�ES�CS�ET�ON�BN�NSMzGInvalid direction for codepoint at position {} in a right-to-left label)r1r2r5r3r;)r3r5z2Can not mix numeral types in a right-to-left label)r4r5r6r7r8r9r:r;zGInvalid direction for codepoint at position {} in a left-to-right label)r4r5z0Label ends with illegal codepoint directionality)�	enumeraterZ
bidirectionalrr#�repr)	r%r/Z
bidi_label�idxr�	directionZrtlZvalid_endingZnumber_typerrr�
check_bidi=sP






r@cCs"t�|d�ddkrtd��dS)Nr�Mz0Label begins with an illegal combining characterT)r�categoryrr)rrr�check_initial_combinerxsrCcCs<|dd�dkrtd��|ddks0|ddkr8td��d	S)
N��z--z4Label has disallowed hyphens in 3rd and 4th positionr�-���z)Label must not start or end with a hyphenT)rr)rrr�check_hyphen_ok~s
rHcCst�d|�|krtd��dS)N�NFCz%Label must be in Normalization Form C)r�	normalizerr)rrr�	check_nfc�srK)r%�posrcCs4t||�}|dkr�|dkr8tt||d��tkr8dSd}t|ddd�D]B}tj�t||��}|td�krrqL|td�td	�fvrLd}q�qL|s�dSd}t|dt|��D]B}tj�t||��}|td�kr�q�|td
�td	�fvr�d}q�q�|S|dk�r,|dk�r(tt||d��tk�r(dSdSdSdS)Ni rrTFrG�Tr4�Dr1i
 )rr�_virama_combining_class�rangerZ
joining_types�getr()r%rL�cp_value�ok�iZjoining_typerrr�valid_contextj�s<

rU)r%rL�	exceptionrcCs�t||�}|dkrdd|kr0t|�dkr`nn,t||d�dkr`t||d�dkr`dSdS|dkr�|t|�dkr�t|�dkr�t||dd�SdS|d	ks�|d
kr�|dkr�t||dd�SdS|dk�r|D]6}|d
kr�q�t|d��s
t|d��s
t|d�r�dSq�dSd|k�r.dk�rhnn6|D],}dt|�k�rVdk�r6nndS�q6dSd|k�r�dk�r�nn6|D],}dt|�k�r�dk�r�nndS�q�dSdS)N�rr�lTFiuZGreeki�i�ZHebrewi�0u・ZHiraganaZKatakanaZHani`iii�i�)rr(r)r%rLrVrRrrrr�valid_contexto�s@ (
" 
 
rYcCsJt|ttf�r|�d�}t|�dkr,td��t|�t|�t|�t	|�D]�\}}t
|�}t|tj
d�rpqLqLt|tj
d�r�z,t||�s�td�t|�|dt|����Wn0ty�td�t|�|dt|����Yn0qLt|tj
d	��rt||��s<td
�t|�|dt|����qLtd�t|�|dt|����qLt|�dS)Nzutf-8rzEmpty LabelZPVALIDZCONTEXTJz*Joiner {} not allowed at position {} in {}rz<Unknown codepoint adjacent to joiner {} at position {} in {}ZCONTEXTO�-Codepoint {} not allowed at position {} in {}z-Codepoint {} at position {} of {} not allowed)�
isinstance�bytes�	bytearray�decoder(rrKrHrCr<rrrZcodepoint_classesrUrr#r$r=rrYrr@)r%rLrrRrrr�check_label�s4

�
�  r_cCs|z(|�d�}t|�t|�s$td��|WSty:Yn0|sHtd��t|�}t|�t|�}t|}t|�sxtd��|S)N�asciizLabel too longzNo Input)	r �ulabelr*r�UnicodeEncodeError�strr_r"�_alabel_prefix�r%Zlabel_bytesrrr�alabel�s"
rfcCs�t|ttf�s>z|�d�}WqBty:t|�|YS0n|}|��}|�t�r�|t	t�d�}|spt
d��|�d�ddkr�t
d��nt|�|�d�Sz|�d�}Wnty�t
d��Yn0t|�|S)Nr`z5Malformed A-label, no Punycode eligible content foundrGrFz"A-label must not end with a hyphenrzInvalid A-label)
r[r\r]r rbr_�lower�
startswithrdr(rr^�UnicodeErrorrerrrras,


raT)�domain�
std3_rules�transitionalrcCs$ddlm}d}t|�D]�\}}t|�}z�||dkr8|nt�||df�d}|d}	d}
t|�dkrn|d}
|	d	ks�|	d
kr�|r�|	dkr�|s�|
dur�||7}n@|
dur�|	dks�|	dkr�|r�|	d
kr�|r�||
7}n|	d
kr�t��Wqt�ytd�t	|�|dt
|����Yq0qt�d|�S)zBRe-map the characters in the string according to UTS46 processing.r)�	uts46datar0��ZN�rD�VrN�3rA�IrZrI)
rmr<r�bisectZbisect_leftr(�
IndexErrorrr#r$r=rrJ)rjrkrlrm�outputrL�charZ
code_pointZuts46row�statusZreplacementrrr�uts46_remap4sV������
����

��ry)r�strict�uts46rkrlrc	Cs�t|ttf�r|�d�}|r(t|||�}d}g}|r@|�d�}n
t�|�}|rX|dgkr`td��|ddkrv|d=d}|D]$}t|�}|r�|�	|�qztd��qz|r�|�	d	�d
�
|�}t||�s�td��|S)Nr`F�.r0�Empty domainrGT�Empty label��.zDomain too long)r[r\r]r^ry�split�_unicode_dots_rerrf�append�joinr.)	rrzr{rkrlr+�result�labelsr%rrrr Ts2





r )rrzr{rkrcCs�zt|ttf�r|�d�}Wnty6td��Yn0|rHt||d�}d}g}|s`t�|�}n
|�d�}|rx|dgkr�td��|ds�|d=d}|D]$}t	|�}|r�|�
|�q�td	��q�|r�|�
d�d�|�S)
Nr`zInvalid ASCII in A-labelFr|r0r}rGTr~)r[r\r]r^�UnicodeDecodeErrorrryr�r�rar�r�)rrzr{rkr+r�r�r%rrrr^rs2


r^)F)F)TF)FFFF)FFF)*r0rrtr�re�typingrrZ	intrangesrrOrd�compiler�rirrrr�intrrc�boolrr\r"r$r*r.r@rCrHrKrUrYr]r_rfraryr r^rrrr�<module>s<
;+* $

Youez - 2016 - github.com/yon3zu
LinuXploit