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/pip/_vendor/distlib/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-39.pyc
a

X��e�G�@s�ddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
ddlmZddlmZmZmZmZmZmZe�e�Zd��Ze�d	�Zd
Zdd�ZeZ Gd
d�de!�Z"dS)�)�BytesION)�ZipInfo�)�	sysconfig�detect_encoding�ZipFile)�finder)�FileOperator�get_export_entry�convert_path�get_executable�get_platform�in_venva�
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <assemblyIdentity version="1.0.0.0"
 processorArchitecture="X86"
 name="%s"
 type="win32"/>

 <!-- Identify the application security requirements. -->
 <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
 <security>
 <requestedPrivileges>
 <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
 </requestedPrivileges>
 </security>
 </trustInfo>
</assembly>s^#!.*pythonw?[0-9.]*([ 	].*)?$z�# -*- coding: utf-8 -*-
import re
import sys
from %(module)s import %(import_name)s
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
cCsXd|vrT|�d�rB|�dd�\}}d|vrT|�d�sTd||f}n|�d�sTd|}|S)N� z
/usr/bin/env r�"z%s "%s"z"%s")�
startswith�split)�
executable�envZ_executable�r�?/usr/lib/python3.9/site-packages/pip/_vendor/distlib/scripts.py�enquote_executable5s

rc@s�eZdZdZeZdZd*dd�Zdd�Ze	j
�d	�rBd
d�Zdd
�Z
dd�Zd+dd�Zdd�ZeZdd�Zdd�ZdZdd�Zd,dd�Zdd�Zed d!��Zejd"d!��Zejd#ks�ejd	kr�ejd#kr�d$d%�Zd-d&d'�Z d.d(d)�Z!dS)/�ScriptMakerz_
    A class to copy or create scripts from source scripts or callable
    specifications.
    NTFcCs�||_||_||_d|_d|_tjdkp:tjdko:tjdk|_t	d�|_
|pRt|�|_tjdkprtjdkortjdk|_
tj|_dS)NF�posix�java)��X.Y�nt)�
source_dir�
target_dir�
add_launchers�force�clobber�os�name�_name�set_mode�set�variantsr	�_fileop�_is_nt�sys�version_info)�selfrrr �dry_runZfileoprrr�__init__Rs�
�zScriptMaker.__init__cCs@|�dd�r<|jr<tj�|�\}}|�dd�}tj�||�}|S)N�guiFZpythonZpythonw)�getr*r#�pathr�replace�join)r-r�optionsZdn�fnrrr�_get_alternate_executablegs
z%ScriptMaker._get_alternate_executablerc	Csfz<t|�� }|�d�dkWd�WS1s00YWn$ttfy`t�d|�YdS0dS)zl
            Determine if the specified executable is a script
            (contains a #! line)
            �z#!NzFailed to open %sF)�open�read�OSError�IOError�logger�warning)r-r�fprrr�	_is_shellps
2zScriptMaker._is_shellcCsD|�|�r*ddl}|jj�d�dkr<|Sn|���d�r<|Sd|S)Nrzos.nameZLinuxz
jython.exez/usr/bin/env %s)r@r�langZSystemZgetProperty�lower�endswith)r-rrrrr�_fix_jython_executable|s
z"ScriptMaker._fix_jython_executablecCs�tjdkrd}n8t|�t|�d}tjdkr4d}nd}d|voF||k}|r^d||d	}n d
}|d||d7}|d
7}|S)a
        Build a shebang line. In the simple case (on Windows, or a shebang line
        which is not too long or contains spaces) use a simple formulation for
        the shebang. Otherwise, use /bin/sh as the executable, with a contrived
        shebang which allows the script to run either under Python or sh, using
        suitable quoting. Thanks to Harald Nordgren for his input.

        See also: http://www.in-ulm.de/~mascheck/various/shebang/#length
                  https://hg.mozilla.org/mozilla-central/file/tip/mach
        rT��darwini�� s#!�
s
#!/bin/sh
s	'''exec' s "$0" "$@"
s' ''')r#r$�lenr+�platform)r-r�post_interpZsimple_shebangZshebang_lengthZmax_shebang_length�resultrrr�_build_shebang�s

�zScriptMaker._build_shebang�cCszd}|jr|j}d}n�t��s&t�}nxt�rLtj�t�d�dt�	d��}nRtj
dkrvtj�t�	d�dt�	d��}n(tj�t�	d�dt�	d	�t�	d�f�}|r�|�||�}tj
�d
�r�|�|�}|r�t|�}|�d�}tj
dkr�d
|vr�d|vr�|d7}|�||�}z|�d�Wn t�y6td|��Yn0|dk�rvz|�|�Wn$t�yttd||f��Yn0|S)NTFZscriptszpython%sZEXErZBINDIRz
python%s%sZVERSIONr�utf-8Zcliz	-X:Framesz
-X:FullFramess
 -X:Framesz,The shebang (%r) is not decodable from utf-8z?The shebang (%r) is not decodable from the script encoding (%r))rrZis_python_buildrrr#r2r4Zget_pathZget_config_varr$r7r+rKrrDr�encoderN�decode�UnicodeDecodeError�
ValueError)r-�encodingrLr5Zenquoter�shebangrrr�_get_shebang�s`�
�
��


��
�zScriptMaker._get_shebangcCs$|jt|j|j�d�d|jd�S)N�.r)�moduleZimport_name�func)�script_template�dict�prefix�suffixr)r-�entryrrr�_get_script_text�s
�zScriptMaker._get_script_textcCstj�|�}|j|S�N)r#r2�basename�manifest)r-Zexename�baserrr�get_manifest�szScriptMaker.get_manifestcCsF|jo
|j}tj�d�}|�|�s*||7}|s8||}n�|dkrL|�d�}n
|�d�}t�}	t|	d��\}
tj	�
d�}|r�t�t
|��dd�}td|d�}
|
�|
|�n|
�d|�Wd�n1s�0Y|	��}|||}|D�]T}tj�|j|�}|�r�tj�|�\}}|�d	��r&|}d
|}z|j�||�Wn�t�y�t�d�d|}tj�|��rzt�|�t�||�|j�||�t�d
�zt�|�Wnt�y�Yn0Yn0nl|j�r�|�d|��s�d||f}tj�|��r|j�st�d|�q�|j�||�|j �r6|j�!|g�|�"|�q�dS)NrP�py�t�w�SOURCE_DATE_EPOCH�z__main__.py)�filename�	date_timez.pyz%s.exez:Failed to write executable - trying to use .deleteme logicz%s.deletemez0Able to replace executable using .deleteme logicrXz%s.%szSkipping existing file %s)#r r*r#�lineseprQrC�
_get_launcherrr�environr1�time�gmtime�intrZwritestr�getvaluer2r4r�splitextrr)Zwrite_binary_file�	Exceptionr=r>�exists�remove�rename�debugr"r&�set_executable_mode�append)r-�namesrVZscript_bytes�	filenames�extZuse_launcherrmZlauncher�stream�zfZsource_date_epochrlZzinfoZzip_datar$�outname�n�eZdfnamerrr�
_write_script�sj


�*



�zScriptMaker._write_script�-cCsnt�}d|jvr|�|�d|jvr<|�d||jdf�d|jvrj|�d||j|jd|jdf�|S)Nr�Xz%s%srrz	%s%s%s.%sr)r'r(�addr,�variant_separator)r-r$rMrrr�get_script_filenames9s



��z ScriptMaker.get_script_filenamesc
Cs�d}|r0|�dg�}|r0dd�|�}|�d�}|jd||d�}|�|��d�}|�|j�}|rr|�dd�rrd	}	nd
}	|�|||||	�dS)NrOZinterpreter_argsz %srrP�r5r0F�pywrf)r1r4rQrWr`r�r$r�)
r-r_r}r5rL�argsrV�scriptZscriptnamesr~rrr�_make_scriptEs
zScriptMaker._make_scriptcCs�d}tj�|jt|��}tj�|jtj�|��}|jsT|j�	||�sTt
�d|�dSzt|d�}Wnt
y�|jsx�d}YnF0|��}|s�t
�d|�dSt�|�dd��}|r�d}|�d�p�d	}|�s|r�|��|j�||�|jr�|j�|g�|�|�n�t
�d
||j�|jj�s|t|j�\}	}
|�d�|�|	|�}d|v�rTd
}nd}tj�|�}
|�|
g||��||�|�r�|��dS)NFznot copying %s (up-to-date)�rbz%s is an empty file (skipping)s
rITrrOzcopying and adjusting %s -> %srspythonwr�rf) r#r2r4rrrrbr!r)Znewerr=ryr9r<r.�readliner>�
FIRST_LINE_RE�matchr3�group�closeZ	copy_filer&rzr{�infor�seekrWr�r:)r-r�r}Zadjustr��fZ
first_liner�rLrU�linesrVr~r�rrr�_copy_scriptUsR
�


zScriptMaker._copy_scriptcCs|jjSra�r)r.)r-rrrr.�szScriptMaker.dry_runcCs||j_dSrar�)r-�valuerrrr.�srcCstt�d�dkrd}nd}t�dkr&dnd}d|||f}t�d	d
�d}t|��|�}|snd||f}t|��|jS)
N�P�Z64Z32z	win-arm64z-armrz
%s%s%s.exerXrrz(Unable to find resource %s in package %s)	�struct�calcsizer
�__name__�rsplitr�findrT�bytes)r-�kind�bitsZplatform_suffixr$Zdistlib_package�resource�msgrrrrn�s�zScriptMaker._get_launchercCs6g}t|�}|dur"|�||�n|j|||d�|S)a�
        Make a script.

        :param specification: The specification, which is either a valid export
                              entry specification (to make a script from a
                              callable) or a filename (to make a script by
                              copying from a source location).
        :param options: A dictionary of options controlling script generation.
        :return: A list of all absolute pathnames written to.
        Nr�)r
r�r�)r-�
specificationr5r}r_rrr�make�szScriptMaker.makecCs$g}|D]}|�|�||��q|S)z�
        Take a list of specifications and make scripts from them,
        :param specifications: A list of specifications.
        :return: A list of all absolute pathnames written to,
        )�extendr�)r-Zspecificationsr5r}r�rrr�
make_multiple�szScriptMaker.make_multiple)TFN)rON)N)N)N)"r��
__module__�__qualname__�__doc__�SCRIPT_TEMPLATEr[rr/r7r+rKrr@rDrNrWr`�_DEFAULT_MANIFESTrcrer�r�r�r�r��propertyr.�setterr#r$r%rnr�r�rrrrrIs>�

H<
3

�
r)#�iorZloggingr#�rer�r+rp�zipfiler�compatrrrZ	resourcesr�utilr	r
rrr
rZ	getLoggerr�r=�stripr��compiler�r�rZ_enquote_executable�objectrrrrr�<module>s" 




Youez - 2016 - github.com/yon3zu
LinuXploit