shell bypass 403

UnknownSec Shell


name : magic.cpython-36.opt-1.pyc
3

�\f�"�@s�dZddlZddlZddlmZddlTddlmZdd�ZiZe�ed<dZ	Z
d	ZZd
Z
ZdZZdZZd
ZZdZZdZZdZZdZZdZZdZZ dZ!Z"dZ#Z$dZ%Z&dZ'Z(dZ)Z*dZ+Z,dZ-Z.dZ/Z0dZ1Z2dZ3Z4dZ5Z6dZ7Z8ed d6�Z9Gd$d%�d%e:�Z;ge;_<e=e;�Z>edj?Z@e>e@_AeBge@_CedjDZEdeE_Ae>geE_CedjFZGeHeG_Ae>eHgeG_CedjIZJeHeJ_Ae>eBgeJ_CedjKZLeHeL_Ae>eMeNgeL_CedjOZPeHeP_Ae>geP_CedjQZReBeR_Ae>eBgeR_CedjSZTeBeT_Ae>eHgeT_CedjUZVeBeV_Ae>eHgeV_CedjWZXeBeX_Ae>eHgeX_CedjYZZeBeZ_Ae>eHgeZ_Cedj[Z\eBe\_Ae>ge\_CGd&d'�d'e]�Z^d(d)�Z_Gd*d+�d+e]�Z`eja�Zbd,d-�Zcd.d/�Zdd0d1�Zed2d3�Zfd4d5�ZgdS)7z
Python bindings for libmagic
�N)�
namedtuple)�*)�find_librarycCstjjtd��S)zc
    Loads the shared library through ctypes and returns a library
    L{ctypes.CDLL} instance
    �magic)�ctypesZcdllZLoadLibraryr�rr�/usr/lib/python3.6/magic.py�_initsr	r������ �@��iiiiii i@i�iiiii i�?�	FileMagic�	mime_type�encoding�namec@seZdZdS)�	magic_setN)�__name__�
__module__�__qualname__rrrrr9src@s�eZdZdd�Zdd�Zedd��Zedd��Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zddd�Z
dd�Zdd�Zdd�Zdd�ZdS)�MagiccCs
||_dS)N)�_magic_t)�selfZmsrrr�__init__pszMagic.__init__cCst|j�dS)zO
        Closes the magic database and deallocates any resources used.
        N)�_closer)rrrr�closesszMagic.closecCsB|dkrdSt|t�r|Sy
t|d�Stk
r<t|�SXdS)Nzutf-8)�
isinstance�str�	TypeError)�srrrZ__tostrys

z
Magic.__tostrcCsB|dkrdSt|t�r|Sy
t|d�Stk
r<t|�SXdS)Nzutf-8)r!�bytesr#)�brrrZ	__tobytes�s

zMagic.__tobytescCstjt|jtj|���S)z�
        Returns a textual description of the contents of the argument passed
        as a filename or None if an error occurred and the MAGIC_ERROR flag
        is set. A call to errno() will return the numeric error code.
        )r�
_Magic__tostr�_filer�_Magic__tobytes)r�filenamerrr�file�sz
Magic.filecCstjt|j|��S)z�
        Returns a textual description of the contents of the argument passed
        as a file descriptor or None if an error occurred and the MAGIC_ERROR
        flag is set. A call to errno() will return the numeric error code.
        )rr'�_descriptorr)r�fdrrr�
descriptor�szMagic.descriptorcCstjt|j|t|���S)z�
        Returns a textual description of the contents of the argument passed
        as a buffer or None if an error occurred and the MAGIC_ERROR flag
        is set. A call to errno() will return the numeric error code.
        )rr'�_bufferr�len)rZbufrrr�buffer�szMagic.buffercCstjt|j��S)zh
        Returns a textual explanation of the last error or None
        if there was no error.
        )rr'�_errorr)rrrr�error�szMagic.errorcCst|j|�S)a*
        Set flags on the magic object which determine how magic checking
        behaves; a bitwise OR of the flags described in libmagic(3), but
        without the MAGIC_ prefix.

        Returns -1 on systems that don't support utime(2) or utimes(2)
        when PRESERVE_ATIME is set.
        )�	_setflagsr)r�flagsrrr�setflags�s	zMagic.setflagsNcCst|jtj|��S)a	
        Must be called to load entries in the colon separated list of database
        files passed as argument or the default database file if no argument
        before any magic queries can be performed.

        Returns 0 on success and -1 on failure.
        )�_loadrrr))rr*rrr�load�sz
Magic.loadcCst|jtj|��S)aD
        Compile entries in the colon separated list of database files
        passed as argument or the default database file if no argument.
        The compiled files created are named from the basename(1) of each file
        argument with ".mgc" appended to it.

        Returns 0 on success and -1 on failure.
        )�_compilerrr))r�dbsrrr�compile�s	z
Magic.compilecCst|jtj|��S)z�
        Check the validity of entries in the colon separated list of
        database files passed as argument or the default database file
        if no argument.

        Returns 0 on success and -1 on failure.
        )�_checkrrr))rr:rrr�check�szMagic.checkcCst|jtj|��S)z�
        Check the validity of entries in the colon separated list of
        database files passed as argument or the default database file
        if no argument.

        Returns 0 on success and -1 on failure.
        )�_listrrr))rr:rrr�list�sz
Magic.listcCs
t|j�S)a
        Returns a numeric error code. If return value is 0, an internal
        magic error occurred. If return value is non-zero, the value is
        an OS error code. Use the errno module or os.strerror() can be used
        to provide detailed error information.
        )�_errnor)rrrr�errno�szMagic.errno)N)rrrrr �staticmethodr'r)r+r.r1r3r6r8r;r=r?rArrrrros



rcCstt|��S)zd
    Returns a magic object on success and None on failure.
    Flags argument as for setflags.
    )r�_open)r5rrr�open�srDc@seZdZdd�Zdd�ZdS)�MagicDetectcCs4ttt��|_|jj�ttt��|_|jj�dS)N)rrC�
MAGIC_MIME�
mime_magicr8�
MAGIC_NONE�
none_magic)rrrrr�s
zMagicDetect.__init__cCs|jj�|jj�dS)N)rGr rI)rrrr�__del__�s
zMagicDetect.__del__N)rrrrrJrrrrrE�srEcCs*ttdd�}|dkr&t�}ttd|�|S)NZmagic_instance)�getattr�threadlocalrE�setattr)�vrrr�_detect_makes
rOcCs$|jd�\}}t|||jdd�d�S)Nz; zcharset=�)rrr)�splitr�replace)Z
mime_detectedZ
type_detectedrZ
mime_encodingrrr�_create_filemagic	srScCs t�}t|jj|�|jj|��S)zdDetect mime type, encoding and file type from a filename

    Returns a `FileMagic` namedtuple.
    )rOrSrGr+rI)r*�xrrr�detect_from_filenamesrUcCs(|j�}t�}t|jj|�|jj|��S)zjDetect mime type, encoding and file type from file-like object

    Returns a `FileMagic` namedtuple.
    )�filenorOrSrGr.rI)ZfobjZfile_descriptorrTrrr�detect_from_fobjsrWcCs t�}t|jj|�|jj|��S)z_Detect mime type, encoding and file type from bytes

    Returns a `FileMagic` namedtuple.
    )rOrSrGr1rI)Zbyte_contentrTrrr�detect_from_content&srX)rrr)h�__doc__rZ	threading�collectionsrZctypes.utilrr	Z
_librariesrHZNONEZMAGIC_DEBUG�DEBUGZ
MAGIC_SYMLINKZSYMLINKZMAGIC_COMPRESSZCOMPRESSZ
MAGIC_DEVICESZDEVICESZMAGIC_MIME_TYPEZ	MIME_TYPEZMAGIC_CONTINUEZCONTINUEZMAGIC_CHECKZCHECKZMAGIC_PRESERVE_ATIMEZPRESERVE_ATIMEZ	MAGIC_RAWZRAWZMAGIC_ERRORZERRORZMAGIC_MIME_ENCODINGZ
MIME_ENCODINGrFZMIMEZMAGIC_APPLEZAPPLEZMAGIC_NO_CHECK_COMPRESSZNO_CHECK_COMPRESSZMAGIC_NO_CHECK_TARZNO_CHECK_TARZMAGIC_NO_CHECK_SOFTZ
NO_CHECK_SOFTZMAGIC_NO_CHECK_APPTYPEZNO_CHECK_APPTYPEZMAGIC_NO_CHECK_ELFZNO_CHECK_ELFZMAGIC_NO_CHECK_TEXTZ
NO_CHECK_TEXTZMAGIC_NO_CHECK_CDFZNO_CHECK_CDFZMAGIC_NO_CHECK_TOKENSZNO_CHECK_TOKENSZMAGIC_NO_CHECK_ENCODINGZNO_CHECK_ENCODINGZMAGIC_NO_CHECK_BUILTINZNO_CHECK_BUILTINrZ	StructurerZ_fields_ZPOINTERZmagic_tZ
magic_openrCZrestypeZc_intZargtypesZmagic_closerZ
magic_filer(Zc_char_pZmagic_descriptorr,Zmagic_bufferr/Zc_void_pZc_size_tZmagic_errorr2Zmagic_setflagsr4Z
magic_loadr7Z
magic_compiler9Zmagic_checkr<Z
magic_listr>Zmagic_errnor@�objectrrDrEZlocalrLrOrSrUrWrXrrrr�<module>s�




















}	


© 2025 UnknownSec
Courses | Anyleson - Learning Platform
INR (₹)
India Rupee
$
United States Dollar

Courses

17 Courses
Course
Full Stack Web Development

Full Stack Web Development

in Web Development
83:20 Hours
10 Oct 2024
₹28,318.82
Course
Installment and Secure Host

Installment and Secure Host

in Business Strategy
5.00
1:30 Hours
16 Mar 2023
₹118
Course
New Update Features

New Update Features

in Language
4.00
1:30 Hours
21 Jun 2022
Free
Not conducted
Bestseller
New In-App Live System

New In-App Live System

in Communications
5.00
2:30 Hours
1 Mar 2026
₹11.80
Featured
New Learning Page

New Learning Page

in Lifestyle
5.00
3:30 Hours
1 Mar 2022
Free
Finished
How to Travel Around the World

How to Travel Around the World

in Lifestyle
5.00
2:30 Hours
2 Mar 2022
₹29.50

Type

More options