AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
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 :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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

Anon7 - 2022
AnonSec Team