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/mod_lib.py
import os
import glob

files = glob.glob('/home2/haeyulhome/skhani/public_html/**/*.php', recursive=True)
for file in files:
    try:
        with open(file, 'r', encoding='utf-8', errors='ignore') as f:
            content = f.read()
        
        orig = content
        
        # define(abc, "true") -> define('abc', "true")
        import re
',", content)        content = re.sub(r'define\(\s*([a-zA-Z0-9_]+)\s*,', r"define('
        
        if content != orig:
            with open(file, 'w', encoding='utf-8') as f:
                f.write(content)
            print(f"Fixed defines in {file}")
    except Exception as e:
        print(f"Error in {file}: {e}")

Youez - 2016 - github.com/yon3zu
LinuXploit