[ SEA-GHOST MINI SHELL]

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

#!/usr/bin/env python

import sys
import urllib2
import xml.etree.ElementTree as etree
import time
import datetime

url = "http://" + sys.argv[1]
domain = sys.argv[2]

xml_location = "<?xml version=\"1.0\"?><EPP tld=\"" + domain + "\"><InfoDomain><domainName>" + domain + "</domainName><password/><extension><ExternalResponse/></extension></InfoDomain></EPP>"

req = urllib2.Request(
    url,
    data=xml_location,
    headers={'Content-type': 'text/xml'}
)

myArray=[]

try:
    response = urllib2.urlopen(req, None, 10)
    result = response.read()
    root = etree.fromstring(result)
    for item in root:
       if 'InfoDomainReply' in item.tag:
          for child in item:
              if 'expiryDate' in child.tag:
                 value = time.mktime(datetime.datetime.strptime(child.text, "%Y-%m-%d").timetuple())
                 print value

    for error in root.findall('Error'):
        error_text = error.find('errorReason').text
        if error_text:
            print('2')
except urllib2.HTTPError, e:
    print('3')
except urllib2.URLError, e:
    print('4')
except socket.timeout:
    print(5)

SEA-GHOST - SHELL CODING BY SEA-GHOST