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.14/wsgiref/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.14/wsgiref/__pycache__/validate.cpython-314.pyc
+
��3j�:��,�RtR.t^RIt^RIt^RIt]P
!R4t]P
!R4t!RR]4t	Rt
RtR	t!R
R4t
!RR
4t!RR4t!RR4t!RR4tRtRtRtRtRtRtRtRtR#)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).
�	validatorNz^[a-zA-Z][a-zA-Z0-9\-_]*$z[\000-\037]c��]tRt^ytRtRtR#)�WSGIWarningz2
Raised in response to WSGI-spec-related warnings
�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��'/usr/lib/python3.14/wsgiref/validate.pyrrys��rrc�(�V'g
\V!hR#�N)�AssertionError)�cond�argss&*r
�assert_r~s����d�#�#�rc�t�\V4\JdV#\RPV\	V444h)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�Hrc�a�V3RlpV#)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�T<aa�\\V4^8HR4\V'*R4Vwpo\V4.oVV3Rlp\VR,4VR&\	VR,4VR&S!W#4p\VRJ;'dVR8gR4\V4\
VS4#)	�zTwo arguments required�No keyword arguments allowedc�~<�\\V4^8H;'g\V4^8HRV:24\V'*R4V^,pV^,p\V4^8XdV^,pMRp\V4\V4\	W#4\V4SP
R4\S!V!4#)rzInvalid number of arguments: rN)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.errorsNFz>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�)?�@�@rr)r9r:sf r
rr�s���'A�R�Orc�Da�]tRt^�toRtRtRtRtRtRt	Rt
VtR#)	r3c��WnR#r��input)�self�
wsgi_inputs&&r
�__init__�InputWrapper.__init__�s���
rc��\\V4^8H4VPP!V!p\\	V4\
J4V#��)rr!r?�readr�bytes�r@r�vs&* r
rG�InputWrapper.read�s:����D�	�Q����J�J�O�O�T�"����Q��5� �!��rc��\\V4^8*4VPP!V!p\\	V4\
J4V#rE)rr!r?�readlinerrHrIs&* r
rM�InputWrapper.readline�s<����D�	�Q����J�J����&����Q��5� �!��rc���\\V4^8*4VPP!V!p\\	V4\
J4VFp\\	V4\J4K	V#rE)rr!r?�	readlinesr�listrH)r@r�lines�lines&*  r
rP�InputWrapper.readlines�sW����D�	�Q����
�
�$�$�d�+����U��t�#�$��D��D��J�%�'�(���rc#�J"�VP4;p'dVx�KR#5ir)rM)r@rSs& r
�__iter__�InputWrapper.__iter__�s ����m�m�o�%�d�%��J�&�s�#�#c��\^R4R#)�z input.close() must not be calledN�r�r@s&r
�close�InputWrapper.close�s
����5�6rr>N)rrrr	rBrGrMrPrVr\r�__classdictcell__��
__classdict__s@r
r3r3�s(���� �����7�7rr3c�>a�]tRt^�toRtRtRtRtRtRt	Vt
R#)r4c��WnR#r��errors)r@�wsgi_errorss&&r
rB�ErrorWrapper.__init__����!�rc�p�\\V4\J4VPP	V4R#r)rrrrd�write�r@�ss&&r
ri�ErrorWrapper.write�s$����Q��3��������!�rc�:�VPP4R#r)rd�flushr[s&r
rn�ErrorWrapper.flush�s�������rc�:�VFpVPV4K	R#r)ri)r@�seqrSs&& r
�
writelines�ErrorWrapper.writelines�s���D��J�J�t��rc��\^R4R#)rYz!errors.close() must not be calledNrZr[s&r
r\�ErrorWrapper.close�s
����6�7rrcN)rrrr	rBrirnrrr\rr^r_s@r
r4r4�s#����"����8�8rr4c�,a�]tRt^�toRtRtRtVtR#)r'c��WnR#r��writer)r@�wsgi_writers&&r
rB�WriteWrapper.__init__�rgrc�\�\\V4\J4VPV4R#r)rrrHryrjs&&r
�__call__�WriteWrapper.__call__�s����Q��5� �!����A�rrxN)rrrr	rBr}rr^r_s@r
r'r'�s����"��rr'c�,a�]tRt^�toRtRtRtVtR#)�PartialIteratorWrapperc��WnR#r�r8)r@�
wsgi_iterators&&r
rB�PartialIteratorWrapper.__init__�s��%�
rc�.�\VPR4#r)r6r8r[s&r
rV�PartialIteratorWrapper.__iter__s���t�}�}�d�3�3rr�N)rrrr	rBrVrr^r_s@r
r�r��s����&�4�4rr�c�>a�]tRtRtoRtRtRtRtRtRt	Vt
R#)	r6ic�L�Wn\V4VnRVnW nR#)FN)�original_iterator�iterr8�closed�check_start_response)r@r�r�s&&&r
rB�IteratorWrapper.__init__s!��!.���]�+��
����$8�!rc��V#rrr[s&r
rV�IteratorWrapper.__iter__s���rc��\VP'*R4\VP4p\	V4\
Jd\RRV:R24VPe\VPR4RVnV#)zIterator read after closedFz!Iterator yielded non-bytestring (�)NzjThe application returns and we started iterating over its body, but start_response has not yet been called)rr��nextr8rrHr�)r@rJs& r
�__next__�IteratorWrapper.__next__si���D�K�K��(�	*���������7�%���E�Q�H�I��$�$�0��D�-�-�|�
~�(,�D�%��rc��RVn\VPR4'dVPP4R#R#)Tr\N)r��hasattrr�r\r[s&r
r\�IteratorWrapper.closes3������4�)�)�7�3�3��"�"�(�(�*�4rc��VP'g \PPR4\	VPR4R#)z/Iterator garbage collected without being closedN)r��sys�stderrrirr[s&r
�__del__�IteratorWrapper.__del__ s2���{�{�{��J�J���A�
C�����=�	?r)r�r�r8r�N)rrrr	rBrVr�r\r�rr^r_s@r
r6r6s#����9��
�+�
?�?rr6c��\\V4\JR\V4:RV:R24R Fp\W9RV:24K	R!F!p\W9RV:R	VR
,:R24K#	RV9d\P!R
\
4VP
4FOpRV9dK\\W,4\JRV:R\W,4:RW,:R24KQ	\\VR,4\JRVR,:R24\VR,R"9RVR,,4\VR,4\VR,4VR,R#9d*\P!RVR,,\
4\VPR4'*;'gVR,PR4RVR,,4\VPR4'*;'gVR,PR4RVR,,4VPR4'd.\\VR,4^8�RVR,,4VPR4'g\RV9R4\VPR4R8gR4R#)$z&Environment is not of the right type: z (environment: r��REQUEST_METHOD�wsgi.versionr0r1z"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 '/'N)	r��SERVER_NAME�SERVER_PORTr�r0r1zwsgi.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)r7�keys& r
r2r2'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�
�&�#�-�	"�#rc�R�RF p\\W4RV:RV:24K"	R#)rGzwsgi.input (�) doesn't have the attribute N)rGrMrPrV�rr�)rA�attrs& r
r�r�hs%��=����
�)��4�
!�	"�>rc�R�RF p\\W4RV:RV:24K"	R#)rnz
wsgi.errors (r�N)rnrirrr�)rer�s& r
r�r�ns%��0�����*��D�
"�	#�1rc�T�\VR4pVPR^4^,p\\V4^8HRV,4\	V4p\V^d8�RV,4\V4^8gV^,R8wd%\
P!RV,\4R#R#)�StatusNz)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��
�!�	#�+rc
�@�\\V4\JRV:R\V4:24VEFjp\\V4\JRV:R\V4:24\\	V4^8H4Vwr#\VR4p\VR4p\VP
4R8gRV,4\RV9;'dR	V9R
V,4\\PV4RV,4\VPR4'*;'dVPR
4'*RV,4\PV4'gEK3\^RV:R\PV4P^4:R24EKm	R#)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�N)rrrQr�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�%rc�0�\VR4p\VPR^4^,4pRpVFDwrE\VR4pVP4R8XgK(W#9dR#\	^RV,4KF	W#9d\	^RV,4R#R#)r�Nr�zcontent-typezJContent-Type header found in a %s response, which must not return content.z,No Content-Type header found in headers (%s))��i0)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�#rc	�v�\VRJ;'g\V4\JRV:R\V4:24R#)Nz
exc_info (z) is not a tuple: )rrr�)r+s&r
r%r%�s0���H���7�7��X��%� 7��.6��X��G�Irc�P�\\V\\34'*R4R#)zwYou should not return a string as your application iterator, instead return a single-item list containing a bytestring.N)r�
isinstancerrHr�s&r
r5r5�s#���
�8�c�5�\�2�2�	E�Fr)r
�__all__�rer�r��compiler�r��Warningrrrrr3r4r'r�r6r2r�r�r"r#r$r%r5rrr
�<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