[ SEA-GHOST MINI SHELL]

Path : /proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/cwd/proc/2/cwd/proc/2/cwd/proc/2/task/2/cwd/var/lib/zabbix/connectivity_check.sh

#!/bin/bash

export DBHOST=$1
export DBPORT=$2
export DBTIMEOUT=14

if [[ $2 -eq 3306 ]]
  then
    if  which php > /dev/null
    then
	php -r ' error_reporting(E_ERROR); $con = mysqli_init(); mysqli_options($con, MYSQLI_OPT_CONNECT_TIMEOUT, $_SERVER["DBTIMEOUT"]); if(mysqli_real_connect($con, $_SERVER["DBHOST"], "connectivity", "Z5vHgKms2p[>HlKQCA|z5fW", "", $_SERVER["DBPORT"])){echo("1"); mysqli_close($con);} else {die("0");}'
    else
	perl -e ' use DBI; my $dbh; if($dbh = DBI->connect("DBI:mysql:database=test;host=$ENV{DBHOST};port=$ENV{DBPORT};mysql_connect_timeout=$ENV{DBTIMEOUT}","connectivity", "Z5vHgKms2p[>HlKQCA|z5fW",{RaiseError => 0, PrintError => 0})){print "1"; $dbh->disconnect()} else {print "0"}'	
    fi
else
  nc -z -v -w12 $1 $2 >/dev/null 2>&1
  res=$?
  if [  "$res" != 0 ]; then
    echo  "0"
  else
    echo "1"
  fi
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST