[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/check_cpanel_cli_php.sh

#!/bin/bash

TEST_USER="internalmon"

PHP_VERSION=$1
PHP_MODULE=$2

PATH_TO_CHECK="/home/$TEST_USER/public_html/monitoring.page/check.php"
HOST=`hostname -f`

selectorctl --set-user-current=$PHP_VERSION --user=$TEST_USER 2> /dev/null

EXT_STATUS=$(/bin/su - $TEST_USER -c "php $PATH_TO_CHECK $PHP_MODULE" | awk -F ": " '{print $2}')

if [[ "$EXT_STATUS" == "1" ]];
then
    zabbix_sender -z zabbix-proxy01.au.syrahost.com -s "$HOST" -k "cpanel.cli_php.check["$PHP_VERSION", "$PHP_MODULE"]" -o 1
  else
    zabbix_sender -z zabbix-proxy01.au.syrahost.com -s "$HOST" -k "cpanel.cli_php.check["$PHP_VERSION", "$PHP_MODULE"]" -o 0
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST