404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.15.10.189: ~ $
3

|��\��@s"dZddlmZmZddlZddlmZmZmZm	Z	e	rzdZ
ddlmZddl
mZdd	l
mZdd
lmZddlmZn4dZ
ddlmZddlZdZdd
lmZddlmZyddlZWnek
r�dZYnXdZddd�ZGdd�de�r�ejne�ZGdd�de�Zdd�Zdd�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�	xmlrpclib�icCs�tst�|dkrt}tj|�}tjd|d�}y$|dkr@|j�}n|j|d�}Wntk
rltd��YnX|j	�|j	�|dkr�t
|�|kr�td��|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�fZgzfZdecoded�r!�/usr/lib/python3.6/xmlrpc.py�defused_gzip_decode-s"

r#c@s*eZdZdZd	dd�Zdd�Zdd�ZdS)
�DefusedGzipDecodedResponsezha file-like object to decode a response encoded with the gzip
    method, as described in RFC 1952.
    NcCs�tst�|dk	r|nt|_}|dkr6|j�}d|_n|j|d�}d|_|dkrft|�|krftd��tj	|�|_
tjj|d|j
d�dS)Nrrzmax payload length exceededr)rr)
rrrrr�
readlengthrrrr�stringior�__init__)�selfZresponserrr!r!r"r'Ksz#DefusedGzipDecodedResponse.__init__cCsn|jdkr\|j|j}t||d�}tjj||�}|jt|�7_|j|jkrXtd��|Stjj||�SdS)Nrrzmax payload length exceeded)rr%�minrrrrr)r(�n�leftrr!r!r"r\s
zDefusedGzipDecodedResponse.readcCstjj|�|jj�dS)N)rrrr&)r(r!r!r"rhsz DefusedGzipDecodedResponse.close)N)�__name__�
__module__�__qualname__�__doc__r'rrr!r!r!r"r$Fs
r$c@s6eZdZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�DefusedExpatParserFTcCsZtj||�||_||_||_|j}|jr2|j|_|jrH|j|_	|j
|_|jrV|j|_
dS)N)r	r'�
forbid_dtd�forbid_entities�forbid_externalZ_parser�defused_start_doctype_declZStartDoctypeDeclHandler�defused_entity_declZEntityDeclHandler�defused_unparsed_entity_declZUnparsedEntityDeclHandler�#defused_external_entity_ref_handlerZExternalEntityRefHandler)r(�targetr1r2r3�parserr!r!r"r'nszDefusedExpatParser.__init__cCst|||��dS)N)r)r(�name�sysid�pubidZhas_internal_subsetr!r!r"r4|sz-DefusedExpatParser.defused_start_doctype_declcCst||||||��dS)N)r)r(r:Zis_parameter_entity�value�baser;r<�
notation_namer!r!r"r5sz&DefusedExpatParser.defused_entity_declcCst|d||||��dS)N)r)r(r:r>r;r<r?r!r!r"r6�sz/DefusedExpatParser.defused_unparsed_entity_declcCst||||��dS)N)r)r(�contextr>r;r<r!r!r"r7�sz6DefusedExpatParser.defused_external_entity_ref_handlerN)FTT)r,r-r.r'r4r5r6r7r!r!r!r"r0ms

r0cCs tt_tt_tt_trtt_dS)N)r0�
xmlrpc_client�
FastParserr$r
r#r�
xmlrpc_serverr!r!r!r"�monkey_patch�s
rDcCs dt_tt_tt_trtt_dS)N)rArB�_OrigGzipDecodedResponser
�_orig_gzip_decoderrCr!r!r!r"�unmonkey_patch�s
rGixi�)N)!r/Z
__future__rrr�commonrrrrZ
__origin__Z
xmlrpc.clientr	Zxmlrpcr
rArrCrrFr
rErr�ImportErrorrr#r�objectr$r0rDrGr!r!r!r"�<module>	s4

'

Filemanager

Name Type Size Permission Actions
ElementTree.cpython-36.opt-1.pyc File 3.26 KB 0644
ElementTree.cpython-36.pyc File 3.26 KB 0644
__init__.cpython-36.opt-1.pyc File 1.16 KB 0644
__init__.cpython-36.pyc File 1.16 KB 0644
cElementTree.cpython-36.opt-1.pyc File 759 B 0644
cElementTree.cpython-36.pyc File 759 B 0644
common.cpython-36.opt-1.pyc File 4.28 KB 0644
common.cpython-36.pyc File 4.32 KB 0644
expatbuilder.cpython-36.opt-1.pyc File 3.5 KB 0644
expatbuilder.cpython-36.pyc File 3.5 KB 0644
expatreader.cpython-36.opt-1.pyc File 2.29 KB 0644
expatreader.cpython-36.pyc File 2.29 KB 0644
lxml.cpython-36.opt-1.pyc File 4.89 KB 0644
lxml.cpython-36.pyc File 4.89 KB 0644
minidom.cpython-36.opt-1.pyc File 1.07 KB 0644
minidom.cpython-36.pyc File 1.07 KB 0644
pulldom.cpython-36.opt-1.pyc File 858 B 0644
pulldom.cpython-36.pyc File 858 B 0644
sax.cpython-36.opt-1.pyc File 1.19 KB 0644
sax.cpython-36.pyc File 1.19 KB 0644
xmlrpc.cpython-36.opt-1.pyc File 4.46 KB 0644
xmlrpc.cpython-36.pyc File 4.46 KB 0644