403Webshell
Server IP : 39.108.156.168  /  Your IP : 216.73.216.104
Web Server : nginx/1.24.0
System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/aegis/PythonLoader/third_party/crossplane/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyc
�
rӧ^c@s�ddlZddlZddlZddlmZdZiZejd�Zd�Z	d	�Z
d
�Zd�Zde
e
d
�Zdde
e
d�Zd�ZdS(i����Ni(tPY2t{t}t;s(\\x[0-9a-f]{2}|\\[0-7]{1,3})ccs�d\}}xm|D]e}|dks5||dkrJ||7}|Vqn|dkr^|Vn|dkrr|Vn|}qW|dkr�|VndS(Nts\s${t$(RR(s\R(s\R((tstringtprevtchar((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyt_escape
s


cCs�|dkrtSt|�}t|�}|j�s@|d
krDtSt}xh|D]`}|j�so|dkrstS||r�dndkr�tS||r�dndkrQ|}qQqQW|dkp�|S(
NRRRRt"t's${s\R(RRRR
Rs${(RRR
R(s\R(tTrueR	tnexttisspacetFalse(RtcharsRt	expanding((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyt
_needs_quotess
cCs|jd�jd�S(Nis
string-escape(tgrouptdecode(tmatch((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyt_replace_escape_sequences6scCs�t|�s|Str�t|t�r7tj|d�n|}tj|d�}t|�jdd�j	d�}t
jt|�}t|d�}nt|�jdd�}|S(Nsutf-8sraw-unicode-escapes\\s\tu(
RRt
isinstancetunicodetcodecstencodeRtreprtreplacetlstriptESCAPE_SEQUENCES_REtsubR(targ((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyt_enquote:s'!ics��rdnd��d}|rM|d7}|d7}|d7}|d7}n����fd��d}�||d	d	�}||S(
Ns	t Rs:# This config was built from JSON using NGINX crossplane.
s5# If you encounter any bugs please report them here:
s0# https://github.com/nginxinc/crossplane/issues
s
cs��|}x�|D]�}t|d�}|jdd�}|dkri||kri|d|d7}qn|dkr�d|d}n�|tkr�t|}	|	|����}n�g|dD]}
t|
�^q�}|dkr�d	d
j|�d}n&|r|d
d
j|�}n|}|jd�dkrE|d
7}n9|d7}�||d|d|�}|d|d7}||r�dnd||7}|}qW|S(Nt	directivetlineit#s #tcommenttargstifsif (R#t)tblockRs {is
RR(R"tgettEXTERNAL_BUILDERStjointNone(toutputR+tdeptht	last_linetmargintstmtR$R%tbuilttexternal_builderR!R((t_build_blocktindenttpaddingttabs(s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyR7Ts4


#


i((tpayloadR8R:theadertheadtbody((R7R8R9R:s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pytbuildJs



%c	Cs|dkrtj�}nx�|dD]�}|d}tjj|�s`tjj||�}ntjj|�}tjj|�s�tj|�n|d}t	|d|d|d|�}	|	j
�d}	tj|dd	d
��}
|
j
|	�WdQXq&WdS(s�
    Uses a full nginx config payload (output of crossplane.parse) to build
    config files, then writes those files to disk.
    tconfigtfiletparsedR8R:R<s
twtencodingsutf-8N(R/tostgetcwdtpathtisabsR.tdirnametexiststmakedirsR?trstripRtopentwrite(R;RIR8R:R<R@RGtdirpathRBR0tfp((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pytbuild_files~s

cCsx|D]}|t|<qWdS(N(R-(tbuildert
directivesR$((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pytregister_external_builder�s
(RRR(RREtretcompatRt
DELIMITERSR-tcompileRR	RRR"RR?R/RQRT(((s?/usr/local/aegis/PythonLoader/third_party/crossplane/builder.pyt<module>s				4

Youez - 2016 - github.com/yon3zu
LinuXploit