ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.6/encodings/__pycache__/idna.cpython-36.pyc
3

i#@sddlZddlZddlZddlmZejdZdZdZddZ	dd	Z
d
dZGdd
d
ejZGdddej
ZGdddejZGdddeejZGdddeejZddZdS)N)	ucd_3_2_0u[.。.。]sxn--zxn--cCsg}x(|D] }tj|rq
|jtj|q
Wdj|}tjd|}xr|D]j}tj|stj|stj	|stj
|stj|stj|stj
|stj|stj|rJtd|qJWdd|D}t|rtdd|Drtd|d	p|drtd|S)
NNFKCzInvalid character %rcSsg|]}tj|qS)
stringprepZin_table_d1).0xrr&/usr/lib64/python3.6/encodings/idna.py
<listcomp>)sznameprep.<locals>.<listcomp>css|]}tj|VqdS)N)rZin_table_d2)rrrrr		<genexpr>1sznameprep.<locals>.<genexpr>zViolation of BIDI requirement 2rzViolation of BIDI requirement 3)rZin_table_b1appendZmap_table_b2joinunicodedata	normalizeZin_table_c12Zin_table_c22Zin_table_c3Zin_table_c4Zin_table_c5Zin_table_c6Zin_table_c7Zin_table_c8Zin_table_c9UnicodeErrorany)labelZnewlabelcZRandALrrr	namepreps2













rcCsy|jd}Wntk
r"Yn*Xdt|ko:dknrD|Stdt|}y|jd}Wntk
rvYn*Xdt|kodknr|Std|jtrtd|jd}t|}dt|kodknr|StddS)Nasciir@zlabel empty or too longzLabel starts with ACE prefixpunycode)encoderlenr
startswithsace_prefix
ace_prefix)rrrr	ToASCII<s,

rcCst|trd}n,y|jd}d}Wntk
r:d}YnX|stt|}y|jd}Wntk
rrtdYnX|jtst|dS|ttd}|j	d}t
|}t|djt|dkrtd|||S)NTrFzInvalid character in IDN labelrzIDNA does not round-trip)
isinstancebytesrrrrrstrrdecoderlower)rZ
pure_asciiZlabel1resultZlabel2rrr		ToUnicodegs*





r&c@s eZdZdddZdddZdS)	CodecstrictcCs|dkrtd||sdSy|jd}Wntk
r>YnjX|jd}x8|ddD](}dt|kordknsXtd	qXWt|d
dkrtd
|t|fSt}tj|}|r|drd}|d=nd}x(|D] }|r|jd|jt|qWt	||t|fS)Nr(zunsupported error handling rr.rrzlabel empty or too longzlabel too long)r)rr
r
r
r
)
rrUnicodeEncodeErrorsplitr	bytearraydotsextendrr!)selfinputerrorsr%labelsrtrailing_dotrrr	rs4



zCodec.encodecCs|dkrtd||sd	St|ts.t|}t|kr^y|jdt|fStk
r\YnX|jd}|rt|d
dkrd}|d=nd}g}x|D]}|jt	|qWdj
||t|fS)Nr(zUnsupported error handling rrrr*r.)rrr
r
)rr r!rr#rUnicodeDecodeErrorr,rr&r)r0r1r2r3r4r%rrrr	r#s(


zCodec.decodeN)r()r()__name__
__module____qualname__rr#rrrr	r's
%r'c@seZdZddZdS)IncrementalEncoderc	Cs|dkrtd||sdStj|}d}|rT|dsBd}|d	=n|sT|d
=|rTd}t}d}x<|D]4}|r~|jd|d7}|jt||t|7}qdW||7}|t|7}t||fS)Nr(zunsupported error handling r)rrr*)r)rr
r
r
)rr.r,r-r/rrr!)	r0r1r2finalr3r4r%sizerrrr	_buffer_encodes2


z!IncrementalEncoder._buffer_encodeN)r7r8r9r=rrrr	r:sr:c@seZdZddZdS)IncrementalDecoderc	Cs|dkrtd||sdSt|tr2tj|}nt|d}|jd}d}|rt|d	sbd}|d
=n|st|d=|rtd}g}d}x2|D]*}|jt||r|d7}|t|7}qWdj||}|t|7}||fS)Nr(zUnsupported error handling rrrr5r)rrr
r
r
)	rr r"r.r,rr&rr)	r0r1r2r;r3r4r%r<rrrr	_buffer_decodes6



z!IncrementalDecoder._buffer_decodeN)r7r8r9r?rrrr	r>sr>c@seZdZdS)StreamWriterN)r7r8r9rrrr	r@"sr@c@seZdZdS)StreamReaderN)r7r8r9rrrr	rA%srAc	Cs tjdtjtjttttdS)NZidna)namerr#incrementalencoderincrementaldecoderstreamwriterstreamreader)	codecs	CodecInfor'rr#r:r>r@rArrrr	getregentry*srI)rrerGrrcompiler.rrrrr&r'BufferedIncrementalEncoderr:BufferedIncrementalDecoderr>r@rArIrrrr	<module>s
.+)H#'