| 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 os, subprocess, time
backup_dir = "/root/malware_backup_20260723"
os.makedirs(backup_dir, exist_ok=True)
targets = [
"/home2/newspike",
"/home2/knsign",
"/home2/ulsanih",
"/home2/corea-market",
"/home2/rsc",
"/home2/sklo2",
"/home2/cfbt",
"/home2/coexist",
"/home2/gdm",
"/home2/nanunbom",
"/home2/pixelft"
]
print("=== 1단계: 서버 웹사이트 사전 압축 백업 시작 ===")
for t in targets:
if os.path.exists(t):
name = os.path.basename(t)
tar_path = os.path.join(backup_dir, f"{name}.tar.gz")
print(f"[{name}] 백업 생성 중: {tar_path}...")
res = subprocess.run(f"tar -czf {tar_path} -C {os.path.dirname(t)} {name}", shell=True, capture_output=True, text=True)
if res.returncode == 0:
size_mb = os.path.getsize(tar_path) / (1024 * 1024)
print(f" -> 완료! 크기: {size_mb:.2f} MB")
else:
print(f" -> 백업 오류: {res.stderr}")
print("=== 백업 완료 ===")