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 :  /usr/lib/python3/dist-packages/openid/yadis/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/openid/yadis/__pycache__/parsehtml.cpython-311.pyc
�

|=�^����ddgZddlmZddlZddlZddlZddlmZdZ	Gd�de
��ZGd	�de
��Zej
ejzejzZd
Zejee��Zd�Zd�ZGd
�de��Zd�ZdS)�findHTMLMeta�MetaNotFound�)�
HTMLParserN)�YADIS_HEADER_NAMEi@c��eZdZdZdS)�	ParseDonez�Exception to hold the URI that was located when the parse is
    finished. If the parse finishes without finding the URI, set it to
    None.N��__name__�
__module__�__qualname__�__doc__���8/usr/lib/python3/dist-packages/openid/yadis/parsehtml.pyrrs������
�
�
�
rrc��eZdZdZdS)rz[Exception to hold the content of the page if we did not find
    the appropriate <meta> tagNr	rrrrrs������"�"�"�"rzO
&

(?: \#x (?P<hex> [a-f0-9]+ )
|   \# (?P<dec> \d+ )
|   (?P<word> \w+ )
)

;c��|jdkr$t|�d��d��}nr|jdkr#t|�d����}nD|jdksJ�tjj�|�d����}|�|���St|��S)N�hex��dec�word)�	lastgroup�int�group�html�entities�name2codepoint�get�chr)�mo�	codepoints  r�substituteMOr!(s���	�|�u�����������,�,�	�	�	���	�	��������(�(�	�	��|�v�%�%�%�%��M�0�4�4�R�X�X�f�5E�5E�F�F�	����x�x�z�z���9�~�~�rc�B�t�t|��S�N)�ent_re�subr!)�ss r�substituteEntitiesr'7s���:�:�l�A�&�&�&rc�R��eZdZdZdZdZdZdZdZ�fd�Z	d�Z
d	�Zd
�Z�fd�Z
�xZS)�YadisHTMLParseraxParser that finds a meta http-equiv tag in the head of a html
    document.

    When feeding in data, if the tag is matched or it will never be
    found, the parser will raise ParseDone with the uri as the first
    attribute.

    Parsing state diagram
    =====================

    Any unlisted input does not affect the state::

                1, 2, 5                       8
               +--------------------------+  +-+
               |                          |  | |
            4  |    3       1, 2, 5, 7    v  | v
        TOP -> HTML -> HEAD ----------> TERMINATED
        | |            ^  |               ^  ^
        | | 3          |  |               |  |
        | +------------+  +-> FOUND ------+  |
        |                  6         8       |
        | 1, 2                               |
        +------------------------------------+

      1. any of </body>, </html>, </head> -> TERMINATE
      2. <body> -> TERMINATE
      3. <head> -> HEAD
      4. <html> -> HTML
      5. <html> -> TERMINATE
      6. <meta http-equiv='X-XRDS-Location'> -> FOUND
      7. <head> -> TERMINATE
      8. Any input -> TERMINATE
    r����c����tjjdkr*tt|���d���n'tt|�����|j|_dS)Nr+F)�strict)�sys�version_info�minor�superr)�__init__�TOP�phase)�self�	__class__s �rr4zYadisHTMLParser.__init__csc�����"�a�'�'�
�/�4�(�(�1�1��1�?�?�?�?��/�4�(�(�1�1�3�3�3��X��
�
�
rc�8�|j|_td���r#)�
TERMINATEDr6r)r7s r�
_terminatezYadisHTMLParser._terminatems���_��
���o�o�rc�:�|dvr|���dSdS)N)�head�bodyr)r;)r7�tags  r�
handle_endtagzYadisHTMLParser.handle_endtagqs.���*�*�*��O�O������+�*rc��|dkr|���|j|jkr*|dkr|j|_dS|dkr|j|_dSdS|j|jkr2|dkr|j|_dS|dkr|���dSdS|j|jkr�|dkr�t|��}|�dd�����}|tj��kr?|�d��}t|��}|j
|_t|���dS|dvr|���dSdSdS)	Nr>r=r�metaz
http-equiv��content)r=r)r;r6r5�HEAD�HTML�dictr�lowerrr'�FOUNDr)r7r?�attrs�attrs_d�
http_equiv�raw_attr�	yadis_locs       r�handle_starttagzYadisHTMLParser.handle_starttagws|���&�=�=��O�O�����:���!�!��f�}�}�!�Y��
�
�
�����!�Y��
�
�
����Z�4�9�
$�
$��f�}�}�!�Y��
�
�
��������!�!�!�!�!����Z�4�9�
$�
$��f�}�}��u�+�+��$�[�[��r�:�:�@�@�B�B�
��!2�!8�!:�!:�:�:�&�{�{�9�5�5�H� 2�8� <� <�I�!%��D�J�#�I�.�.�.�;�:��(�(�(����!�!�!�!�!�%�
$�)�(rc���|j|j|jfvr|���t	t
|���|��Sr#)r6r:rIr;r3r)�feed)r7�charsr8s  �rrQzYadisHTMLParser.feed�sG����:�$�/�4�:�6�6�6��O�O�����_�d�+�+�0�0��7�7�7r)r
rrr
r5rFrErIr:r4r;r@rOrQ�
__classcell__)r8s@rr)r);s�������� � �B�C��D��D�
�E��J������������+"�+"�+"�Z8�8�8�8�8�8�8�8�8rr)c��t��}g}	|�t��}|sn�|�|��	|�|��nT#t
$rG}|jd}|�,|�|�����Yd}~n|cYd}~Sd}~wwxYw��d�|��}t|���)awLook for a meta http-equiv tag with the YADIS header name.

    @param stream: Source of the html text
    @type stream: Object that implements a read() method that works
        like file.read

    @return: The URI from which to fetch the XRDS document
    @rtype: str

    @raises MetaNotFound: raised with the content that was
        searched as the first parameter.
    r*rNrC)	r)�read�
CHUNK_SIZE�appendrQr�args�joinr)�stream�parser�chunks�chunk�why�urirDs       rrr�s����
�
�F�
�F�����J�'�'���	���
�
�e����		��K�K��������	�	�	��(�1�+�C��{��
�
�f�k�k�m�m�,�,�,�������
�
�
�
�
�
�����	�����$�g�g�f�o�o�G�
�w�
�
�s$�A�
B,�%6B'� B'�!B,�'B,)�__all__�html.parserr�
html.entitiesr�rer0�openid.yadis.constantsrrV�	Exceptionrr�
IGNORECASE�UNICODE�VERBOSE�re_flags�ent_pat�compiler$r!r'r)rrrr�<module>rlsI���>�
*��"�"�"�"�"�"�����	�	�	�	�
�
�
�
�4�4�4�4�4�4��
�
�
�
�
�
�	�
�
�
�"�"�"�"�"�9�"�"�"�
�=�2�:�%��
�2����
���G�X�	&�	&�����'�'�'�n8�n8�n8�n8�n8�j�n8�n8�n8�b# �# �# �# �# r

Youez - 2016 - github.com/yon3zu
LinuXploit