403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/mercurial/hgweb/__pycache__/common.cpython-313.pyc
�

6�h�%��6�SSKJr SSKrSSKrSSKrSSKrSSKrSSKJr SSK	J
r
JrJrJ
r
Jr \RrSrSrSrS	rS
rSrSrS
rSrSrSr\R6rSrSr\/r"SS\5r "SS5r!Sr"S Sjr#Sr$Sr%Sr&Sr'S!Sjr(Sr)Sr*g)"�)�annotationsN�)�_)�encoding�pycompat�scmutil�	templater�util����i0i�i�i�i�i�i�i�i�c��[URRS55(abURnUR	SS5nUR
nU(a[
X$U5(ag[S5U-nURU5 g)Ns
access-hiddensexperimentalsserver.allow-hidden-accessTsEignoring request to access hidden changeset by unauthorized user: %r
F)	�bool�qsparams�get�ui�
configlist�
remoteuser�ismemberr�warn)�repo�reqr�allow�user�msgs      �8/usr/lib/python3/dist-packages/mercurial/hgweb/common.py�hashiddenaccessr+s����C�L�L���-�.�/�/��W�W���
�
�o�/L�M���~�~���X�b��.�.���/���	�
�
�G�G�C�L��c��URnURSS5nU(a<U(a%[URRX45(a[[S5eURSS5nU(a5[URRX55(d[[S5eUS:Xa!UR(d[[S5eUS:XdUcgUS:Xa#URS	:waS
n[[U5eO"URS:waSn[[U5eURSS
5(a URS:wa[[S5eURSS5nU(a<U(a%[URRX75(a[[S5eURSS5nU(a%[URRX85(d[[S5eg)z�Check permission for operation based on request data (including
authentication info). Return if op allowed, else raise an ErrorResponse
exception.�webs	deny_readsread not authorizeds
allow_readspullspull not authorizedNsuploadsPUTsupload requires PUT requestsPOSTspush requires POST requestspush_sslshttpssssl requireds	deny_pushspush not authorizeds
allow-push)
rrrrr�
ErrorResponse�HTTP_UNAUTHORIZED�	allowpull�method�HTTP_METHOD_NOT_ALLOWED�
configbool�	urlscheme�HTTP_FORBIDDEN)	�hgwebr�opr�	deny_read�
allow_readr�denyrs	         r�
checkauthzr-Es���
�>�>�D�� � ���6�I��$�(�5�:�:�=�=�$�"J�"J��-�/E�F�F��!�!�&�-�8�J��8�E�J�J�M�M�4�D�D��-�/E�F�F�	�W�}�U�_�_��-�/E�F�F�	�w��"�*��
�Y���:�:���0�C�� 7��=�=� �

���w�	�+���3�S�9�9�
�����,�,����(�1J��N�O�<�<����F�L�1�D��T�X�e�j�j�m�m�T�@�@��-�/E�F�F����V�]�3�E��h�u�z�z�}�}�d�:�:��-�/E�F�F�;rc��\rSrSrSSjrSrg)r �{Nc��Uc[U5n[RU[R"U55 XlUc/nX0lX lg�N)�_statusmessage�	Exception�__init__r�sysstr�code�headers�message)�selfr6r8r7s    rr4�ErrorResponse.__init__|sC���?�$�T�*�G����4�����!9�:��	��?��G����r)r6r7r8)NN)�__name__�
__module__�__qualname__�__firstlineno__r4�__static_attributes__�rrr r {s��rr c�.�\rSrSrSrSrSSjrSrSrg)	�continuereader�aFile object wrapper to handle HTTP 100-continue.

This is used by servers so they automatically handle Expect: 100-continue
request headers. On first read of the request body, the 100 Continue
response is sent. This should trigger the client into actually sending
the request body.
c�*�XlX lSUlg)NF)�f�_write�	continued)r9rE�writes   rr4�continuereader.__init__�s��������rc��UR(dSUlURS5 URRU5$)NTsHTTP/1.1 100 Continue

)rGrFrE�read)r9�amts  rrK�continuereader.read�s0���~�~�!�D�N��K�K�8�9��v�v�{�{�3��rc�F�US;a[URU5$[e)N)sclosesreadlines	readliness__iter__)�getattrrE�AttributeError)r9�attrs  r�__getattr__�continuereader.__getattr__�s"���E�E��4�6�6�4�(�(��r)rFrGrEN)���)	r;r<r=r>�__doc__r4rKrRr?r@rrrBrB�s����
 �rrBc��[RRn[R"URUS5S5$)N)�Errorz
Unknown errorr)�
httpserver�basehttprequesthandler�	responsesr�bytesurlr)r6rZs  rr2r2�s5���1�1�;�;�I����Y�]�]�4�1K�L�Q�O�P�Prc�2�SX=(d [U54-$)Ns%d %s)r2)r6r8s  r�
statusmessager]�s���t�<��t�(<�=�=�=rc���[RRX5n[RRU5(a[R"U5$[R"U5$)z%stat fn if it exists, spath otherwise)�os�path�join�exists�stat)�spath�fn�cl_paths   r�get_statrg�sD���g�g�l�l�5�%�G�	�w�w�~�~�g����w�w�w����w�w�u�~�rc�<�[US5[R$)Ns
00changelog.i)rgrc�ST_MTIME)rds r�	get_mtimerj�s���E�+�,�T�]�]�;�;rc��URS5nUHenUS[R[R4;d=[RU;d)[R
cMO[R
U;dMe g g)z9Determine if a path is safe to use for filesystem access.�/rFT)�splitr�oscurdir�ospardir�ossep�osaltsep)r`�parts�parts   r�
ispathsafert�sc���J�J�t��E����S�(�+�+�X�->�->�?�?��~�~��%�� � �,��!�!�T�)���rc��[U5(dgU(dAU=(d [R"5nUb [RRUS5n[RR
"UR
S56n[R"[R"[R"U55S=(d S5n[RRX5n[R"U5 [R"U5nXcR2S'UR5U5 U$![a [!["S5e[$a`n	U	R&[&R(:Xa[![*5e[!["[,R."U	R055eSn	A	ff=f)areturn a file inside directory with guessed Content-Type header

fname always uses '/' as directory separator and isn't allowed to
contain unusual path components.
Content-Type is guessed using the mimetypes module.
Return an empty string if fname is illegal or file not found.

Nsstaticrlrz
text/plainsillegal filenamesContent-Type)rtr	�templatedirr_r`rarmr�sysbytes�	mimetypes�
guess_type�fsdecodercr
�readfile�	TypeErrorr �HTTP_SERVER_ERROR�OSError�errno�ENOENT�HTTP_NOT_FOUNDr�
strtolocal�strerrorr7�setbodybytes)
�templatepath�	directory�fname�res�tp�fpath�ctr`�data�errs
          r�
staticfiler��sH���e�����
�
4�Y�2�2�4��
�>������R��3�I��G�G�L�L�%�+�+�d�+�,�E�	�	�	����X�.�.�u�5�6�q�9�J�]�
�B��7�7�<�<�	�)�D��
����
��}�}�T�"��$&�K�K�� ����T���J���D��-�/B�C�C����9�9����$���/�/��!�8�#6�#6�s�|�|�#D��
��	�s�0,D=�=#G� AF;�;Gc#�# �U(aU(aX-U-nX-U-S-nOSnSnUv� US-
nU(aX :�aSU-
nSnM7f)z5count parity of horizontal stripes for easier reading�rr@)�stripecount�offset�count�paritys    r�	paritygenr��s_����v��%��4���&�;�6��:������
���
��
���5�/���Z�F��E��s�AAc��U"SS5=(d8 U"SS5=(d( [RRS5=(d S$)z�Return repo contact information or empty string.

web.contact is the primary source, but if that is not set, try
ui.username or $EMAIL as a fallback to display something useful.
rscontactsuisusernamesEMAILr)r�environr)�configs r�get_contactr��sE��	�v�z�"�	��%��%�	�������)�	��	rc���SSKnURSSSS9nSnU(aUSU;aO[R"UR	5R
5R
S5nURSU5nX#4$)	aObtain the Content-Security-Policy header and nonce value.

Returns a 2-tuple of the CSP header value and the nonce value.

First value is ``None`` if CSP isn't enabled. Second value is ``None``
if CSP isn't enabled or if the CSP header doesn't need a nonce.
rNrscspF)�	untrusteds%nonce%�=)�uuidr��base64�urlsafe_b64encode�uuid4�bytes�rstrip�replace)rr��csp�nonces    r�	cspvaluesr�
sk��.�
�)�)�F�F�e�)�
4�C��E�
�z�S� ��(�(�����);�);�<�C�C�D�I���k�k�*�e�,���:�rr1)r)+�
__future__rr�rrxr_rc�i18nr�rrrr	r
rX�HTTP_OK�HTTP_CREATED�HTTP_NOT_MODIFIED�HTTP_BAD_REQUESTr!r'r�r$�HTTP_NOT_ACCEPTABLE�HTTP_UNSUPPORTED_MEDIA_TYPEr}rrr-�	permhooksr3r rBr2r]rgrjrtr�r�r�r�r@rr�<module>r�s���#�
���	������_�_�
�

������������������!���������4)G�f�L�	�	�I�	���4Q�
>��<��%�P�"�"r

Youez - 2016 - github.com/yon3zu
LinuXploit