[ SEA-GHOST MINI SHELL]

Path : /proc/2/task/2/cwd/proc/3/task/3/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/task/2/cwd/proc/3/task/3/root/var/lib/zabbix/check_cpanel_mysql.py

#!/usr/bin/python

import MySQLdb as mdb
import sys
import warnings

warnings.filterwarnings('ignore')

# args that we pass to the script are defined as "MACRO" at zabbix level
user = sys.argv[1]
password = sys.argv[2]
db = sys.argv[3]

host = 'localhost'

try:
  con = mdb.connect(host, user, password, db)

  cur = con.cursor()
  cur.execute("DROP TABLE IF EXISTS test")
  cur.execute("CREATE TABLE test (id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(20))")
  cur.execute('INSERT INTO `test` (`id`,`name`) VALUES (NULL, "John")')
  cur.execute("SELECT * FROM test")
  cur.execute("DROP TABLE test;")

except mdb.Error, e:
  print 0
  sys.exit()

print 1

SEA-GHOST - SHELL CODING BY SEA-GHOST