Kerala Cyber Warriors
KCW Uploader V1.1

Path : /proc/thread-self/root/etc/cpguard/scripts/
File Upload :
Current File : //proc/thread-self/root/etc/cpguard/scripts/report_files.sh

#!/bin/bash

#Main
red='\e[0;31m'
green='\e[0;32m'
blue='\e[4;34m'
NC='\e[0m'


if [ -f /usr/local/cpanel/cpsrvd ]; then
        PHPCMD="/usr/local/cpanel/3rdparty/bin/php"
        PATHPREFIX="/usr/local/cpanel/whostmgr/docroot/cgi/cpguard"
elif [ -f /usr/local/directadmin/directadmin ]; then
        PHPCMD="/usr/local/bin/cpgphp -nc/usr/local/directadmin/plugins/cpguard/php.ini/usr/local/bin/cpgphp -nc/usr/local/directadmin/plugins/cpguard/php.ini"
        PATHPREFIX="/usr/local/directadmin/plugins/cpguard/cpguard"
else
        echo -ne "\r${red}You need to install cPanel or DirectAdmin on your server to use cPGuard ${NC}"
        echo -ne '\n'
        exit
fi

if [ -z "$1" ]; then
        echo -ne "\r${red} Invalid Syntax...Allowed syntax is ${NC} \n"
        echo -ne "\r${blue} /etc/cpguard/scripts/report.sh <virus or false> <path>  ${NC} \n"
elif [ $1 == "virus" ]; then 
	echo "virus"
	 $PHPCMD $PATHPREFIX/scripts/submit_file.php virus $2
elif [ $1 = "false" ]; then 
	echo "false"
	 $PHPCMD $PATHPREFIX/scripts/submit_file.php false $2
else
	echo -ne "\r${red} Invalid Syntax...Allowed syntax is ${NC} \n"
	echo -ne "\r${blue} /etc/cpguard/scripts/report.sh <virus or false> <path>  ${NC} \n"
fi

-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ