[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/proc/3/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/proc/3/cwd/var/lib/zabbix/check.php

<?php

if ($_GET) {
  $module = $_GET['mod'];
} else {
  $module = $argv[1];
}


$test_user = 'internalmon'; 
$test_host = 'localhost';
$passwd = 'Yibow5juuQuau4i';
$test_db = "internalmon_test";

# pdo check
if ($module == "pdo") {
  try {
    $dbh = @new PDO("mysql:host=$test_host;dbname=$test_db", $test_user, $passwd);
    print "PDO: 1\n";
    $dbh = null;
  } catch (PDOException $e) {
    print "PDO: 0\n";
  }
}

# gd check
if ($module == "gd") {
  if(function_exists('imagetypes'))
    print "GD: 1\n";
  else
    print "GD: 0\n";
}

# mysql check
if ($module == "mysql") {
  $link = @mysql_connect($test_host, $test_user, $passwd);
  if (!$link) {
    print "Mysql: 0\n";
  } else {
    print "Mysql: 1\n";
    mysql_close($link);
  }
}

# mysqli check
if ($module == "mysqli") {
  $mysqli = @new mysqli($test_host, $test_user, $passwd, $test_db);
  if ($mysqli->connect_errno) {
    print "Mysqli: 0\n";
  } else {
    print "Mysqli: 1\n";
  }
}
?>

SEA-GHOST - SHELL CODING BY SEA-GHOST