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/pip/_internal/network/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/pip/_internal/network/__pycache__/session.cpython-37.pyc
B

�N�aYA�@sUdZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
ZddlZddlmZmZmZmZmZmZmZmZmZddlmZmZddlmZddlm Z m!Z!ddl"m#Z#m$Z$ddl%m&Z&dd	l'm(Z(dd
l)m*Z*ddl+m,Z,ddl-m.Z.dd
l/m0Z0ddl1m2Z2ddl3m4Z4ddl5m6Z6ddl7m8Z8ddl9m:Z:m;Z;ddl<m=Z=e�>e?�Z@eeAeAeeeBeAffZCejDde*d�ddddddgZEeeCeFd<dZGeHd�dd �ZIeAd�d!d"�ZJGd#d$�d$e �ZKGd%d&�d&e!�ZLGd'd(�d(e�ZMGd)d*�d*ejN�ZOdS)+zhPipSession and supporting code, containing all pip-specific
network request configuration and behavior.
�N)	�Any�Dict�Iterator�List�Mapping�Optional�Sequence�Tuple�Union)�requests�urllib3)�CacheControlAdapter)�BaseAdapter�HTTPAdapter)�PreparedRequest�Response)�CaseInsensitiveDict)�ConnectionPool)�InsecureRequestWarning)�__version__)�get_default_environment)�Link)�MultiDomainBasicAuth)�
SafeFileCache)�has_tls)�libc_ver)�build_url_from_netloc�parse_netloc)�url_to_path�ignore)�category)Zhttps�*r!)r!Z	localhostr!)r!z127.0.0.0/8r!)r!z::1/128r!)�filer!N)Zsshr!r!�SECURE_ORIGINS)Z
BUILD_BUILDIDZBUILD_IDZCIZ	PIP_IS_CI)�returncCstdd�tD��S)z?
    Return whether it looks like pip is running under CI.
    css|]}|tjkVqdS)N)�os�environ)�.0�name�r)�A/usr/lib/python3.7/site-packages/pip/_internal/network/session.py�	<genexpr>Xsz looks_like_ci.<locals>.<genexpr>)�any�CI_ENVIRONMENT_VARIABLESr)r)r)r*�
looks_like_ciQsr.c
Cs�dtd�t��dt��id�}|dddkr@t��|dd<n�|dddkr�tj}|jd	krl|d
d�}d�d
d�|D��|dd<nB|dddkr�t��|dd<n |dddkr�t��|dd<tj�d��rTddl	m
}|��|��|�
�f}ttdd�tdddg|���}ttdd�tddgt����}|�rF||d<|�rT||d<tj�d��r�t��d�r�dt��dd�|d<t���r�t��|�di�d<t���r�t��|�di�d<t���r�t��|d<t��r�dd
l}|j|d <t��d!�}|d
k	�rt|j�|d"<t�d#�d
k	�rzytj d#d$gtj!d%d&�}Wnt"k
�rVYn$X|�d'��rz|�#d(�d)�$�|d*<t%��r�d+nd
|d,<t&j'�(d-�}	|	d
k	�r�|	|d.<d/j)|t*j+|d0d+d1�d2�S)3z6
    Return a string representing the user agent.
    �pip)r(�versionr()Z	installerZpython�implementationr1ZCPythonr0ZPyPy�finalN��.cSsg|]}t|��qSr))�str)r'�xr)r)r*�
<listcomp>nszuser_agent.<locals>.<listcomp>ZJythonZ
IronPythonZlinuxr)�distrocSs|dS)N�r))r6r)r)r*�<lambda>}�zuser_agent.<locals>.<lambda>�idcSs|dS)Nr9r))r6r)r)r*r:�r;�lib�libcr8�darwinZmacOS�system�releaseZcpuZopenssl_versionZ
setuptoolsZsetuptools_versionZrustcz	--versiong�?)�stderr�timeoutsrustc � r9Z
rustc_versionTZciZPIP_USER_AGENT_USER_DATA�	user_dataz9{data[installer][name]}/{data[installer][version]} {json})�,�:)Z
separatorsZ	sort_keys)�data�json),r�platformZpython_versionZpython_implementation�sys�pypy_version_info�releaselevel�join�
startswith�pip._vendorr8r(r0Zcodename�dict�filter�ziprZmac_verr@�
setdefaultrA�machinerZ_sslZOPENSSL_VERSIONrZget_distributionr5�shutilZwhich�
subprocessZcheck_outputZSTDOUT�	Exception�split�decoder.r%r&�get�formatrI�dumps)
rHrLr8Zlinux_distributionZdistro_infosr>ZsslZsetuptools_distZrustc_outputrEr)r)r*�
user_agent[sv






r^c@sreZdZd
eeeeeeeeffeee	feee	ee	e	ffee
e	e	fed�dd�Zdd�dd	�Z
dS)�LocalFSAdapterFNT)�request�streamrC�verify�cert�proxiesr$c

Cs�t|j�}t�}d|_|j|_yt�|�}	WnRtk
r~}
z4d|_t|
�j|_	t
�|j	�d|
���d��|_
Wdd}
~
XYnPXtjj|	jdd�}t�|�dp�d}t||	j|d	��|_t|d
�|_
|j
j|_|S)N��i�z: �utf8T)Zusegmtrz
text/plain)zContent-TypezContent-Lengthz
Last-Modified�rb)r�urlrZstatus_coder%�stat�OSError�type�__name__�reason�io�BytesIO�encode�raw�emailZutilsZ
formatdate�st_mtime�	mimetypesZ
guess_typer�st_size�headers�open�close)
�selfr`rarCrbrcrd�pathnameZrespZstats�excZmodifiedZcontent_typer)r)r*�send�s&	
0
zLocalFSAdapter.send)r$cCsdS)Nr))ryr)r)r*rx�szLocalFSAdapter.close)FNTNN)rl�
__module__�__qualname__r�boolrr
�floatr	r5rrr|rxr)r)r)r*r_�sJr_c	sFeZdZeeeeefeeeeeeffdd��fdd�Z	�Z
S)�InsecureHTTPAdapterN)�connrhrbrcr$cst�j||d|d�dS)NF)r�rhrbrc)�super�cert_verify)ryr�rhrbrc)�	__class__r)r*r��szInsecureHTTPAdapter.cert_verify)rlr}r~rr5r
rrr	r��
__classcell__r)r))r�r*r��s

r�c	sFeZdZeeeeefeeeeeeffdd��fdd�Z	�Z
S)�InsecureCacheControlAdapterN)r�rhrbrcr$cst�j||d|d�dS)NF)r�rhrbrc)r�r�)ryr�rhrbrc)r�r)r*r��sz'InsecureCacheControlAdapter.cert_verify)rlr}r~rr5r
rrr	r�r�r)r))r�r*r��s

r�c	s�eZdZUdZeeed<ddddd�eeeee	eee
eedd��fdd�Ze
edd	�d
d�Zdeeee
dd
�dd�Zeed�dd�Zee
d�dd�Zeeeeed��fdd�Z�ZS)�
PipSessionNrCrr))�retries�cache�
trusted_hosts�
index_urls)�argsr�r�r�r��kwargsr$c
s�t�j||�g|_t�|jd<t|d�|_tj|ddddgdd�}t	|d	�}|rvt
t|�|d
�}tt|�|d
�|_
nt|d	�}||_
|�d|�|�d|�|�d
t��x|D]}	|j|	dd�q�WdS)zj
        :param trusted_hosts: Domains not to emit warnings for when not using
            HTTPS.
        z
User-Agent)r�i�i�iig�?)ZtotalZstatus_forcelistZbackoff_factor)�max_retries)r�r�zhttps://zhttp://zfile://T)�suppress_loggingN)r��__init__�pip_trusted_originsr^rvr�authrZRetryr�r
rr��_trusted_host_adapterr�mountr_�add_trusted_host)
ryr�r�r�r�r�r�Zinsecure_adapterZsecure_adapter�host)r�r)r*r�s.




zPipSession.__init__)�new_index_urlsr$cCs||j_dS)zn
        :param new_index_urls: New index urls to update the authentication
            handler with.
        N)r�r�)ryr�r)r)r*�update_index_urlsSszPipSession.update_index_urlsF)r��sourcer�r$cCs�|s0d|��}|dk	r&|d|�d�7}t�|�t|�}||jkrN|j�|�|�t|dd�d|j�|�t|�d|j�|ds�|�t|dd�d	|j�|�t|�d	|j�dS)
z�
        :param host: It is okay to provide a host that has previously been
            added.
        :param source: An optional source string, for logging where the host
            string came from.
        zadding trusted host: Nz (from �)Zhttp)�scheme�/r9rG)�logger�inforr��appendr�rr�)ryr�r�r��msgZ	host_portr)r)r*r�Zs 	


zPipSession.add_trusted_host)r$ccs:tEdHx*|jD] \}}d||dkr*dn|fVqWdS)Nr!)r#r�)ryr��portr)r)r*�iter_secure_originsys
zPipSession.iter_secure_origins)�locationr$c	Cs�tj�t|��}|j|j|j}}}|�dd�d}x�|��D]�}|\}}}	||kr`|dkr`q@yt	�
|�}
t	�|�}Wn2tk
r�|r�|�
�|�
�kr�|dkr�w@YnX|
|kr�q@||	kr�|	dkr�|	dk	r�q@dSWt�d||�dS)N�+r9���r!Tz�The repository located at %s is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host %s'.F)�urllib�parseZurlparser5r�Zhostnamer��rsplitr��	ipaddressZ
ip_addressZ
ip_network�
ValueError�lowerr�Zwarning)ryr�ZparsedZorigin_protocolZorigin_hostZorigin_portZ
secure_originZsecure_protocolZsecure_hostZsecure_portZaddrZnetworkr)r)r*�is_secure_origin~s:

zPipSession.is_secure_origin)�methodrhr�r�r$cs$|�d|j�t�j||f|�|�S)NrC)rTrCr�r`)ryr�rhr�r�)r�r)r*r`�szPipSession.request)NF)rlr}r~rCr�int�__annotations__rr5rrr�r�rr�r�SecureOriginr�rr�rr`r�r)r))r�r*r�s
 ECr�)P�__doc__Zemail.utilsrrrnr�rIZloggingrtr%rJrVrWrKZurllib.parser��warnings�typingrrrrrrrr	r
rPrrZpip._vendor.cachecontrolr
Zpip._vendor.requests.adaptersrrZpip._vendor.requests.modelsrrZpip._vendor.requests.structuresrZ"pip._vendor.urllib3.connectionpoolrZpip._vendor.urllib3.exceptionsrr/rZpip._internal.metadatarZpip._internal.models.linkrZpip._internal.network.authrZpip._internal.network.cacherZpip._internal.utils.compatrZpip._internal.utils.glibcrZpip._internal.utils.miscrrZpip._internal.utils.urlsrZ	getLoggerrlr�r5r�r��filterwarningsr#r�r-rr.r^r_r�r�ZSessionr�r)r)r)r*�<module>s\,



e,

Youez - 2016 - github.com/yon3zu
LinuXploit