[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/cpanel_php_discovery.py

#!/usr/bin/env python
import json
import commands

PHP_MODULES = ["pdo", "mysql", "mysqli", "gd" ]
PHP_VERSIONS = []

SELECTOR_OUTPUT=commands.getoutput("selectorctl -l").split("\n")
for line in SELECTOR_OUTPUT:
  PHP_VERSIONS.append(line.split("\t")[0])

DICT_OUTPUT = {"data": []}
for php_version in PHP_VERSIONS:
  for php_module in PHP_MODULES:
    DICT_OUTPUT["data"].append({"{#PHPVERSION}": php_version, "{#PHPMODULE}": php_module})

JSON_OUTPUT = json.dumps(DICT_OUTPUT)
print JSON_OUTPUT

SEA-GHOST - SHELL CODING BY SEA-GHOST