403Webshell
Server IP : 162.0.232.140  /  Your IP : 3.148.247.210
Web Server : LiteSpeed
System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : micrcvoy ( 740)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/usr/lib/python3.6/site-packages/ply/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/usr/lib/python3.6/site-packages/ply/__pycache__/ygen.cpython-36.pyc
3

r��W��@s:ddlZddlZdd�Zdd�Zdd�Zedkr6e�dS)	�NcCsht|�}d|}d|}x |D]\}}|j�j|�rPqWx |D]\}}|j�j|�r@Pq@W|d|fS)Nz
#--! %s-startz#--! %s-end�)�	enumerate�strip�
startswith�endswith)�lines�tagZsrclinesZ	start_tagZend_tagZstart_index�lineZ	end_index�r
�/usr/lib/python3.6/ygen.py�get_source_range
srcCsFg}d}d|}x0|D](}|j�j|�r0|}q|r|j|�qW|S)NTz#--! %s)rr�append)rrZfiltered_lines�includeZtag_textr	r
r
r�filter_sections
rcCs�tjjt�}tjtjj|d�tjj|d��ttjj|d�d��}|j�}WdQRXt	|d�\}}t	|d�\}}t	|d�\}}|||�}	t
|	d�}
t
|
d�}||||�<|
|||�<d	d
�|D�}ttjj|d�d��}|j|�WdQRXtd�dS)
Nzyacc.pyzyacc.py.bak�rZ
parsedebugZparseoptzparseopt-notrack�DEBUGZTRACKINGcSsg|]}|j�d�qS)�
)�rstrip)�.0r	r
r
r�
<listcomp>>szmain.<locals>.<listcomp>�wzUpdated yacc.py)
�os�path�dirname�__file__�shutilZcopy2�join�open�	readlinesrr�
writelines�print)r�frZparse_startZ	parse_endZparseopt_startZparseopt_endZparseopt_notrack_startZparseopt_notrack_endZ
orig_linesZparseopt_linesZparseopt_notrack_linesr
r
r�main's  

r"�__main__)Zos.pathrrrrr"�__name__r
r
r
r�<module>
s

Youez - 2016 - github.com/yon3zu
LinuXploit