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:/laragon/bin/python/python-3.10/Lib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/laragon/bin/python/python-3.10/Lib/__pycache__/uu.cpython-310.pyc
o

�L�b��@sldZddlZddlZddlZgd�ZGdd�de�Zddd�dd	�Zdd
d�Zdd
�Z	e
dkr4e	�dSdS)z�Implementation of the UUencode and UUdecode functions.

encode(in_file, out_file [,name, mode], *, backtick=False)
decode(in_file [, out_file, mode, quiet])
�N)�Error�encode�decodec@seZdZdS)rN)�__name__�
__module__�__qualname__�rr�C:\python3.10-64\lib\uu.pyr'srF��backtickc	Csxg}z�|dkrtjj}n/t|t�r;|durtj�|�}|dur1zt�|�j	}Wn	t
y0Ynwt|d�}|�|�|dkrDtj
j}nt|t�rSt|d�}|�|�|durYd}|dur_d}|�dd�}|�dd	�}|�d
|d@|f�d��|�d
�}t|�dkr�|�tj||d��|�d
�}t|�dks�|r�|�d�n|�d�W|D]}|��q�dS|D]}|��q�w)z
Uuencode file�-N�rb�wbi��
z\n�
z\rzbegin %o %s
i��ascii�-rr
s`
end
s 
end
)�sys�stdin�buffer�
isinstance�str�os�path�basename�stat�st_mode�AttributeError�open�append�stdout�replace�writer�read�len�binascii�b2a_uu�close)�in_file�out_file�name�moder�opened_files�data�frrr	r*sR

�







�
�
�
�rc

Csg}|dkrtjj}nt|t�rt|d�}|�|�z�	|��}|s&td��|�	d�s,q|�
dd�}t|�dkrQ|d	dkrQz	t|d
d�Wn
t
yPYnwq|durl|d�d
��d�}tj�|�rltd|��|durwt|d
d�}|dkr�tjj}nt|t�r�t|d�}t�||�|}|�|�|��}|r�|�d
�dkr�zt�|�}	Wn4tjy�}
z'|d	dd@ddd}t�|d|��}	|s�tj�d|
�WYd}
~
nd}
~
ww|�|	�|��}|r�|�d
�dks�|s�td��W|D]}|��q�dS|D]}|���qw)zDecode uuencoded filerr
Tz'No valid begin line found in input filesbegin� ��r��Ns 	
rz"Cannot overwrite existing file: %srsend� �?��zWarning: %s
zTruncated input file)rrrrrrr�readliner�
startswith�splitr$�int�
ValueError�rstriprrr�existsr �chmod�stripr%�a2b_uu�stderrr"r')
r(r)r+�quietr,�hdrZ	hdrfields�fp�sr-�v�nbytesr.rrr	rdsr




��




��
��
��rcCs2ddl}|jdd�}|jddddd	d
d�|jdd
ddd	d
d�|��\}}t|�dkr6|�d�t�d�tjj	}tj
j	}t|�dkrH|d}t|�dkrR|d}|jrw|jrpt
|t�rct|d�}n
ttjdd�t�d�t||�dS|jr�t
|t�r�t|d�}n
ttjdd�t�d�t||�dS)zuuencode/uudecode main programrNz'usage: %prog [-d] [-t] [input [output]])�usagez-dz--decoderzDecode (instead of encode)?F�
store_true)�dest�help�default�actionz-tz--text�textz2data is text, encoded format unix-compatible text?r0zincorrect number of argumentsr2rz: cannot do -t to stdoutr
z: cannot do -t from stdin)�optparse�OptionParser�
add_option�
parse_argsr$�errorr�exitrrr rrOrrr�print�argvr)rP�parser�options�args�input�outputrrr	�test�s6





r]�__main__)NN)NNF)�__doc__r%rr�__all__�	Exceptionrrrr]rrrrr	�<module>s
:C&
�

Youez - 2016 - github.com/yon3zu
LinuXploit