Sh3ll



Directory :  /scripts2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : //scripts2/borrar_archivos_wp-virus.sh
#!/bin/bash

USERCP="$1"
USERHOME="/home/$USERCP"

if [ -z "$USERCP" ]; then
    echo "Uso: $0 usuario_cpanel"
    exit 1
fi

if [ ! -d "$USERHOME" ]; then
    echo "El home $USERHOME no existe"
    exit 1
fi

find "$USERHOME" \
-path "$USERHOME/public_html" -prune -o \
-type f \( \
-name ".htaccess" -o \
-name ".htaccess.VIRUS" -o \
-name "wp-blog-header.php" -o \
-name "wp-blog-header.php.VIRUS" -o \
-name "wp-cron.php" -o \
-name "wp-cron.php.VIRUS" \
\) -print -exec rm -f {} \;

Sh3LL