403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.1
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 :  /Python315/Lib/wsgiref/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/wsgiref/__pycache__/validate.cpython-315.pyc
R
>lqjr<c�.�QsQ,s]PHs]PHs]PHs\O
Q2s\O
Q2sQQ\2s	Qs
QsQsQ	Q
2s
QQ2sQ
Q2sQQ2sQQ2sQsQsQsQsQsQsQsQsP!)a&
Middleware to check for obedience to the WSGI specification.

Some of the things this checks:

* Signature of the application and start_response (including that
  keyword arguments are not used).

* Environment checks:

  - Environment is a dictionary (and not a subclass).

  - That all the required keys are in the environment: REQUEST_METHOD,
    SERVER_NAME, SERVER_PORT, wsgi.version, wsgi.input, wsgi.errors,
    wsgi.multithread, wsgi.multiprocess, wsgi.run_once

  - That HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH are not in the
    environment (these headers should appear as CONTENT_LENGTH and
    CONTENT_TYPE).

  - Warns if QUERY_STRING is missing, as the cgi module acts
    unpredictably in that case.

  - That CGI-style variables (that don't contain a .) have
    (non-unicode) string values

  - That wsgi.version is a tuple

  - That wsgi.url_scheme is 'http' or 'https' (@@: is this too
    restrictive?)

  - Warns if the REQUEST_METHOD is not known (@@: probably too
    restrictive).

  - That SCRIPT_NAME and PATH_INFO are empty or start with /

  - That at least one of SCRIPT_NAME or PATH_INFO are set.

  - That CONTENT_LENGTH is a positive integer.

  - That SCRIPT_NAME is not '/' (it should be '', and PATH_INFO should
    be '/').

  - That wsgi.input has the methods read, readline, readlines, and
    __iter__

  - That wsgi.errors has the methods flush, write, writelines

* The status is a string, contains a space, starts with an integer,
  and that integer is in range (> 100).

* That the headers is a list (not a subclass, not another kind of
  sequence).

* That the items of the headers are tuples of strings.

* That there is no 'status' header (that is used in CGI, but not in
  WSGI).

* That the headers don't contain newlines or colons, end in _ or -, or
  contain characters codes below 037.

* That Content-Type is given if there is content (CGI often has a
  default content type, but WSGI does not).

* That no Content-Type is given when there is no content (@@: is this
  too restrictive?)

* That the exc_info argument to start_response is a tuple or None.

* That all calls to the writer are with strings, and no other methods
  on the writer are accessed.

* That wsgi.input is used properly:

  - .read() is called with exactly one argument

  - That it returns a string

  - That readline, readlines, and __iter__ return strings

  - That .close() is not called

  - No other methods are provided

* That wsgi.errors is used properly:

  - .write() and .writelines() is called with a string

  - That .close() is not called, and no other methods are provided.

* The response iterator:

  - That it is not a string (it should be a list of a single string; a
    string will work, but perform horribly).

  - That .__next__() returns a string

  - That the iterator is not iterated over until start_response has
    been called (that can signal either a server or application
    error).

  - That .close() is called (doesn't raise exception, only prints to
    sys.stderr, because we only know it isn't called when the object
    is garbage collected).
�	validatorz^[a-zA-Z][a-zA-Z0-9\-_]*$z[\000-\037]c��\sQs]ysQsQsP!)�WSGIWarningz2
Raised in response to WSGI-spec-related warnings
�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��%C:\Python315\\Lib\wsgiref\validate.pyrrys��rrc�,�U%f[UgP!�N)�AssertionError)�cond�argss&*r�assert_r~s����d�#�#�rc�v�[U2[IcU![QOU[	U222g)z!{0} must be of type str (got {1}))�type�strr�format�repr)�value�titles&&r�check_string_typer�s6���U�|�s����
�+�2�2�5�$�u�+�F�H�Hrc�`�U1QkoU!)a�
When applied between a WSGI server and a WSGI application, this
middleware will check for WSGI compliance on a number of levels.
This middleware does not modify the request or response in any
way, but will raise an AssertionError if anything seems off
(except for a failure to close the application iterator, which
will be printed to stderr -- there's no way to raise an exception
at that point).
c�V:``�[[U2]6HQ2[U%(Q2Uvon[U2,nUU1Qko[UQ*2UQ$[	UQ*2UQ$RV#2o[UPI9%cUP
6gQ2[U2[
UR2!)�zTwo arguments required�No keyword arguments allowedc�:�[[U2]6H9%f[U2]6HQU802[U%(Q2U]*oU]*o[U2]6XcU]*oLPo[U2[U2[	V#2[U2RO
P2[RU2!)rzInvalid number of arguments: r)r�len�check_status�
check_headers�check_content_type�check_exc_info�append�WriteWrapper)r�kw�status�headers�exc_info�start_response�start_response_starteds*,   ��r�start_response_wrapper�;validator.<locals>.lint_app.<locals>.start_response_wrapper�s�����C��I��N�4�4�c�$�i�1�n��59�;�
>���F�:�;��!�W�F��1�g�G��4�y�A�~���7������ ��'�"��v�/��8�$�"�)�)�$�/���� 5�6�6r�
wsgi.input�wsgi.errorsz>The application must return an iterator, if only an empty list)rr �
check_environ�InputWrapper�ErrorWrapper�check_iterator�IteratorWrapper)rr'�environr-�iteratorr+r,�applications*,   @@�r�lint_app�validator.<locals>.lint_app�s������D�	�Q�� 8�9��B��6�7�"&�����g��"$��	7�&!-�W�\�-B� C����!-�g�m�.D�!E��
���w�?�����$�:�:��U�):�L�	N�	�x� ��x�)?�@�@rr)r8r9sf rrr�s���'A�R�Orc�F`�\sQs]�snQsQsQsQsQsQs	Qs
UsP!)r2c��VmP!r��input)�self�
wsgi_inputs&&r�__init__�InputWrapper.__init__�s���
rc��[[U2]6H2UOOUo[[	U2[
I2U!��)rr r>�readr�bytes�r?r�vs&* rrF�InputWrapper.read�s:����D�	�Q����J�J�O�O�T�"����Q��5� �!��rc��[[U2]6*2UOOUo[[	U2[
I2U!rD)rr r>�readlinerrGrHs&* rrL�InputWrapper.readline�s<����D�	�Q����J�J����&����Q��5� �!��rc���[[U2]6*2UOOUo[[	U2[
I2SFDo[[	U2[I2J	U!rD)rr r>�	readlinesr�listrG)r?r�lines�lines&*  rrO�InputWrapper.readlines�sW����D�	�Q����
�
�$�$�d�+����U��t�#�$��D��D��J�%�'�(���rc#�N �UO29o%cUw�	JP!3hr)rL)r?rRs& r�__iter__�InputWrapper.__iter__�s ����m�m�o�%�d�%��J�&�s�%�	%c� �[]Q2P!)�z input.close() must not be called�r�r?s&r�close�InputWrapper.close�s
����5�6rr=)rrrrrArFrLrOrUr[r
�__classdictcell__��
__classdict__s@rr2r2�s(���� �����7�7rr2c�@`�\sQs]�snQsQsQsQsQsQs	Us
P!)r3c��VmP!r��errors)r?�wsgi_errorss&&rrA�ErrorWrapper.__init__����!�rc�r�[[U2[I2UOO	U2P!r)rrrrc�write�r?�ss&&rrh�ErrorWrapper.write�s$����Q��3��������!�rc�<�UOO2P!r)rc�flushrZs&rrm�ErrorWrapper.flush�s�������rc�>�SFDoUOU2J	P!r)rh)r?�seqrRs&& r�
writelines�ErrorWrapper.writelines�s���D��J�J�t��rc� �[]Q2P!)rXz!errors.close() must not be calledrYrZs&rr[�ErrorWrapper.close�s
����6�7rrb)rrrrrArhrmrqr[r
r]r^s@rr3r3�s#����"����8�8rr3c�.`�\sQs]�snQsQsQsUsP!)r&c��VmP!r��writer)r?�wsgi_writers&&rrA�WriteWrapper.__init__�rfrc�^�[[U2[I2UOU2P!r)rrrGrxris&&r�__call__�WriteWrapper.__call__�s����Q��5� �!����A�rrw)rrrrrAr|r
r]r^s@rr&r&�s����"��rr&c�.`�\sQs]�snQsQsQsUsP!)�PartialIteratorWrapperc��VmP!r�r7)r?�
wsgi_iterators&&rrA�PartialIteratorWrapper.__init__�s��%�
rc�0�[UOP2!r)r5r7rZs&rrU�PartialIteratorWrapper.__iter__s���t�}�}�d�3�3rr�)rrrrrArUr
r]r^s@rrr�s����&�4�4rrc�@`�\sQsQsnQsQsQsQsQsQs	Us
P!)r5�c�N�Vm[U2UmP
UmV mP!)F)�original_iterator�iterr7�closed�check_start_response)r?r�r�s&&&rrA�IteratorWrapper.__init__s!��!.���]�+��
����$8�!rc��U!rrrZs&rrU�IteratorWrapper.__iter__s���rc��[UO%(Q2[UO2o[	U2[
Ic[P
QU8Q02UOd[UOQ2PUmU!)zIterator read after closedz!Iterator yielded non-bytestring (�)zjThe application returns and we started iterating over its body, but start_response has not yet been called)rr��nextr7rrGr�)r?rIs& r�__next__�IteratorWrapper.__next__si���D�K�K��(�	*���������7�%���E�Q�H�I��$�$�0��D�-�-�|�
~�(,�D�%��rc��P	Um[UOQ2%cUOO2P!P!)Tr[)r��hasattrr�r[rZs&rr[�IteratorWrapper.closes3������4�)�)�7�3�3��"�"�(�(�*�4rc��UO%f [OOQ2[	UOQ2P!)z/Iterator garbage collected without being closed)r��sys�stderrrhrrZs&r�__del__�IteratorWrapper.__del__ s2���{�{�{��J�J���A�
C�����=�	?r)r�r�r7r�)rrrrrArUr�r[r�r
r]r^s@rr5r5s#����9��
�+�
?�?rr5c��[[U2[IQ[U28QU8Q02QFDo[V7QU802J	Q FD!o[V7QU8Q	UQ
*8Q02J#	QU7c[OQ
[
2UO
2FDOoQU7cJ[[V*2[IQU8Q[V*28QV*8Q02JQ	[[UQ*2[IQUQ*8Q02[UQ*Q!7QUQ**2[UQ*2[UQ*2UQ*Q"7c*[OQUQ**[
2[UOQ2%(9%fUQ*OQ2QUQ**2[UOQ2%(9%fUQ*OQ2QUQ**2UOQ2%c.[[UQ*2]6�QUQ**2UOQ2%f[QU7Q2[UOQ2Q6gQ2P!)#z&Environment is not of the right type: z (environment: r��REQUEST_METHOD�wsgi.versionr/r0z"Environment missing required key: z%Environment should not have the key: z (use :�NNz	 instead)�QUERY_STRINGz�QUERY_STRING is not in the WSGI environment; the cgi module will use sys.argv when this variable is missing, so application errors are more likely�.zEnvironmental variable z is not a string: z	 (value: z wsgi.version should be a tuple (zwsgi.url_schemezwsgi.url_scheme unknown: %rzUnknown REQUEST_METHOD: %r�SCRIPT_NAME�/z$SCRIPT_NAME doesn't start with /: %r�	PATH_INFOz"PATH_INFO doesn't start with /: %r�CONTENT_LENGTHzInvalid CONTENT_LENGTH: %rzgOne of SCRIPT_NAME or PATH_INFO are required (PATH_INFO should at least be '/' if SCRIPT_NAME is empty)zOSCRIPT_NAME cannot be '/'; it should instead be '', and PATH_INFO should be '/')	r��SERVER_NAME�SERVER_PORTr�r/r0zwsgi.multithreadzwsgi.multiprocessz
wsgi.run_once)�HTTP_CONTENT_TYPE�HTTP_CONTENT_LENGTH)�http�https)�GET�HEAD�POST�OPTIONS�PATCH�PUT�DELETE�TRACE)rr�dict�warnings�warnr�keysr�tuple�check_input�check_errors�get�
startswith�int)r6�keys& rr1r1'sy���D��M�T�!���=�'�	#�$�!��	���69�;�	=�	!�<����"�"%�s�2�w�w�
0�	1�<�
�W�$��
�
�
4�
�		��|�|�~���#�:����W�\�"�c�)��D���&����
6�	7�	��D���(�)�U�2�18��1H�1H�J�L��G�%�&�*;�;�%��0A�(B�B�D����%�&����'�(��� �)M�M��
�
�(�7�3C�+D�D��	�����M�*�*�
6�
6��}�%�0�0��5�.���1G�G�I�����K�(�(�
4�
4��{�#�.�.�s�3�,�w�{�/C�C�E��{�{�#�$�$���G�,�-�.�!�3�(�7�3C�+D�D�	F��;�;�}�%�%���w�&�
>�	?��G�K�K�
�&�#�-�	"�#rc	�V�QFD o[[V2QU8QU802J"	P!)rFzwsgi.input (�) doesn't have the attribute )rFrLrOrU�rr�)r@�attrs& rr�r�hs%��=����
�)��4�
!�	"�>rc	�V�QFD o[[V2QU8QU802J"	P!)rmz
wsgi.errors (r�)rmrhrqr�)rdr�s& rr�r�ns%��0�����*��D�
"�	#�1rc�V�[UQ2oUOP]2]*o[[U2]6HQU*2[	U2o[U]d6�QU*2[U2]6fU]*Q6wc%[
OQU*[2P!P!)�Statusz)Status codes must be three characters: %rzStatus code is invalid: %r� zjThe status string (%r) should be a three-digit integer followed by a single space and a status explanation)r�splitrr r�r�r�r)r(�status_code�
status_ints&  rr!r!ts���
�v�x�
0�F��,�,�t�Q�'��*�K��C����!�3�k�A�C��[�!�J��J�#��;�j�H�I�
�6�{�Q��&��)�s�*��
�
�
B��
�!�	#�+rc�D�[[U2[IQU8Q[U2802SFCDjo[[U2[IQU8Q[U2802[[	U2]6H2Uvq#[UQ2o[UQ2o[UO
2Q6gQU*2[QU79%cQ	U7Q
U*2[[OU2QU*2[UOQ2%(9%cUOQ
2%(QU*2[OU2%fCJ3[]QU8Q[OU2O]28Q02CJm	P!)z	Headers (z) must be of type list: zIndividual headers (z) must be of type tuple: �Header namezHeader valuer(zyThe Status header cannot be used; it conflicts with CGI script, and HTTP status is not given through headers (value: %r).�
�:z,Header names may not contain ':' or '\n': %rzBad header name: %r�-�_z#Names may not end in '-' or '_': %rzBad header value: z (bad char: r�)rrrPr�r r�lower�	header_re�search�endswith�bad_header_value_re�group)r)�item�namers&   rr"r"�sT���D��M�T�!��D��M�	#�$�����T�
�e�#��T�$�Z�
!�	"�	��D�	�Q������ ��}�5��!�%��8����
�
���(�
�"�
#�	$�	��D� �4�4�S��_�;�d�B�	D��	� � ��&�(=��(D�E��D�M�M�#�&�&�A�A�t�}�}�S�/A�+A�1�D�8�	:��%�%�e�,�,��A��)�0�0��7�=�=�a�@�B�
C�%rc�6�[UQ2o[UOP]2]*2oQoSFDEvqE[UQ2oUO2Q6XfJ(V#7cP![	]QU*2JG	V#7c[	]QU*2P!P!)r�r�zcontent-typezJContent-Type header found in a %s response, which must not return content.z,No Content-Type header found in headers (%s))���0)rr�r�r�r)r(r)�code�NO_MESSAGE_BODYr�rs&&    rr#r#�s���
�v�x�
0�F��v�|�|�D�!�$�Q�'�(�D�!�O���� ��}�5���:�:�<�>�)��*���A�9�<@�A�
B���"���A�G�K�L�#rc	�x�[UPI9%f[U2[IQU8Q[U2802P!)Nz
exc_info (z) is not a tuple: )rrr�)r*s&rr$r$�s0���H���7�7��X��%� 7��.6��X��G�Irc�R�[[U[[12%(Q2P!)zwYou should not return a string as your application iterator, instead return a single-item list containing a bytestring.)r�
isinstancerrGr�s&rr4r4�s#���
�8�c�5�\�2�2�	E�Fr)r	�__all__�rer�r��compiler�r��Warningrrrrr2r3r&rr5r1r�r�r!r"r#r$r4rrr�<module>r�s���
i�T�-��
�
���J�J�3�4�	��j�j��0���'��
$�H�5�n7�7�@8�8�&��4�4�!?�!?�F?#�B"�#�#�C�2M� I�
Fr

Youez - 2016 - github.com/yon3zu
LinuXploit