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

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/packaging/__pycache__/_musllinux.cpython-39.opt-1.pyc
a

3p�a�	@s`dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZm
Z
mZe
eeeedfd�dd�Ze
ee
ed�d	d
�ZGdd�de�Zee
ed
�dd�Ze��ee
ed�dd��Zeeed�dd�Zedk�r\ddlZe��Zede�edeej��eddd�ee�dde� dd�d ��D]Z!ee!d!d��qHdS)"z�PEP 656 support.

This module implements logic to detect if the currently running Python is
linked against musl, and what musl version is used.
�N)�IO�Iterator�
NamedTuple�Optional�Tuple.)�f�fmt�returncCst�||�t�|���S�N)�struct�unpack�read�calcsize)rr�r�8/usr/lib/python3.9/site-packages/packaging/_musllinux.py�_read_unpackedsr)rr	c	Csh|�d�zt|d�}Wntjy.YdS0|dd�td�krHdS|�t�d�d�zdd	d
�|d\}}}Wnty�YdS0tj|�}zt||�\}}}}}}}	Wntjy�YdS0t	|	d�D]�}
|�|||
�z|t||��\}}}
Wntj�yYdS0|dk�r,q�|�|�t
�|�|
���
d�}d
|v�r\dS|SdS)z�Detect musl libc location by parsing the Python executable.

    Based on: https://gist.github.com/lyssdod/f51579ae8d93c8657a5564aefc2ffbca
    ELF header: https://refspecs.linuxfoundation.org/elf/gabi4+/ch4.eheader.html
    rZ16BN�sELFZHHI�)ZIIIIHHHZIIIIIIII)rrr)ZQQQIHHHZIIQQQQQQ)r��)rr���musl)�seekrr�error�tupler�KeyError�operator�
itemgetter�range�os�fsdecoder
�strip)r�identZe_fmtZp_fmtZp_idxZp_get�_Ze_phoffZe_phentsizeZe_phnum�iZp_typeZp_offsetZp_fileszZinterpreterrrr�_parse_ld_musl_from_elfsF
��




r&c@seZdZUeed<eed<dS)�_MuslVersion�major�minorN)�__name__�
__module__�__qualname__�int�__annotations__rrrrr'Gs
r')�outputr	cCsxdd�dd�|��D�D�}t|�dks<|ddd�dkr@dSt�d	|d
�}|sXdStt|�d
��t|�d��d�S)NcSsg|]}|r|�qSrr��.0�nrrr�
<listcomp>M�z'_parse_musl_version.<locals>.<listcomp>css|]}|��VqdSr
)r"r0rrr�	<genexpr>Mr4z&_parse_musl_version.<locals>.<genexpr>rrrrzVersion (\d+)\.(\d+)r)r(r))�
splitlines�len�re�matchr'r-�group)r/�lines�mrrr�_parse_musl_versionLs r=)�
executabler	c	Cs�t���N}z|�t|d��}Wn ty>YWd�dS0t|�}Wd�n1s\0Y|sndStj|gtjdd�}t	|j
�S)a`Detect currently-running musl runtime version.

    This is done by checking the specified executable's dynamic linking
    information, and invoking the loader to parse its output for a version
    string. If the loader is musl, the output would be something like::

        musl libc (x86_64)
        Version 1.2.2
        Dynamic Program Loader
    �rbNT)�stderrZuniversal_newlines)�
contextlib�	ExitStack�
enter_context�open�OSErrorr&�
subprocess�run�PIPEr=r@)r>�stackrZld�procrrr�_get_musl_versionVs
&rK)�archr	ccsHttj�}|durdSt|jdd�D]}d|j�d|�d|��Vq$dS)aTGenerate musllinux tags compatible to the current platform.

    :param arch: Should be the part of platform tag after the ``linux_``
        prefix, e.g. ``x86_64``. The ``linux_`` prefix is assumed as a
        prerequisite for the current platform to be musllinux-compatible.

    :returns: An iterator of compatible musllinux tags.
    N���Z
musllinux_r$)rK�sysr>rr)r()rLZsys_muslr)rrr�
platform_tagsns
	
rO�__main__zplat:zmusl:ztags:� )�endz[.-]r$�-rrMz
      )"�__doc__rA�	functoolsrr r8rrFrN�typingrrrrr�bytes�strr-rr&r'r=�	lru_cacherKrOr*Z	sysconfigZget_platformZplat�printr>�sub�split�trrrr�<module>s01


"

Youez - 2016 - github.com/yon3zu
LinuXploit