403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.141
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/http/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/http/__pycache__/cookies.cpython-315.opt-1.pyc
R
>lqjZc��Qs]PHs]PHs]PHs]PHs,Q NsPOsQOsQOs	QQ\
2s\O\O*Q*s\Q*s\\Q	22\\\\22*
Tt-tFD
oUQ
U*aJ	tos\O+\Q2Q\Q
2Q-2\O,Q\O.\2*2O0s\O,Q2sQsQs\O,Q2O:sQsQs ,Q!Ns!,Q"Ns"]\!\"1Qks#QQ\$2s%Qs&\&Q*s'\O,Q\&*Q*\'*Q*\OP\OR*2s*QQ\$2s+QQ\+2s,P!ttoh)#a%

Here's a sample session to show how to use this module.
At the moment, this is the only documentation.

The Basics
----------

Importing is easy...

   >>> from http import cookies

Most of the time you start by creating a cookie.

   >>> C = cookies.SimpleCookie()

Once you've created your Cookie, you can add values just as if it were
a dictionary.

   >>> C = cookies.SimpleCookie()
   >>> C["fig"] = "newton"
   >>> C["sugar"] = "wafer"
   >>> C.output()
   'Set-Cookie: fig=newton\r\nSet-Cookie: sugar=wafer'

Notice that the printable representation of a Cookie is the
appropriate format for a Set-Cookie: header.  This is the
default behavior.  You can change the header and printed
attributes by using the .output() function

   >>> C = cookies.SimpleCookie()
   >>> C["rocky"] = "road"
   >>> C["rocky"]["path"] = "/cookie"
   >>> print(C.output(header="Cookie:"))
   Cookie: rocky=road; Path=/cookie
   >>> print(C.output(attrs=[], header="Cookie:"))
   Cookie: rocky=road

The load() method of a Cookie extracts cookies from a string.  In a
CGI script, you would use this method to extract the cookies from the
HTTP_COOKIE environment variable.

   >>> C = cookies.SimpleCookie()
   >>> C.load("chips=ahoy; vienna=finger")
   >>> C.output()
   'Set-Cookie: chips=ahoy\r\nSet-Cookie: vienna=finger'

The load() method is darn-tootin smart about identifying cookies
within a string.  Escaped quotation marks, nested semicolons, and other
such trickeries do not confuse it.

   >>> C = cookies.SimpleCookie()
   >>> C.load('keebler="E=everybody; L=\\"Loves\\"; fudge=;";')
   >>> print(C)
   Set-Cookie: keebler="E=everybody; L=\"Loves\"; fudge=;"

Each element of the Cookie also supports all of the RFC 2109
Cookie attributes.  Here's an example which sets the Path
attribute.

   >>> C = cookies.SimpleCookie()
   >>> C["oreo"] = "doublestuff"
   >>> C["oreo"]["path"] = "/"
   >>> print(C)
   Set-Cookie: oreo=doublestuff; Path=/

Each dictionary element has a 'value' attribute, which gives you
back the value associated with the key.

   >>> C = cookies.SimpleCookie()
   >>> C["twix"] = "none for you"
   >>> C["twix"].value
   'none for you'

The SimpleCookie expects that all values should be standard strings.
Just to be sure, SimpleCookie invokes the str() builtin to convert
the value to a string, when the values are set dictionary-style.

   >>> C = cookies.SimpleCookie()
   >>> C["number"] = 7
   >>> C["string"] = "seven"
   >>> C["number"].value
   '7'
   >>> C["string"].value
   'seven'
   >>> C.output()
   'Set-Cookie: number=7\r\nSet-Cookie: string=seven'

Finis.
�CookieError�
BaseCookie�SimpleCookiez; � c��\sQs]�sQsP!)r�)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��!C:\Python315\\Lib\http\cookies.pyrr�s��rz!#$%&'*+-.^_`|~:z
 ()/<=>?@[]{}�z\%03o�"z\"�\z\\z[%s]+z[\x00-\x1F\x7F]c�j�[9PIcQU2D%fJP	!	P
!QU22!)z`Detects control characters within a value.
Supports any type, as header values can be any type.
c3�j�SF �D$o[O[U22w�	J&	P!3h�N)�_control_character_re�search�str)�.0�vs& r
�	<genexpr>�)_has_control_character.<locals>.<genexpr>�s#��S���S��$�+�+�C��F�3�3�S�s�,3)�any)�vals*r
�_has_control_characterr�s-���3�A�S�A�3�3�A�3�A�3�A�S�A�A�Arc�x�Ud[U2%cU!QUO[2*Q*!)z�Quote a string for use in a cookie header.

If the string does not need to be double-quoted, then just return the
string.  Otherwise, surround the string in doublequotes and quote
(with a \) special characters.
r)�
_is_legal_key�	translate�_Translator�rs&r
�_quoter#�s1���{�m�C�(�(��
��S�]�]�;�/�/�#�5�5rz\\(?:([0-3][0-7][0-7])|(.))c�l�U]*%c[[U]*]22!U]*!)�)�chr�int)�ms&r
�_unquote_replacer)�s)����t�t��3�q��t�Q�<� � ���t�rc��Ud[U2]6cU!U]*Q6wfUP*Q6wcU!U]Po[[U2!)Nr)�len�_unquote_subr)r"s&r
�_unquoter-�sO���{�c�#�h��l��
�
�1�v��}��B��3���
��a��)�C��(�#�.�.rc	�~�]QHGoGoU2oUVP*2v	qgq�q�q�oQV*V�U*ViV�1*!)�)�gmtime�timez#%s, %02d %3s %4d %02d:%02d:%02d GMT)r1r0)�future�weekdayname�	monthnamer0r1�now�year�month�day�hh�mm�ss�wd�y�zs&&&            r
�_getdater?�sE��!�
�&�C�-3�C�L�-A�*�D��"�"��0��O�S�E�"2�D�b�E�F�Frc�b`�\sQs]�snQsQQQQQQQQQ	Q
QQQ
QQQQQQQ-
s\O\P2s.Q)ls	Qs
\Q2s\Q2s
\Q2sQsQ*QksQs\O&sQsQsQsQsQ sQ!sQ"sQ+Q#ks\sQ$sQ*Q%ksQ*Q&ksQ*Q'ks \!\"OF2s$Q(s%Us&P!),�Morsela/A class to hold ONE (key, value) pair.

In a cookie, each such pair may have several attributes, so this class is
used to keep the attributes associated with the appropriate key,value pair.
This class also includes a coded_value attribute, which is used to hold
the network representation of the value.
�expires�path�Path�comment�Comment�domain�Domain�max-agezMax-Age�secure�Secure�httponly�HttpOnly�version�Version�samesite�SameSite�partitioned�Partitionedc�p�P9Um9UmUm[O	VO
2P!r)�_key�_value�_coded_value�dict�update�_reserved_defaults��selfs&r
�__init__�Morsel.__init__s,��6:�:��	�:�D�K�$�"3�	
���D�1�1�2rc��UO!r)rUr[s&r
�key�
Morsel.key#s���y�y�rc��UO!r)rVr[s&r
�value�Morsel.value's���{�{�rc��UO!r)rWr[s&r
�coded_value�Morsel.coded_value+s��� � � rc���UO2oVO7f[QU802g[V2%c[QU8QU802g[OVU2P!�zInvalid attribute �.Control characters are not allowed in cookies r)�lower�	_reservedrrrX�__setitem__)r\�K�Vs&&&r
rm�Morsel.__setitem__/s\��
�G�G�I���N�N�"���;�<�<�!�!�'�'�� N�q�e�ST�UV�TY�Z�[�[�����!�$rc���UO2oVO7c[QU802g[V2%c[QU8QU802g[OVU2!ri)rkrlrrrX�
setdefault)r\r`rs&&&r
rr�Morsel.setdefault7sS���i�i�k���n�n�$���=�>�>�!�#�+�+��WZ�\_�a�b�b����t�#�.�.rc�,�[U[2%f[![O	V29%c\UO
UO
6H9%c;UOUO6H9%cUOUO6H!r)�
isinstancerA�NotImplementedrX�__eq__rVrUrW�r\�morsels&&r
rw�
Morsel.__eq__?sz���&�&�)�)�!�!����D�)�9�9����v�}�}�,�9�9��	�	�V�[�[�(�9�9��!�!�V�%8�%8�8�	:rc��[2o[OV2UOOUO2U!r)rArXrY�__dict__rxs& r
�copy�Morsel.copyIs0��������F�!������t�}�}�-��
rc�*�-o[U2O2FD\vq4UO2oV0O7c[	QU802g[V42%c[	QU8QU802gVBU$J^	[O
V2P!ri)rX�itemsrkrlrrrY)r\�values�datar`rs&&   r
rY�
Morsel.updateOs������V��*�*�,�H�C��)�)�+�C��.�.�(�!�C�"A�B�B�%�c�/�/�!�#-�-0�G�1�S�G�#=�>�>���I�-�	
���D�rc�*�UOU2U!r)rY)r\r�s&&r
�__ior__�Morsel.__ior__[s�����F���rc�>�UO2UO7!r)rkrl)r\rns&&r
�
isReservedKey�Morsel.isReservedKey_s���w�w�y�D�N�N�*�*rc��UO2UO7c[QU802g[U2%f[QU802g[	VU2%c[QU8QU8QU802gVmV mV0mP!)zAttempt to set a reserved key zIllegal key rjr)rkrlrrrrUrVrW)r\r`r�	coded_vals&&&&r
�set�
Morsel.setbsu���9�9�;�$�.�.�(��C�I�J�J��S�!�!��#�7�8�8�!�#�I�6�6��LO�QT�V_�a�c�
c��	���%�rc�P�QUOQUOQUO-!)r`rcrf)rUrVrWr[s&r
�__getstate__�Morsel.__getstate__ps)���4�9�9��T�[�[��4�,�,�
�	
rc��UQ*oUQ*oUQ*o[V#U2%c[QU8QU8QU802gV mV0mV@mP!)r`rcrfrjr)rrrUrVrW)r\�stater`rcrfs&&   r
�__setstate__�Morsel.__setstate__wsd���E�l���g����M�*��!�#�k�:�:��N�!$��q��	��;�/�C�D�
D��	���'�rc�4�U8QUOU280!)r)�OutputString)r\�attrs�headers&&&r
�output�
Morsel.output�s�� �$�"3�"3�E�":�;�;rc�^�QUOO8QUO28Q0!)�<�: �>)�	__class__rr�r[s&r
�__repr__�Morsel.__repr__�s ��!�^�^�4�4�d�6G�6G�6I�J�Jrc��]PHoUOU2o[U2%c[Q2gUOOUPQQ5oQU8Q0!)z4Internal implementation without deprecation warning.�-Control characters are not allowed in cookieszutf-8)�safe�encodingzq
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = decodeURIComponent("z8");
        // end hiding -->
        </script>
        )�urllib.parser�rr�parse�quote)r\r��urllib�
output_string�output_encodeds&&   r
�
_js_output�Morsel._js_output�sX����)�)�%�0�
�!�-�0�0��M�N�N� ���+�+�M��W�+�U���
 �	 rc��[OQ[OQ*QQ5UOU2!)zhttp.cookies.Morsel.js_output�; use output() instead��message�remove���)�warnings�_deprecated�_DEPRECATED_MSGr�)r\r�s&&r
�	js_output�Morsel.js_output�s6�����+��,�,�/G�G��	
�
���u�%�%rc	�n�,oUOoUUO8QUO802Ue
UOo[	UO22oSFCDHvqVUP6XcJVQ7cJUQ6XcB[
U[2%c,UUOU*8Q[U2802J_UQ6Xc;[
U[2%c%UQUOU*U1*2J�UQ6XcB[
U[2%c,UUOU*8Q[U2802J�VPO7c1U%c&U[UOU*22CJ%CJ(UUOU*8QU802CJK	[U2!)�=rBrIz%s=%drE)
�appendr`rfrl�sortedr�rur'r?rr#�_flags�_semispacejoin)r\r��resultr�r�r`rcs&&     r
r��Morsel.OutputString�sK��������	�$�(�(�D�$4�$4�5�6��=��N�N�E��t�z�z�|�$���J�C���{������i��J�u�c�$:�$:��$�.�.��"5�"5�x���G�H��	�!�j���&<�&<��w�$�.�.��"5�u�!=�=�>��	�!�j���&<�&<��$�.�.��"5�"5�v�e�}�E�F����#���3�t�~�~�c�2�3�4���$�.�.��"5�"5�u�=�>� �$�f�%�%r)rWrUrV>rJrLrRr)N�Set-Cookie:)'rrr	r
�__doc__rlrX�fromkeysrZr�r]�propertyr`rcrfrmrrrw�object�__ne__r}rYr�r�r�r�r�r��__str__r�r�r�r��classmethod�types�GenericAlias�__class_getitem__r�__classdictcell__��
__classdict__s@r
rArA�s�����*	�Y��V��Y��X��Y��X��Z��Y��Z��}��I����y�"�5��
2�F�3����������!��!�%�/�:��]�]�F��
 ��+�&�
�	(�<��G�K� �$&�&�B$�E�$6�$6�7�rrAz,\w\d!#%&'~_`><@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=z\[\]z�
    \s*                            # Optional whitespace at start of cookie
    (?P<key>                       # Start of group 'key'
    [ax]+?   # Any word of at least one letter
    )                              # End of group 'key'
    (                              # Optional group: there may not be a value.
    \s*=\s*                          # Equal Sign
    (?P<val>                         # Start of group 'val'
    "(?:[^\\"]|\\.)*"                  # Any double-quoted string
    |                                  # or
    # Special case for "expires" attr
    (\w{3,6}day|\w{3}),\s              # Day of the week or abbreviated day
    [\w\d\s-]{9,11}\s[\d:]{8}\sGMT     # Date and time in specific format
    |                                  # or
    [a-]*      # Any word or empty string
    )                                # End of group 'val'
    )?                             # End of optional value group
    \s*                            # Any number of spaces.
    (\s+|;|$)                      # Ending either at space, semicolon, or EOS.
    c�x`�\sQsQsnQsQsQsQQksQsQs	QQks
\
sQ	sQQ
ks
Qs\1QksQ
sUsP!)r��z'A container class for a set of Morsels.c�
�V1!)z�real_value, coded_value = value_decode(STRING)
Called prior to setting a cookie's value from the network
representation.  The VALUE is the value read from HTTP
header.
Override this function to modify the behavior of cookies.
r�r\rs&&r
�value_decode�BaseCookie.value_decode�s���x�rc� �[U2oV"1!)z�real_value, coded_value = value_encode(VALUE)
Called prior to setting a cookie's value from the dictionary
representation.  The VALUE is the value being assigned.
Override this function to modify the behavior of cookies.
r"�r\r�strvals&& r
�value_encode�BaseCookie.value_encode�s���S����~�rc�>�U%cUOU2P!P!r)�load)r\�inputs&&r
r]�BaseCookie.__init__s����I�I�e��rc��UOU[22oUOVU2[O	VU2P!)z+Private method for setting a cookie's value)�getrAr�rXrm)r\r`�
real_valuerf�Ms&&&& r
�__set�BaseCookie.__sets2���H�H�S�&�(�#��	���c�{�+�����A�&rc��[U[2%c[OVU2P!UO	U2vq4UOVU2P!)zDictionary style assignment.)rurArXrmr��_BaseCookie__set)r\r`rc�rval�cvals&&&  r
rm�BaseCookie.__setitem__s?���e�V�$�$����T��.��*�*�5�1�J�D��J�J�s�$�'rc���,o[UO22oSFDCvqgUOV2o[U2%c[	Q2gUOU2JE	UO
U2!)z"Return a string suitable for HTTP.r�)r�r�r�rrr��join)	r\r�r��sepr�r�r`rc�value_outputs	&&&&     r
r��BaseCookie.outputse�����t�z�z�|�$���J�C� �<�<��6�L�%�l�3�3�!�"Q�R�R��M�M�,�'�	 �
�x�x���rc	��,o[UO22oSFD0vq4UOU8Q[UO2802J2	QUO
O8Q[U28Q0!)r�r�r�r�)r�r�r��reprrcr�r�
_spacejoin)r\�lr�r`rcs&    r
r��BaseCookie.__repr__!sV�����t�z�z�|�$���J�C�
�H�H��T�%�+�+�%6�7�8� �!�^�^�4�4�j��m�D�Drc��[OQ[OQ*QQ5,o[UO	22oSFD%vqEUOUO
U22J'	[U2!)z(Return a string suitable for JavaScript.z!http.cookies.BaseCookie.js_outputr�r�r�)r�r�r�r�r�r�r��	_nulljoin)r\r�r�r�r`rcs&&    r
r��BaseCookie.js_output(sj�����/��,�,�/G�G��	
�
���t�z�z�|�$���J�C��M�M�%�*�*�5�1�2� ��� � rc��[U[2%cUOU2P!UO2FD	vq#V0U$J	P!)z�Load cookies from a string (presumably HTTP_COOKIE) or
from a dictionary.  Loading cookies from a dictionary 'd'
is equivalent to calling:
    map(Cookie.__setitem__, d.keys(), d.values())
)rur�_BaseCookie__parse_stringr�)r\�rawdatar`rcs&&  r
r��BaseCookie.load5sB���g�s�#�#�����(�
	�&�m�m�o�
��!�S�	�.�rc�<�]o[U2o,oP
o]o]o]St96:c	U6Cc=LCL8UOV2o	U	%fCLU	OQ2U	OQ2q�U	O]2oU
]*Q6Xc'U%fJyUO	VzQ*U12J�U
O2[O7chU%fP!Ue;U
O2[O7cUO	VzP	12J�P!UO	Vz[U212CJUd(UO	V�UOU212P	oCJJP!PoSFD0vq�oV�6XcV�U
$JUvq�UOV�U2V
*oJ2	P!)r/r`r�$:r%NN)r+�match�group�endr�rkrArlr�r-r�r�)r\r�patt�i�n�parsed_items�morsel_seen�TYPE_ATTRIBUTE�
TYPE_KEYVALUEr�r`rcr��tpr�r�s&&&             r
�__parse_string�BaseCookie.__parse_stringCse��
����H���������
�
�1�j�q�j�j��J�J�s�&�E������U�+�U�[�[��-?���	�	�!��A��1�v��}�"���#�#�^��W�e�$D�E������ 0� 0�0�"���=��y�y�{�f�m�m�3�$�+�+�^�$�,G�H�� �'�'��h�u�o�(N�O��"��#�#�]��9J�9J�5�9Q�$R�S�"���
��*�N�B�U��#��#��#�
���
�
�3�d�+��I��+rrr)Nr�z
)rrr	r
r�r�r�r]r�rmr�r�r�r�r��_CookiePatternr�rr�r�s@r
rr�sL����1����'�(�	 ��G�E�!��(6�:�:rc�2`�\sQsQsnQsQsQsQsUsP!)r�z�
SimpleCookie supports strings as cookie values.  When setting
the value using the dictionary assignment notation, SimpleCookie
calls the builtin str() to convert the value to a string.  Values
received from HTTP are kept as strings.
c��[U2U1!r)r-r�s&&r
r��SimpleCookie.value_decode�s����}�c�!�!rc�4�[U2oU[U21!r)rr#r�s&& r
r��SimpleCookie.value_encode�s���S����v�f�~�%�%rr)	rrr	r
r�r�r�rr�r�s@r
rr�s�����"�&�&r)rrr)�Mon�Tue�Wed�Thu�Fri�Sat�Sun)
N�Jan�Feb�Mar�Apr�May�Jun�Jul�Aug�Sep�Oct�Nov�Dec)-r��re�stringr�r��__all__r�r�r�r��	Exceptionr�
ascii_letters�digits�_LegalChars�_UnescapedCharsr��range�map�ordr!rY�compile�escape�	fullmatchrrrr#�subr,r)r-�_weekdayname�
_monthnamer?rXrA�_LegalKeyChars�_LegalValueChars�ASCII�VERBOSErrr)rs0r
�<module>r:s���NX�z
�
���
7���G�G�	�����
�X�X�
�
	�)�	�"�"�"�V�]�]�2�5G�G����/���E�#�J��#�c�#��.G�*H�H�J�H�1��(�Q�,��H�J�������H�e���I�v���
�
�
�7�R�Y�Y�{�%;�;�<�F�F�
��
�
�#5�6��B�
6��z�z�8�9�=�=���/�6A��8�
��<�:�F�O8�T�O8�vB��!�G�+�����	���	�	�����&
���B�J�J�	�' ��2Q��Q�h&�:�&��uJs�G

Youez - 2016 - github.com/yon3zu
LinuXploit