403Webshell
Server IP : 217.160.0.64  /  Your IP : 216.73.216.58
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67269618 ( 67269618)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/kunden/usr/lib/python3/dist-packages/breezy/transport/http/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/kunden/usr/lib/python3/dist-packages/breezy/transport/http/__pycache__/wsgi.cpython-313.pyc
�

p��g���v�SrSSKJr SSKJr SSKJrJr SSKJ	r	 S
Sjr
"SS	5r"S
S5rg)z�WSGI application for bzr HTTP smart server.

For more information about WSGI, see PEP 333:
    http://www.python.org/dev/peps/pep-0333/
�)�BytesIO�)�medium)�chroot�
get_transport)�local_path_to_urlc��[U5nU(a[SU-5nO[U5nU(a
SSKJn U"5 U(aSSKnUR
R
5 [Xq5n	[U	SU5n	U	$)z�Convenience function to construct a WSGI bzr smart server.

:param root: a local path that requests will be relative to.
:param prefix: See RelpathSetter.
:param path_var: See RelpathSetter.
z	readonly+r)�load_pluginsrN�)	rr�pluginr
�breezy.trace�trace�enable_default_logging�SmartWSGIApp�
RelpathSetter)
�root�prefix�path_var�readonlyr
�enable_logging�	local_url�base_transport�breezy�apps
          �</usr/lib/python3/dist-packages/breezy/transport/http/wsgi.py�make_apprsh��"�$�'�I��&�{�Y�'>�?��&�y�1���*��������+�+�-�
�~�
.�C�
��R��
*�C��J�c�(�\rSrSrSrSSjrSrSrg)r�>amWSGI middleware to set 'breezy.relpath' in the environ.

Different servers can invoke a SmartWSGIApp in different ways.  This
middleware allows an adminstrator to configure how to the SmartWSGIApp will
determine what path it should be serving for a given request for many common
situations.

For example, a request for "/some/prefix/repo/branch/.bzr/smart" received by
a typical Apache and mod_fastcgi configuration will set `REQUEST_URI` to
"/some/prefix/repo/branch/.bzr/smart".  A RelpathSetter with
prefix="/some/prefix/" and path_var="REQUEST_URI" will set that request's
'breezy.relpath' variable to "repo/branch".
c�(�XlX lX0lg)aConstructor.

:param app: WSGI app to wrap, e.g. a SmartWSGIApp instance.
:param path_var: the variable in the WSGI environ to calculate the
    'breezy.relpath' variable from.
:param prefix: a prefix to strip from the variable specified in
    path_var before setting 'breezy.relpath'.
N)rrr)�selfrrrs    r�__init__�RelpathSetter.__init__Ms������ �
rc��XRnSnURUR5(aURU5(dU"S/5 /$U[	UR5[	U5*US'URX5$)Nz/.bzr/smartz
404 Not Found�breezy.relpath)r�
startswithr�endswith�lenr)r!�environ�start_response�path�suffixs     r�__call__�RelpathSetter.__call__Zss���}�}�%����������,�,����v�1F�1F��?�B�/��I�$(��T�[�[�)9�S��[�L�$I�� �!��x�x��0�0r)rrrN)r�REQUEST_URI)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r"r-�__static_attributes__�rrrr>s���!�1rrc�.�\rSrSrSrSSjrSrSrSrg)	r�dz,A WSGI application for the bzr smart server.c���[R"U5UlURR5 [	URR55UlX lg)aConstructor.

:param backing_transport: a transport.  Requests will be processed
    relative to this transport.
:param root_client_path: the client path that maps to the root of
    backing_transport.  This is used to interpret relpaths received from
    the client.
N)r�ChrootServer�
chroot_server�start_serverr�get_url�backing_transport�root_client_path)r!r>r?s   rr"�SmartWSGIApp.__init__gsL��$�0�0�1B�C������'�'�)�!.�t�/A�/A�/I�/I�/K�!L��� 0�rc��USS:waU"SS/5 /$USnURS5(dSU-nURS5(dUS-
nURUR5(aSnU[UR5SnOLURRU5(aSUR[U5S-nSnOURnUnURS5(aUS	SnURS5(a[	U5eUR
R
U5n[5n[US
5nUSRU5n	URXgRX�5n
U
R5S:waS
nOUR5nS/nURS[[U5545 U"SU5 U/$)zWSGI application callable.�REQUEST_METHOD�POSTz405 Method not allowed)�AllowrCr%�/N�.��CONTENT_LENGTHz
wsgi.inputrserrorincomplete request
)zContent-typezapplication/octet-streamzContent-Lengthz200 OK)r&r'r?r(�AssertionErrorr>�cloner�int�read�make_request�write�next_read_size�getvalue�append�str)
r!r)r*�relpath�adjusted_rcp�adjusted_relpath�	transport�
out_buffer�request_data_length�request_data_bytes�smart_protocol_request�
response_data�headerss
             rr-�SmartWSGIApp.__call__s����#�$��.��3�6G�5H�I��I��*�+���!�!�#�&�&��G�m�G�����$�$��s�N�G�
���d�3�3�4�4�
 �L�&�s�4�+@�+@�'A�'C�D��
�
"�
"�
-�
-�g�
6�
6���!6�!6�s�7�|�~�!F�F�L�"���0�0�L�&���&�&�s�+�+�/���3���&�&�s�+�+� �!1�2�2��*�*�0�0�1A�B�	��Y�
�!�'�*:�";�<��$�\�2�7�7�8K�L��!%�!2�!2��'�'�);�"
��"�0�0�2�a�7�
=�M�&�/�/�1�M�?�@�����(�#�c�-�.@�*A�B�C��x��)���rc�~�[R"U5upVU"XX@R5nURU5 U$)N)r�_get_protocol_factory_for_bytesr>�accept_bytes)r!rV�
write_func�
request_bytes�rcp�protocol_factory�unused_bytes�server_protocols        rrM�SmartWSGIApp.make_request�sF��)/�)O�)O��*
�&��+��3�(>�(>�
��	�$�$�\�2��r)r>r;r?N)rE)	r0r1r2r3r4r"r-rMr5r6rrrrds��6�1�08�trrN)r/TTT)
r4�ior�	bzr.smartrrVrr�urlutilsrrrrr6rr�<module>rksC��"���.�)��
���
�@#1�#1�L]�]r

Youez - 2016 - github.com/yon3zu
LinuXploit