[ SEA-GHOST MINI SHELL]

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

#!/usr/bin/python
import os
import json
import socket

OUTPUT = {"data": []}

def get_heartbet_info():
    nodeslist = os.popen("cl_status listnodes").readlines()
    nodes = [node.rstrip() for node in nodeslist]
    nodes.remove(socket.gethostname())

    for node in nodes:
        linklist = os.popen("cl_status listhblinks {0}".format(node)).readlines()
        link = linklist[0].strip()
        OUTPUT["data"].append({"{#HBNODE}": node, "{#HBLINK}": link})

    return json.dumps(OUTPUT)

if __name__ == "__main__":
    print(get_heartbet_info())


SEA-GHOST - SHELL CODING BY SEA-GHOST