[ SEA-GHOST MINI SHELL]

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

#!/usr/bin/env python

import sys
import urllib2
import xml.etree.ElementTree as etree
import socket

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

xml_location = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><EPP tld=\"" + tld + "\"><CheckDomain><domainNames>" + domain + "." + tld +"</domainNames></CheckDomain></EPP>"

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

try:
    response = urllib2.urlopen(req, None, 10)
    result = response.read()
    root = etree.fromstring(result)
    for child in root.findall('CheckDomainReply'):
        status = child.find('domainNamesOk').text
        if status:
            print('1')

    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