Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib64/python2.7/Demo/zlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/Demo/zlib/minigzip.pyc
�
"��dc@s�ddlZddlZddlZd
\ZZZZZd�Zd�Z	d	�Z
d
�Zd�Ze
dkr|e�ndS(i����NiiiiicCs~|jt|d@��|d}|jt|d@��|d}|jt|d@��|d}|jt|d@��dS(Ni�i(twritetchr(toutputtvalue((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pytwrite32s


cCspt|jd��}|t|jd��d>7}|t|jd��d>7}|t|jd��d>7}|S(Niiii(tordtread(tinputtv((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pytread32s
cCs.|jd�|jtt��tj|�}|d}t||�|jd�|jd�|j|d�tjd�}tjdtj	tj
tjd�}xQtr�|j
d	�}|dkr�Pntj||�}|j|j|��q�W|j|j��t||�t||d
�dS(Ns�iss�tti	iii(RRtFNAMEtoststatRtzlibtcrc32tcompressobjtDEFLATEDt	MAX_WBITSt
DEF_MEM_LEVELtTrueRtcompresstflush(tfilenameRRtstatvaltmtimetcrcvaltcompobjtdata((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pyRs(




	
c
Cs{|jd�}|dkr0dGHtjd�nt|jd��dkr`dGHtjd�nt|jd��}|jd�|t@r�t|jd��}|d	t|jd��7}|j|�n|t@rx,tr|jd�}|d
kr�Pq�q�Wn|t@r@x,tr<|jd�}|d
krPqqWn|t@rZ|jd�nt	j
t	j�}t	jd�}d}xgtr�|jd�}	|	dkr�Pn|j
|	�}
|j|
�|t|
�7}t	j|
|�}q�W|j�}
|j|
�|t|
�7}t	j|
|�}|jd
d�t|�}t|�}||krcdGHn||krwdGHndS(Nis�sNot a gzipped fileiiisUnknown compression methodiiR
Rii����sCRC check failed.s!Incorrect length of data producedii(RtsystexitRtFEXTRARRtFCOMMENTtFHCRCRt
decompressobjRRt
decompressRtlenRtseekR	(
RRtmagictflagtxlentst	decompobjRtlengthRt
decompdataRtisize((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pyR$1s^


	
	
	

cCs�ttj�dkr/dGHdGHtjd�ntjd}|jd�r^t}|d }nt}|d}t|d�}t|d	�}|r�t|||�n
t	||�|j
�|j
�dS(
NisUsage: minigzip.py <filename>s.  The file will be compressed or decompressed.iis.gzi����trbtwb(R%RtargvRtendswithtFalseRtopenRR$tclose(Rtcompressingt
outputnameRR((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pytmainks"




t__main__(iiiii(RRR
tFTEXTR"R RR!RR	RR$R8t__name__(((s*/usr/lib64/python2.7/Demo/zlib/minigzip.pyt<module>s$				:	

ZeroDay Forums Mini