403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/oauthlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/oauthlib/__pycache__/common.cpython-314.pyc
+
V�Ci4���Rt^RIt^RIt^RIt^RIt^RIt^RIHt^RIH	t
HtH
t^RIHt^RIHtHtRtRt]P2!R]P44t]P2!R	4tR
t]P<!R4tR"Rlt	R
tRt
Rt Rt!]"!]4]"!R4,t#Rt$Rt%Rt&Rt'^]3Rlt(Rt)Rt*^]3Rlt+Rt,R#Rlt-Rt.R$Rlt/!RR]04t1!R R!4t2R# ]d^RIHtHtL�i;i)%z|
oauthlib.common
~~~~~~~~~~~~~~

This module provides data structures and utilities common
to all implementations of OAuth.
N)�quote�unquote�	urlencode)�	get_debug)�SystemRandom�randbits)r�getrandbits�>abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789z_ !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}z&([^&;]*(?:password|token)[^=]*=)[^&;]+z&%[^0-9A-Fa-f]|%[0-9A-Fa-f][^0-9A-Fa-f]zAABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-�oauthlibc��\V\4'dVPR4MTp\W4p\V\4'dVPR4pV#��utf-8)�
isinstance�str�encode�_quote�bytes�decode)�s�safes&&�1/usr/lib/python3/dist-packages/oauthlib/common.pyrr+sI��'��3�/�/������Q�A��q��A��!�U���
�H�H�W����H�c�j�\V4p\V\4'dVPR4pV#r)�_unquoterrr)rs&rrr5s-�����A��!�U���
�H�H�W����Hrc��\V4p\V4p\V\4'dV#VP	R4#r)�encode_params_utf8�
_urlencoderrr)�params�utf8_params�
urlencodeds&  rrr?s:��$�V�,�K��K�(�J��*�c�"�"���� � ��)�)rc���.pVFfwr#TP\V\4'dVPR4MT\V\4'dVPR4MT34Kh	V#)zaEnsures that all parameters in a list of 2-element tuples are encoded to
bytestrings using UTF-8
r
)�appendrrr)r�encoded�k�vs&   rrrHsa���G�������!+�A�s�!3�!3�A�H�H�W���!+�A�s�!3�!3�A�H�H�W���<�	=���Nrc���.pVFfwr#TP\V\4'dVPR4MT\V\4'dVPR4MT34Kh	V#)z^Ensures that all parameters in a list of 2-element tuples are decoded to
unicode using UTF-8.
r
)r!rrr)r�decodedr#r$s&   r�decode_params_utf8r'Tsa���G�������!+�A�u�!5�!5�A�H�H�W��1�!+�A�u�!5�!5�A�H�H�W��1�>�	?���Nrz=&;:%+~,*@!()/?'$c� �V'd?\V4\8:g+Rp\V\V4\,
V3,4h\P	V4'd\R4h\
P!VRR7p\V4#)ajDecode a query string in x-www-form-urlencoded format into a sequence
of two-element tuples.

Unlike urlparse.parse_qsl(..., strict_parsing=True) urldecode will enforce
correct formatting of the query string by validation. If validation fails
a ValueError will be raised. urllib.parse_qsl will only raise errors if
any of name-value pairs omits the equals sign.
z�Error trying to decode a non urlencoded string. Found invalid characters: %s in the string: '%s'. Please ensure the request/response body is x-www-form-urlencoded.z%Invalid hex encoding in query string.T��keep_blank_values)�setr�
ValueError�INVALID_HEX_PATTERN�search�urlparse�	parse_qslr')�query�errorrs&  r�	urldecoder3csy��
�S��Z�:�-�*��
��#�e�*�z�"9�5�!A�A�B�B��!�!�%�(�(��@�A�A��
�
���
>�F��f�%�%rc��\V\\34'd\V4pV#\VR4'dK\
V4\\V\4'dVP4MT4p\V4pV#RpV# \dRpT#i;i \dRpT#\dRpT#i;i)aExtract parameters and return them as a list of 2-tuples.

Will successfully extract parameters from urlencoded query strings,
dicts, or lists of 2-tuples. Empty strings/dicts/lists will return an
empty list of parameters. Any other input will result in a return
value of None.
N�__iter__)rrrr3r,�hasattr�dict�list�itemsr'�	TypeError)�rawrs& r�extract_paramsr<�s����#��s�|�$�$�	��s�^�F� �M�
��j�	!�	!�	0���I���C��)>�)>�#�)�)�+�C�H�F�'��/�F��M����M���	��F��M�	��
�	��F��M��	��F��M�	�s.�B�B�
B�B�
B?�/B?�8B?�>B?c�Z�\\\^@44\4,4#)a�Generate pseudorandom nonce that is unlikely to repeat.

Per `section 3.3`_ of the OAuth 1 RFC 5849 spec.
Per `section 3.2.1`_ of the MAC Access Authentication spec.

A random 64-bit number is appended to the epoch timestamp for both
randomness and to decrease the likelihood of collisions.

.. _`section 3.2.1`: https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01#section-3.2.1
.. _`section 3.3`: https://tools.ietf.org/html/rfc5849#section-3.3
)rr�generate_timestamp�rr�generate_noncer@�s!���s�8�B�<� �#5�#7�7�8�8rc�P�\\\P!444#)a0Get seconds since epoch (UTC).

Per `section 3.3`_ of the OAuth 1 RFC 5849 spec.
Per `section 3.2.1`_ of the MAC Access Authentication spec.

.. _`section 3.2.1`: https://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-01#section-3.2.1
.. _`section 3.3`: https://tools.ietf.org/html/rfc5849#section-3.3
)r�int�timer?rrr>r>�s���s�4�9�9�;�� � rc�daa�\4oRPVV3Rl\V444#)aDGenerates a non-guessable OAuth token

OAuth (1 and 2) does not specify the format of tokens except that they
should be strings of random characters. Tokens should not be guessable
and entropy when generating the random characters is important. Which is
why SystemRandom is used instead of the default random.choice method.
�c3�F<"�TFpSPS4x�K	R#5i�N)�choice)�.0�x�chars�rands& ��r�	<genexpr>�!generate_token.<locals>.<genexpr>�s����=�}�!�4�;�;�u�%�%�}�s�!)r�join�range)�lengthrKrLs&f@r�generate_tokenrR�s%����>�D�
�7�7�=�u�V�}�=�=�=rc�(�^RIp\PP4pRVPRV\P!VP
R7,/pVP
VP4VPW@R4p\VR4pV#)�N�scope�exp)�seconds�RS256�UTF-8)
�jwt�datetime�utcnowrU�	timedelta�
expires_in�update�claimsr�
to_unicode)�private_pem�requestrZ�nowr`�tokens&&    r�generate_signed_tokenrf�sy���
�
�
�
"�
"�
$�C�	����
�s�X�'�'��0B�0B�C�C��F�
�M�M�'�.�.�!��J�J�v�G�4�E��u�g�&�E��Lrc�2�^RIpVPWR.R7#)rTNrX)�
algorithms)rZr)�
public_pemrerZs&& r�verify_signed_tokenrj�s����:�:�e�W�I�:�>�>rc��\W4#)zyGenerates an OAuth client_id

OAuth 2 specify the format of client_id in
https://tools.ietf.org/html/rfc6749#appendix-A.
)rR)rQrKs&&r�generate_client_idrl�s���&�(�(rc��\V\4'dVP4p\P!VRR7pVPV4\
V4#)z)Extend a query with a list of two-tuples.Tr))rr7r9r/r0�extendr)r1r�queryparamss&& r�add_params_to_qsrp�sE���&�$���������$�$�U�d�C�K����v���[�!�!rc��\P!V4wr4rVrxV'd
\W�4pM\Wq4p\P!W4WVWx34#)z5Add a list of two-tuples to the uri query components.)r/rp�
urlunparse)	�urir�fragment�sch�net�path�parr1�fras	&&&      r�add_params_to_urirz�sH��&.�&7�&7��&<�#�C�d����s�+�� ��/������$�U�@�A�Arc��\V4\V48wdR#^p\W4F'wr4V\V4\V4,,pK)	V^8H#)z�Near-constant time string comparison.

Used in order to avoid timing attacks on sensitive information such
as secret keys during request verification (`rootLabs`_).

.. _`rootLabs`: http://rdist.root.org/2010/01/07/timing-independent-array-comparison/

F)�len�zip�ord)�a�b�resultrJ�ys&&   r�safe_string_equalsr��sL���1�v��Q����
�F��A�	����#�a�&�3�q�6�/�!����Q�;�rc	�a�\V\4'dV#\V\4'd\VSR7#\VR4'dZ\	V4\VR4'dVP4pVUUu/uFwr#\
VS4\
VS4bK	upp#V#uuppi \dT#\dT3RlT4u#i;i)z:Convert a number of different types of objects to unicode.)�encodingr5r9c3�<<"�TFp\VS4x�K	R#5irG�ra)rI�ir�s& �rrM�to_unicode.<locals>.<genexpr>s����:�T��J�q�(�+�+�T�s�)	rrrr6r7r9rar:r,)�datar�r#r$s&f  rraras�����$�������$�����4�(�+�+��t�Z� � �	W���J��t�W�%�%��z�z�|��QU�V�QU���J�q�(�+�Z��8�-D�D�QU�V�V��K��W���	���K��	;�:�T�:�:�	;�s$�B0�"B*�0C�>C�
C�Cc�taa�]tRtRtoRt/tRtRtV3RltV3Rlt	RRlt
V3RltV3R	ltR
t
VtV;t#)�CaseInsensitiveDicti'z3Basic case insensitive dict with strings only keys.c��VUu/uFq"P4VbK	upVnVF
pW,W&K	R#uupirG��lower�proxy)�selfr�r#s&& r�__init__�CaseInsensitiveDict.__init__-s8��,0�1�D�q�g�g�i��l�D�1��
��A��g�D�G���2s�;c�<�VP4VP9#rGr�)r�r#s&&r�__contains__� CaseInsensitiveDict.__contains__2s���w�w�y�D�J�J�&�&rc�<�VPVP4,p\SV`
V4VPVP4R#rG)r�r��super�__delitem__�r�r#�key�	__class__s&& �rr��CaseInsensitiveDict.__delitem__5s6����j�j�����#��
���C� ��J�J�q�w�w�y�!rc�d<�VPVP4,p\SV`
V4#rG)r�r�r��__getitem__r�s&& �rr��CaseInsensitiveDict.__getitem__:s'����j�j�����#���w�"�3�'�'rc�"�W9d	W,#T#rGr?)r�r#�defaults&&&r�get�CaseInsensitiveDict.get>s���)�t�w�0��0rc�^<�\SV`W4WPVP4&R#rG)r��__setitem__r�r�)r�r#r$r�s&&&�rr��CaseInsensitiveDict.__setitem__As"���
���A�!� !�
�
�1�7�7�9�rc�<�\SV`!V/VB\V/VBFpW0PVP	4&K!	R#rG)r�r_r7r�r�)r��args�kwargsr#r�s&*, �rr_�CaseInsensitiveDict.updateEs:���
����'��'��t�&�v�&�A�$%�J�J�q�w�w�y�!�'r)r�rG)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�r�r�r�r�r�r�r_�__static_attributes__�__classdictcell__�
__classcell__)r��
__classdict__s@@rr�r�'s5����=��E��
'�"�
(�1�"�&�&rr�c�ja�]tRtRtoRtRRltRtRt]R4t	]R4t
]R	4tR
tVt
R#)�RequestiKaA malleable representation of a signable HTTP request.

Body argument may contain any data, but parameters will only be decoded if
they are one of:

* urlencoded query string
* dict
* list of 2-tuples

Anything else will be treated as raw body data to be passed through
unmolested.
Nc�|a�V3RlpV!V4VnV!V4Vn\T!T;'g/44VnV!V4Vn\VP4Vn.Vn/Vn/RRbRRbRRbRRbRRbRRbRRbR	RbR
RbRRbRRbR
RbRRbRRbRRbRRbRRbRRRRRRRRRRRRRRRRRRRRRRRRRR/
CVn	VPP\\VP444VPP\VP;'g.44R#) c�0<�S'd
\VS4#T#rGr�)rJr�s&�rr� Request.__init__.<locals>.encode]s���.6�:�a��*�=�A�=r�access_tokenN�client�	client_id�
client_secret�code�code_challenge�code_challenge_method�
code_verifier�extra_credentials�
grant_type�redirect_uri�
refresh_token�
request_token�
response_typerU�scopes�statere�user�token_type_hint�
response_mode�nonce�display�promptr`�max_age�
ui_locales�
id_token_hint�
login_hint�
acr_values)rs�http_methodr��headers�bodyr<�decoded_body�oauth_params�
validator_log�_paramsr_r7r3�	uri_query)r�rsr�r�r�r�rs&&&&&f rr��Request.__init__Zs����	>��#�;���!�+�.���*�6�'�-�-�R�+@�A����4�L��	�*�4�9�9�5���������!
��D�!
��d�!
�
��!
�
�T�	!
�

�D�!
�
�d�
!
�
$�T�!
�
�T�!
�
 ��!
�
�$�!
�
�D�!
�
�T�!
�
�T�!
�
�T�!
�
�T�!
� 
�d�!!
�"
�T�#!
�$
�T��D��t�
�T��T��t��d��d��t��$��T��$��$�A!
���D	
�����D��4�>�>�!:�;�<������D��!2�!2�!8�!8�b�9�:rc�^�WP9dVPV,#\V4hrG)r��AttributeError)r��names&&r�__getattr__�Request.__getattr__�s&���<�<���<�<��%�%� ��&�&rc�&�\4'gR#VPpVPP4pV'd \PR\
V44pRV9dRVR&RPVPVPW!4#)z<oauthlib.Request SANITIZED>z<SANITIZED>�
Authorizationz<SANITIZED>zF<oauthlib.Request url="{}", http_method="{}", headers="{}", body="{}">)
rr�r��copy�SANITIZE_PATTERN�subr�formatrsr�)r�r�r�s&  r�__repr__�Request.__repr__�sv���{�{�1��y�y���,�,�#�#�%���#�'�'���T��C�D��g�%�'4�G�O�$�W�^�^��H�H�d�&�&��7�	7rc�V�\P!VP4P#rG)r/rsr1�r�s&rr��Request.uri_query�s��� � ����*�0�0�0rc�p�VP'g.#\P!VPRRR7#)T)r*�strict_parsing)r�r/r0r�s&r�uri_query_params�Request.uri_query_params�s.���~�~�~��I��!�!�$�.�.�D�15�7�	7rc�2�\P!\4pRVP;'g.VP,4pVFpW;;,^,
uu&K	VP4UUu.uFwr4V^8�gKVNK	upp#uuppi)c3�4"�TFpV^,x�K	R#5i)rTNr?)rI�ps& rrM�+Request.duplicate_params.<locals>.<genexpr>�s���P�N���a�D�D�N�s�)�collections�defaultdictrBr�r�r9)r��	seen_keys�all_keysr#�cs&    r�duplicate_params�Request.duplicate_params�s}���+�+�C�0�	�P�"�/�/�5�5�2��9N�9N�N�P���A��L�A��L��'�o�o�/�9�/�d�a�1�q�5���/�9�9��9s�9B�	B)r�r�r�r�r�r�rsr�)�GETNNr
)r�r�r�r�r�r�r�r��propertyr�r�r�r�r�)r�s@rr�r�KsV�����1;�f'�
7��1��1��7��7��:��:rr�)�/)F)rY)3r�r�r[�logging�rerC�urllib.parse�parser/rrrrrrrEr�secretsrr�ImportError�randomr�UNICODE_ASCII_CHARACTER_SET�CLIENT_ID_CHARACTER_SET�compile�
IGNORECASEr�r-�always_safe�	getLogger�logrr'r+rr3r<r@r>rRrfrjrlrprzr�rar7r�r�r?rr�<module>rs6������	������=�.� ,��N���:�:�G����W���j�j�!J�K�������
�#��
�
�*�	�	���
��$8� 9�
9�
�&�B�:9�	!��$?�	>��$?�!�(?�)�"�B��$�2!&�$�!&�Hf:�f:��k	�=�<�<�=�s�C*�*C<�;C<

Youez - 2016 - github.com/yon3zu
LinuXploit