403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
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:/Python314/Lib/http/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python314/Lib/http/__pycache__/cookies.cpython-314.pyc
+
8��i	W���Rt^RIt^RIt^RIt.R"OtRP
tRP
tRP
t!RR]	4t
]P]P,R	,t
]
R
,t]!]!R44]!]!]]44,
Uu/uF
pVRV,bK	upt]P)]!R
4R]!R4R/4]P*!R]P,!]
4,4P.t]P*!R4tRtRt]P*!R4P8tRtRt.R#Ot .R$Ot!^] ]!3Rlt"!RR]#4t$Rt%]%R,t&]P*!R]%,R,]&,R,]PN]PP,4t)!R R]#4t*!R!R]*4t+R#uupi)%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.
N�CookieError�
BaseCookie�SimpleCookie�z; � c��]tRt^�tRtR#)r�N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r�� C:\Python314\Lib\http\cookies.pyrr�s��rz!#$%&'*+-.^_`|~:z
 ()/<=>?@[]{}�z\%03o�"�\"�\z\\z[%s]+z[\x00-\x1F\x7F]c�j�\;QJdRV4F'gKR#	R#!RV44#)z`Detects control characters within a value.
Supports any type, as header values can be any type.
c3�^"�TF#p\P\V44x�K%	R#5i�N)�_control_character_re�search�str)�.0�vs& r�	<genexpr>�)_has_control_character.<locals>.<genexpr>�s#���A�S��$�+�+�C��F�3�3�S�s�+-TF)�any)�vals*r�_has_control_characterr �s-���3�A�S�A�3�3�A�3�A�3�A�S�A�A�Arc�v�Ve\V4'dV#RVP\4,R,#)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�5rz\\(?:([0-3][0-7][0-7])|(.))c�j�V^,'d\\V^,^44#V^,#)�)�chr�int)�ms&r�_unquote_replacer,�s)����t�t��3�q��t�Q�<� � ���t�rc��Ve\V4^8dV#V^,R8wgVR,R8wdV#V^Rp\\V4#)Nr���)�len�_unquote_subr,r%s&r�_unquoter1�sO���{�c�#�h��l��
�
�1�v��}��B��3���
��a��)�C��(�#�.�.rc	�|�^RIHpHpV!4pV!WP,4w	rgr�r�r�pRW,W�V,WiW�3,#)�)�gmtime�timez#%s, %02d %3s %4d %02d:%02d:%02d GMT)r5r4)�future�weekdayname�	monthnamer4r5�now�year�month�day�hh�mm�ss�wd�y�zs&&&            r�_getdaterC�sE��!�
�&�C�-3�C�L�-A�*�D��"�"��0��O�S�E�"2�D�b�E�F�Frc�Va�]tRt^�toRtRRRRRRRRR	R
RRR
RRRRRRR/
t]P]R4t0R*mt	Rt
]R4t]R4t
]R4tRtR+RltRt]P&tRtRtR tR!tR"tR#tR$tR,R%lt]tR&tR+R'ltR+R(lt] !]!PD4t#R)t$Vt%R#)-�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�Partitionedrc�n�R;Vn;VnVn\P	WP
4R#r)�_key�_value�_coded_value�dict�update�_reserved_defaults��selfs&r�__init__�Morsel.__init__s,��6:�:��	�:�D�K�$�"3�	
���D�1�1�2rc��VP#r)rYr_s&r�key�
Morsel.key"s���y�y�rc��VP#r)rZr_s&r�value�Morsel.value&s���{�{�rc��VP#r)r[r_s&r�coded_value�Morsel.coded_value*s��� � � rc���VP4pWP9g\RV:24h\W4'd\RV:RV:24h\PWV4R#��Invalid attribute �.Control characters are not allowed in cookies rN)�lower�	_reservedrr r\�__setitem__)r`�K�Vs&&&rrr�Morsel.__setitem__.s\��
�G�G�I���N�N�"���;�<�<�!�!�'�'�� N�q�e�ST�UV�TY�Z�[�[�����!�$rNc���VP4pWP9d\RV:24h\W4'd\RV:RV:24h\PWV4#)rnror)rprqrr r\�
setdefault)r`rdrs&&&rrw�Morsel.setdefault6sS���i�i�k���n�n�$���=�>�>�!�#�+�+��WZ�\_�a�b�b����t�#�.�.rc�*�\V\4'g\#\P	W4;'d\VP
VP
8H;'d;VPVP8H;'dVPVP8H#r)�
isinstancerE�NotImplementedr\�__eq__rZrYr[�r`�morsels&&rr|�
Morsel.__eq__>sz���&�&�)�)�!�!����D�)�9�9����v�}�}�,�9�9��	�	�V�[�[�(�9�9��!�!�V�%8�%8�8�	:rc��\4p\PW4VPPVP4V#r)rEr\r]�__dict__r}s& r�copy�Morsel.copyHs0��������F�!������t�}�}�-��
rc�&�/p\V4P4F\wr4VP4pW0P9d\	RV:24h\W44'd\	RV:RV:24hWBV&K^	\P
W4R#rm)r\�itemsrprqrr r])r`�values�datardrs&&   rr]�
Morsel.updateNs������V��*�*�,�H�C��)�)�+�C��.�.�(�!�C�"A�B�B�%�c�/�/�!�#-�-0�G�1�S�G�#=�>�>���I�-�	
���D�rc�(�VPV4V#r)r])r`r�s&&r�__ior__�Morsel.__ior__Zs�����F���rc�<�VP4VP9#r)rprq)r`rss&&r�
isReservedKey�Morsel.isReservedKey^s���w�w�y�D�N�N�*�*rc��VP4VP9d\RV:24h\V4'g\RV:24h\	WV4'd\RV:RV:RV:24hWnW nW0nR#)zAttempt to set a reserved key zIllegal key rorN)rprqrr"r rYrZr[)r`rdr�	coded_vals&&&&r�set�
Morsel.setasu���9�9�;�$�.�.�(��C�I�J�J��S�!�!��#�7�8�8�!�#�I�6�6��LO�QT�V_�a�c�
c��	���%�rc�N�RVPRVPRVP/#)rdrgrj)rYrZr[r_s&r�__getstate__�Morsel.__getstate__os)���4�9�9��T�[�[��4�,�,�
�	
rc��VR,pVR,pVR,p\W#V4'd\RV:RV:RV:24hW nW0nW@nR#)rdrgrjrorN)r rrYrZr[)r`�staterdrgrjs&&   r�__setstate__�Morsel.__setstate__vsd���E�l���g����M�*��!�#�k�:�:��N�!$��q��	��;�/�C�D�
D��	���'�rc�2�V:RVPV4:2#)r)�OutputString)r`�attrs�headers&&&r�output�
Morsel.output�s�� �$�"3�"3�E�":�;�;rc�\�RVPP:RVP4:R2#)�<�: �>)�	__class__r	r�r_s&r�__repr__�Morsel.__repr__�s ��!�^�^�4�4�d�6G�6G�6I�J�Jrc��VPV4p\V4'd\R4hRVPRR4,#)�-Control characters are not allowed in cookiesz�
        <script type="text/javascript">
        <!-- begin hiding
        document.cookie = "%s";
        // end hiding -->
        </script>
        rr)r�r r�replace)r`r��
output_strings&& r�	js_output�Morsel.js_output�sJ���)�)�%�0�
�!�-�0�0��M�N�N���$�$�S�%�0�
2�	2rc�j�.pVPpV!VP:RVP:24Vf
VPp\	VP44pVEFHwrVVR8XdKWQ9dKVR8XdB\
V\4'd,V!VPV,:R\V4:24K_VR8Xd;\
V\4'd%V!RVPV,V3,4K�VR8XdB\
V\4'd,V!VPV,:R\V4:24K�WPP9d1V'd&V!\VPV,44EK%EK(V!VPV,:RV:24EKK	\V4#)�=rrFrMz%s=%drI)
�appendrdrjrq�sortedr�rzr*rCrr&�_flags�_semispacejoin)r`r��resultr�r�rdrgs&&     rr��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)r[rYrZ>rNrPrVr)N�Set-Cookie:)&r	r
rr�__doc__rqr\�fromkeysr^r�ra�propertyrdrgrjrrrwr|�object�__ne__r�r]r�r�r�r�r�r��__str__r�r�r��classmethod�types�GenericAlias�__class_getitem__r
�__classdictcell__��
__classdict__s@rrErE�s�����*	�Y��V��Y��X��Y��X��Z��Y��Z��}��I����y�"�5��
2�F�3����������!��!�%�/�:��]�]�F��
 ��+�&�
�	(�<��G�K�2�&�B$�E�$6�$6�7�rrEz,\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�va�]tRtRtoRtRtRtRRltRtRt	RR	lt
]
tR
tRRlt
Rt]3R
ltRtVtR#)ri�z'A container class for a set of Morsels.c��W3#)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�rc��\V4pW"3#)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����~�rNc�<�V'dVPV4R#R#r)�load)r`�inputs&&rra�BaseCookie.__init__�s����I�I�e��rc��VPV\44pVPWV4\P	WV4R#)z+Private method for setting a cookie's valueN)�getrEr�r\rr)r`rd�
real_valuerj�Ms&&&& r�__set�BaseCookie.__set�s2���H�H�S�&�(�#��	���c�{�+�����A�&rc��\V\4'd\PWV4R#VP	V4wr4VPWV4R#)zDictionary style assignment.N)rzrEr\rrr��_BaseCookie__set)r`rdrg�rval�cvals&&&  rrr�BaseCookie.__setitem__�s?���e�V�$�$����T��.��*�*�5�1�J�D��J�J�s�$�'rc���.p\VP44pVFCwrgVPW4p\V4'd\	R4hVPV4KE	VP
V4#)z"Return a string suitable for HTTP.r�)r�r�r�r rr��join)	r`r�r��sepr�r�rdrg�value_outputs	&&&&     rr��BaseCookie.outputse�����t�z�z�|�$���J�C� �<�<��6�L�%�l�3�3�!�"Q�R�R��M�M�,�'�	 �
�x�x���rc���.p\VP44pVF0wr4VPV:R\VP4:24K2	RVP
P:R\V4:R2#)r�r�r�r�)r�r�r��reprrgr�r	�
_spacejoin)r`�lr�rdrgs&    rr��BaseCookie.__repr__sV�����t�z�z�|�$���J�C�
�H�H��T�%�+�+�%6�7�8� �!�^�^�4�4�j��m�D�Drc��.p\VP44pVF%wrEVPVPV44K'	\	V4#)z(Return a string suitable for JavaScript.)r�r�r�r��	_nulljoin)r`r�r�r�rdrgs&&    rr��BaseCookie.js_outputsC�����t�z�z�|�$���J�C��M�M�%�/�/�%�0�1� ��� � rc��\V\4'dVPV4R#VP4F	wr#W0V&K	R#)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())
N)rzr�_BaseCookie__parse_stringr�)r`�rawdatardrgs&&  rr��BaseCookie.load"sB���g�s�#�#�����(�
	�&�m�m�o�
��!�S�	�.�rc�T�^p\V4p.pRp^p^p^Tu;8:d	V8Ed=MEM8VPW4p	V	'gEMV	PR4V	PR4r�V	P^4pV
^,R8Xd'V'gKyVP	WzR,V34K�V
P4\P9dhV'gR#Vf;V
P4\P9dVP	WzR34K�R#VP	Wz\V434EKVe(VP	W�VPV434RpEKJR#RpVF>wr�pW�8Xd
VfQhW�V
&KW�8XgQhVwr�VPW�V4W
,pK@	R#)r3Frdr�$:r(NNNT)r/�match�group�endr�rprErqr�r1r�r�)r`r�patt�i�n�parsed_items�morsel_seen�TYPE_ATTRIBUTE�
TYPE_KEYVALUEr�rdrgr��tpr�r�s&&&             r�__parse_string�BaseCookie.__parse_string0sy��
����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��+rrr)Nr�z
)r	r
rrr�r�r�rar�rrr�r�r�r�r��_CookiePatternr�r
r�r�s@rrr�sL����1����'�(�	 ��G�E�!��(6�:�:rc�0a�]tRtRtoRtRtRtRtVtR#)rimz�
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��\V4V3#r)r1r�s&&rr��SimpleCookie.value_decodets����}�c�!�!rc�2�\V4pV\V43#r)rr&r�s&& rr��SimpleCookie.value_encodews���S����v�f�~�%�%rrN)	r	r
rrr�r�r�r
r�r�s@rrrms�����"�&�&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��__all__r�r�r�r��	Exceptionr�
ascii_letters�digits�_LegalChars�_UnescapedCharsr��range�map�ordr$r]�compile�escape�	fullmatchr"rr r&�subr0r,r1�_weekdayname�
_monthnamerCr\rE�_LegalKeyChars�_LegalValueChars�ASCII�VERBOSEr�rr)r�s0r�<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�B8�T�B8�\B��!�G�+�����	���	�	�����&
���B�J�J�	�' ��2L��L�^&�:�&��QJs�F?

Youez - 2016 - github.com/yon3zu
LinuXploit