Mini Shell

Direktori : /proc/self/root/opt/sharedrads/oldrads/extras/
Upload File :
Current File : //proc/self/root/opt/sharedrads/oldrads/extras/wp_scanner.sh

#!/bin/bash
SECURE=0
#wp-content/plugins/akismet/readme.txt
INSECURE=0
DATA=$(locate --regex  'wp-includes/version.php')
OLD_IFS=$IFS
IFS=$'\n'
#echo "$DATA"
for readme in $DATA;
do
#       echo $readme
        if fgrep -c "wp_version = '3.1';" $readme &>/dev/null;
        then
                SECURE=$(($SECURE+1))

        else
                INSECURE=$(($INSECURE+1))
                echo "$readme" | awk -F/ '{print $3}'
        fi
done | sort | uniq

IFS=$OLD_IFS
if [ ! -z $1 ];
then
        echo SECURE: $SECURE
        echo INSECURE: $INSECURE
fi

Zerion Mini Shell 1.0