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/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/__pycache__/sandbox.cpython-39.opt-2.pyc
a

��ek9�@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlmZm
Z
ddlZddlmZddlmZej�d�r�ddlmmmmZnejejZzeZWney�dZYn0eZgd�Z d.dd�Z!ej"d/d	d
��Z#ej"dd��Z$ej"d
d��Z%ej"dd��Z&Gdd�de'�Z(Gdd�d�Z)ej"dd��Z*dd�Z+ej"dd��Z,ej"dd��Z-hd�Z.dd�Z/d d!�Z0d"d#�Z1Gd$d%�d%�Z2e3ed&��r�ej4gZ5ngZ5Gd'd(�d(e2�Z6e�7ej8d)d*�d+�9�D��Z:Gd,d-�d-e�Z;dS)0�N)�Union�List)�DistutilsError)�working_set�java)�AbstractSandbox�DirectorySandbox�SandboxViolation�	run_setupcCs^d}t||��}|��}Wd�n1s,0Y|durB|}t||d�}t|||�dS)N�rb�exec)�open�read�compiler)�filename�globals�locals�mode�streamZscript�code�r�6/usr/lib/python3.9/site-packages/setuptools/sandbox.py�	_execfile%s&rc
csRtjdd�}|dur$|tjdd�<z|VW|tjdd�<n|tjdd�<0dS�N)�sys�argv)�repl�savedrrr�	save_argv2src
cs<tjdd�}z|VW|tjdd�<n|tjdd�<0dSr)r�path�rrrr�	save_path=sr!ccs8tj|dd�tj}|t_zdVW|t_n|t_0dS)NT)�exist_ok)�os�makedirs�tempfileZtempdir)Zreplacementrrrr�
override_tempFsr&c	cs8t��}t�|�z|VWt�|�nt�|�0dSr)r#�getcwd�chdir)�targetrrrr�pushdWs

r*c@seZdZedd��ZdS)�UnpickleableExceptionc	CsNzt�|�t�|�fWStyHddlm}|�||t|���YS0dS)Nr)r+)�pickle�dumps�	Exception�setuptools.sandboxr+�dump�repr)�type�exc�clsrrrr0fs
zUnpickleableException.dumpN)�__name__�
__module__�__qualname__�staticmethodr0rrrrr+asr+c@s$eZdZdd�Zdd�Zdd�ZdS)�ExceptionSavercCs|Srr��selfrrr�	__enter__{szExceptionSaver.__enter__cCs |sdSt�||�|_||_dS)NFT)r+r0�_saved�_tb)r;r2r3�tbrrr�__exit__~s
zExceptionSaver.__exit__cCs2dt|�vrdSttj|j�\}}|�|j��dS)Nr=)�vars�mapr,�loadsr=�with_tracebackr>)r;r2r3rrr�resume�szExceptionSaver.resumeN)r5r6r7r<r@rErrrrr9usr9c#sjtj���t��}�VWd�n1s,0Ytj����fdd�tjD�}t|�|��dS)Nc3s$|]}|�vr|�d�s|VqdS)z
encodings.N��
startswith)�.0�mod_namer rr�	<genexpr>�s
�zsave_modules.<locals>.<genexpr>)r�modules�copyr9�update�_clear_modulesrE)�	saved_excZdel_modulesrr r�save_modules�s
$
�rPcCst|�D]}tj|=qdSr)�listrrK)Zmodule_namesrIrrrrN�srNc	cs.t��}z|VWt�|�nt�|�0dSr)�
pkg_resources�__getstate__�__setstate__r rrr�save_pkg_resources_state�srUc
cstj�|d�}t���t���t���t�t��nt|��Ft	|��t
d�dVWd�n1sj0YWd�n1s�0YWd�n1s�0YWd�n1s�0YWd�n1s�0YWd�n1�s0YdS)NZtemp�
setuptools)r#r�joinrUrPr!�hide_setuptoolsrr&r*�
__import__)�	setup_dirZtemp_dirrrr�
setup_context�s

r[>rVrR�	distutils�_distutils_hackZCythoncCs|�dd�d}|tvS)N�.�r)�split�_MODULES_TO_HIDE)rIZbase_modulerrr�
_needs_hiding�srbcCs6tj�dd�}|dur|��tttj�}t|�dS)Nr])rrK�get�_remove_shim�filterrbrN)r]rKrrrrX�s
rXcCs�tj�tj�|��}t|���z�|gt|�tjdd�<tj�d|�t	�
�t	j�dd��t
|��&t|dd�}t||�Wd�n1s�0YWn6ty�}z|jr�|jdr��WYd}~n
d}~00Wd�n1s�0YdS)NrcSs|��Sr)Zactivate)Zdistrrr�<lambda>�zrun_setup.<locals>.<lambda>�__main__)�__file__r5)r#r�abspath�dirnamer[rQrr�insertr�__init__Z	callbacks�appendr�dictr�
SystemExit�args)Zsetup_scriptrqrZ�ns�vrrrr
�s

,r
c@s2eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Ze	d�d
d�Z
dD]Zee
e�rFe
e�e�e<qFd$e	d�dd�Zer�ede�Zede�ZdD]Zee
e�r�ee�e�e<q�e	d�dd�ZdD]Zee
e�r�ee�e�e<q�e	d�dd�ZdD]Zee
e�r�ee�e�e<q�dd�Zdd�Zd d!�Zd"d#�ZdS)%rFcs�fdd�tt�D��_dS)Ncs$g|]}|�d�st�|�r|�qS)�_)rG�hasattr)rH�namer:rr�
<listcomp>s�z,AbstractSandbox.__init__.<locals>.<listcomp>)�dir�_os�_attrsr:rr:rrms
�zAbstractSandbox.__init__cCs"|jD]}tt|t||��qdSr)rz�setattrr#�getattr)r;�sourcervrrr�_copys
zAbstractSandbox._copycCs(|�|�tr|jt_|jt_d|_dS)NT)r~�_file�builtins�file�_openr
�_activer:rrrr<s

zAbstractSandbox.__enter__cCs$d|_trtt_tt_|�t�dS�NF)r�rr�r�r�r
r~ry)r;�exc_type�	exc_value�	tracebackrrrr@"s
zAbstractSandbox.__exit__cCs.|�|�Wd�S1s 0YdSrr)r;�funcrrr�run)szAbstractSandbox.run)rvcstt�����fdd�}|S)Ncs>|jr&|j�||g|�Ri|��\}}�||g|�Ri|��Sr)r��_remap_pair)r;�src�dstrq�kw�rv�originalrr�wrap1s z3AbstractSandbox._mk_dual_path_wrapper.<locals>.wrap�r|ry�rvr�rr�r�_mk_dual_path_wrapper.s
z%AbstractSandbox._mk_dual_path_wrapper)�rename�link�symlinkNcs �ptt�����fdd�}|S)Ncs6|jr |j�|g|�Ri|��}�|g|�Ri|��Sr)r��_remap_input�r;rrqr�r�rrr�?sz5AbstractSandbox._mk_single_path_wrapper.<locals>.wrapr�)rvr�r�rr�r�_mk_single_path_wrapper<sz'AbstractSandbox._mk_single_path_wrapperr�r
)�stat�listdirr(r
�chmod�chown�mkdir�remove�unlink�rmdir�utime�lchown�chroot�lstatZ	startfile�mkfifo�mknod�pathconf�accesscstt�����fdd�}|S)NcsT|jr>|j�|g|�Ri|��}|���|g|�Ri|���S�|g|�Ri|��Sr)r�r��
_remap_outputr�r�rrr�dsz4AbstractSandbox._mk_single_with_return.<locals>.wrapr�r�rr�r�_mk_single_with_returnas
z&AbstractSandbox._mk_single_with_return)�readlink�tempnamcstt�����fdd�}|S)Ncs$�|i|��}|jr |��|�S|Sr)r�r�)r;rqr�Zretvalr�rrr�ssz'AbstractSandbox._mk_query.<locals>.wrapr�r�rr�r�	_mk_queryps
zAbstractSandbox._mk_query)r'�tmpnamcCs|Srr)r;rrrr�_validate_pathszAbstractSandbox._validate_pathcOs
|�|�Sr�r��r;�	operationrrqr�rrrr��szAbstractSandbox._remap_inputcCs
|�|�Srr�)r;r�rrrrr��szAbstractSandbox._remap_outputcOs<|j|d|g|�Ri|��|j|d|g|�Ri|��fS)Nz-fromz-to)r��r;r�r�r�rqr�rrrr��s�zAbstractSandbox._remap_pair)N)r5r6r7r�rmr~r<r@r��strr�rvruryrr�rr�r�r�r�r�r�r�rrrrrs:







r�devnullc@s�eZdZUe�gd��ZgZeee	e
jfed<e
fdd�Zdd�ZerTddd	�Zdd
d�Zdd
�Zdd�Zdd�Zdd�Zdd�Zddd�ZdS)r)
r
r�r�r�r�r�r�r�r�r�r�r�r��_exception_patternscCsFtj�tj�|��|_tj�|jd�|_dd�|D�|_t�	|�dS)N�cSs g|]}tj�tj�|���qSr)r#r�normcase�realpath)rHrrrrrw�sz-DirectorySandbox.__init__.<locals>.<listcomp>)
r#rr�r��_sandboxrW�_prefix�_exceptionsrrm)r;Zsandbox�
exceptionsrrrrm�s�zDirectorySandbox.__init__cOsddlm}||||��dS)Nr)r	)r/r	)r;r�rqr�r	rrr�
_violation�szDirectorySandbox._violation�rcOsF|dvr.|�|�s.|jd||g|�Ri|��t||g|�Ri|��S)N�r�ZrtrZrU�Ur�)�_okr�r�r;rrrqr�rrrr�szDirectorySandbox._filecOsF|dvr.|�|�s.|jd||g|�Ri|��t||g|�Ri|��S)Nr�r
)r�r�r�r�rrrr��szDirectorySandbox._opencCs|�d�dS)Nr�)r�r:rrrr��szDirectorySandbox.tmpnamcCsV|j}zBd|_tj�tj�|��}|�|�p@||jkp@|�|j�W||_S||_0dSr�)	r�r#rr�r��	_exemptedr�rGr�)r;rZactiver�rrrr��s
�
��zDirectorySandbox._okcs<�fdd�|jD�}�fdd�|jD�}t�||�}t|�S)Nc3s|]}��|�VqdSrrF)rH�	exception��filepathrrrJ�sz-DirectorySandbox._exempted.<locals>.<genexpr>c3s|]}t�|��VqdSr)�re�match)rH�patternr�rrrJ�s)r�r��	itertools�chain�any)r;r�Z
start_matchesZpattern_matchesZ
candidatesrr�rr��s
�
�zDirectorySandbox._exemptedcOs:||jvr6|�|�s6|j|tj�|�g|�Ri|��|Sr)�	write_opsr�r�r#rr�r�rrrr��s"zDirectorySandbox._remap_inputcOs8|�|�r|�|�s0|j|||g|�Ri|��||fSr)r�r�r�rrrr��szDirectorySandbox._remap_pair�cOsL|t@r0|�|�s0|jd|||g|�Ri|��tj|||g|�Ri|��S)Nzos.open)�WRITE_FLAGSr�r�ryr
)r;r��flagsrrqr�rrrr
�szDirectorySandbox.openN)r�)r�)r�)r5r6r7ro�fromkeysr�r�rrr�r��Pattern�__annotations__�_EXCEPTIONSrmr�rr�r�r�r�r�r�r
rrrrr�s




rcCsg|]}tt|d��qS)rr�)rH�arrrrw�s�rwz4O_WRONLY O_RDWR O_APPEND O_CREAT O_TRUNC O_TEMPORARYc@s"eZdZe�d���Zdd�ZdS)r	a
        SandboxViolation: {cmd}{args!r} {kwargs}

        The package setup script has attempted to modify files on your system
        that are not within the EasyInstall build area, and has been aborted.

        This package cannot be safely installed by EasyInstall, and may not
        support alternate installation locations even if you run its setup
        script by hand.  Please inform the package's author and the EasyInstall
        maintainers to find out if a fix or workaround is available.
        cCs |j\}}}|jjfit���Sr)rq�tmpl�formatr)r;�cmdrq�kwargsrrr�__str__szSandboxViolation.__str__N)r5r6r7�textwrap�dedent�lstripr�r�rrrrr	�s�r	)N)N)<r#rr%�operator�	functoolsr�r��
contextlibr,r�r��typingrrrRZdistutils.errorsrr�platformrGZ$org.python.modules.posix.PosixModuleZpythonrK�posixZPosixModuleryrvr�r�	NameErrorr
r��__all__r�contextmanagerrr!r&r*r.r+r9rPrNrUr[rarbrXr
rrur�r�r�reduce�or_r`r�r	rrrr�<module>st 






	


		
\��	

Youez - 2016 - github.com/yon3zu
LinuXploit