Kerala Cyber
Warriors
KCW Uploader V1.1
#!/bin/bash
mkdir /usr/local/src/cpg > /dev/null 2>&1
cd /usr/local/src/cpg > /dev/null 2>&1
if [ -f /usr/local/cpanel/3rdparty/bin/php ]; then
CPPHPSUBVER=`/usr/local/cpanel/3rdparty/bin/php -v | head -1 | awk -F" " {'print $2'} | awk -F"." {'print $1'}`
else
CPPHPSUBVER=`/opt/cpguard/cpg-php-fpm/bin/php -v | head -1 | awk -F" " {'print $2'} | awk -F"." {'print $1'}`
fi
if [ $CPPHPSUBVER -eq 8 ]; then
wget https://get-cpg.nyc3.cdn.digitaloceanspaces.com/latest/cpguard-client.tar.gz > /dev/null 2>&1
else
wget https://get-cpg.nyc3.cdn.digitaloceanspaces.com/latest/clent72/cpguard-client.tar.gz > /dev/null 2>&1
fi
tar -xvzf cpguard-client.tar.gz > /dev/null 2>&1
mkdir /usr/local/cpanel/base/frontend/paper_lantern/cpguard > /dev/null 2>&1
mkdir /usr/local/cpanel/base/frontend/jupiter/cpguard > /dev/null 2>&1
rsync -avz cpguard-client/ /usr/local/cpanel/base/frontend/paper_lantern/cpguard/ > /dev/null 2>&1
rsync -avz cpguard-client/ /usr/local/cpanel/base/frontend/jupiter/cpguard/ > /dev/null 2>&1
mkdir /usr/local/cpanel/whostmgr/cgi/cpguard > /dev/null 2>&1
cp -p cpguard-client/admin_plugin/index.php /usr/local/cpanel/whostmgr/cgi/cpguard/ > /dev/null 2>&1
rm -rf /usr/local/src/cpg > /dev/null 2>&1
-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ