| 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 : |
import re
with open('/home2/haeyulhome/skhani/public_html/lib/config.php', 'r', encoding='utf-8', errors='ignore') as f:
content = f.read()
# Add wrapper include and extract($_REQUEST)
if 'mysql_to_mysqli.php' not in content:
content = content.replace("<?", "<?\ninclude_once __DIR__ . '/mysql_to_mysqli.php';\nextract($_REQUEST);\nextract($_SERVER);\nextract($_FILES);\n", 1)
# Clean up define errors
content = content.replace('""__INCLUDE_CONFIG_PHP""', "'__INCLUDE_CONFIG_PHP'")
content = content.replace('__INCLUDE_CONFIG_PHP', "'__INCLUDE_CONFIG_PHP'")
content = content.replace("''__INCLUDE_CONFIG_PHP''", "'__INCLUDE_CONFIG_PHP'")
content = content.replace('__root_pass', "'__root_pass'")
with open('/home2/haeyulhome/skhani/public_html/lib/config.php', 'w', encoding='utf-8') as f:
f.write(content)