403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/defusedxml/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/defusedxml/__pycache__/xmlrpc.cpython-311.pyc
�

8F`���<�dZddlmZmZddlZddlmZmZmZm	Z	e	r!dZ
ddlmZddl
mZdd	l
mZdd
lmZddlmZndZ
ddlmZddlZdZdd
lmZddlmZ	ddlZn
#e$rdZYnwxYwd
Zdd�ZGd�derejne��ZGd�de��Zd�Zd�Z dS)z*Defused xmlrpclib

Also defuses gzip bomb
�)�print_function�absolute_importN�)�DTDForbidden�EntitiesForbidden�ExternalReferenceForbidden�PY3z
xmlrpc.client)�ExpatParser)�client)�server)�gzip_decode)�GzipDecodedResponse�	xmlrpclibi�c���tst�|�t}tj|��}tjd|���}	|dkr|���}n|�|dz��}n#t$rtd���wxYw|�	��|�	��|dkr"t|��|krtd���|S)zrgzip encoded data -> unencoded data

    Decode data using the gzip content encoding as described in RFC 1952
    N�rb��mode�fileobjrrzinvalid dataz#max gzipped payload length exceeded)�gzip�NotImplementedError�MAX_DATA�io�BytesIO�GzipFile�read�IOError�
ValueError�close�len)�data�limit�f�gzf�decodeds     �3/usr/lib/python3/dist-packages/defusedxml/xmlrpc.py�defused_gzip_decoder&-s���
�"�!�!��}���
�
�4���A�
�-�T�1�
-�
-�
-�C�)��1�9�9��h�h�j�j�G�G��h�h�u�q�y�)�)�G����)�)�)���(�(�(�)�����G�G�I�I�I��I�I�K�K�K���z�z�c�'�l�l�U�*�*��>�?�?�?��Ns�3A7�7Bc�&�eZdZdZdd�Zd�Zd�ZdS)�DefusedGzipDecodedResponsezha file-like object to decode a response encoded with the gzip
    method, as described in RFC 1952.
    Nc��tst�|�|ntx|_}|dkr|���}d|_n|�|dz��}d|_|dkr"t
|��|krtd���tj	|��|_
tj�|d|j
���dS)Nrr�max payload length exceededrr)
rrrr!r�
readlengthrrrr�stringior�__init__)�self�responser!r s    r%r-z#DefusedGzipDecodedResponse.__init__Ks����	&�%�%�&+�&7�U�U�X�E��
�U��1�9�9��=�=�?�?�D�"�D�O�O��=�=����+�+�D��D�O��A�:�:�#�d�)�)�e�+�+��:�;�;�;��
�4�(�(��
��
���t�$��
��F�F�F�F�F�c�X�|jdkr�|j|jz
}t||dz��}tj�||��}|xjt
|��z
c_|j|jkrtd���|Stj�||��S)Nrrr*)r!r+�minrrrrr)r.�n�leftr s    r%rzDefusedGzipDecodedResponse.read\s����:��?�?��:���/�D��A�t�a�x� � �A��=�%�%�d�A�.�.�D��O�O�s�4�y�y�(�O�O�����+�+� �!>�?�?�?��K��=�%�%�d�A�.�.�.r0c�v�tj�|��|j���dS�N)rrrr,)r.s r%rz DefusedGzipDecodedResponse.closehs2���
���D�!�!�!��
�������r0r6)�__name__�
__module__�__qualname__�__doc__r-rr�r0r%r(r(FsT��������G�G�G�G�"
/�
/�
/�����r0r(c�.�eZdZd	d�Zd�Zd�Zd�Zd�ZdS)
�DefusedExpatParserFTc��tj||��||_||_||_|j}|jr|j|_|jr|j|_	|j
|_|jr|j|_
dSdSr6)r
r-�
forbid_dtd�forbid_entities�forbid_external�_parser�defused_start_doctype_decl�StartDoctypeDeclHandler�defused_entity_decl�EntityDeclHandler�defused_unparsed_entity_decl�UnparsedEntityDeclHandler�#defused_external_entity_ref_handler�ExternalEntityRefHandler)r.�targetr?r@rA�parsers      r%r-zDefusedExpatParser.__init__ns�����T�6�*�*�*�$���.���.�������?�	M�-1�-L�F�*���	Q�'+�'?�F�$�/3�/P�F�,���	W�.2�.V�F�+�+�+�	W�	Wr0c�$�t|||���r6)r)r.�name�sysid�pubid�has_internal_subsets     r%rCz-DefusedExpatParser.defused_start_doctype_decl|s���4���.�.�.r0c�*�t||||||���r6�r)r.rN�is_parameter_entity�value�baserOrP�
notation_names        r%rEz&DefusedExpatParser.defused_entity_decls�� ��e�T�5�%��O�O�Or0c�*�t|d||||���r6rS)r.rNrVrOrPrWs      r%rGz/DefusedExpatParser.defused_unparsed_entity_decl�s����d�D�%��
�N�N�Nr0c�&�t||||���r6)r)r.�contextrVrOrPs     r%rIz6DefusedExpatParser.defused_external_entity_ref_handler�s��(��$��u�E�E�Er0N)FTT)r7r8r9r-rCrErGrIr;r0r%r=r=mss������W�W�W�W�/�/�/�P�P�P�
O�O�O�F�F�F�F�Fr0r=c��tt_tt_t
t_trt
t_dSdSr6)r=�
xmlrpc_client�
FastParserr(rr&r
�
xmlrpc_serverr;r0r%�monkey_patchr_�s:��1�M��(B�M�%� 3�M���8�$7�
�!�!�!�8�8r0c��dt_tt_tt_trtt_dSdSr6)r\r]�_OrigGzipDecodedResponser�_orig_gzip_decoder
r^r;r0r%�unmonkey_patchrc�s:��#�M��(@�M�%� 1�M���6�$5�
�!�!�!�6�6r0r6)!r:�
__future__rrr�commonrrrr	�
__origin__�
xmlrpc.clientr
�xmlrpcrr\rr^r
rbrrarr�ImportErrorrr&r�objectr(r=r_rcr;r0r%�<module>rks�����7�6�6�6�6�6�6�6�	�	�	�	�T�T�T�T�T�T�T�T�T�T�T�T��J� �J�)�)�)�)�)�)�.�.�.�.�.�.�.�.�.�.�.�.�>�>�>�>�>�>�M�M�M�M�M�M�M��J�%�%�%�%�%�%�%�%�%�%��M�:�:�:�:�:�:�I�I�I�I�I�I���K�K�K�K�������D�D�D�����������2$�$�$�$�$�$�!B����F�$�$�$�NF�F�F�F�F��F�F�F�>8�8�8�6�6�6�6�6s�A�A(�'A(

Youez - 2016 - github.com/yon3zu
LinuXploit