[ SEA-GHOST MINI SHELL]

Path : /proc/2/cwd/proc/self/root/proc/self/root/proc/2/task/2/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/cwd/proc/self/root/proc/self/root/proc/2/task/2/cwd/var/lib/zabbix/bgp_discovery.sh

#!/bin/bash

host=$1
community=$2

first=1
IFS=$'\n'
list=$(snmpwalk -v 2c -c $2 $1 1.3.6.1.2.1.15.3.1.2 | awk -F "." '{print $11"."$12"."$13"."$14}'| awk '{print $1}')

echo -ne "{ \"data\" : [\n";

for LINE in $list
{
        if [ $first == 0 ]; then echo -ne ",\n";
        fi
        first=0

        echo -ne "{"
        echo -ne " \"{#IP}\" : \"$LINE\" ";
        echo -ne " }"
}

echo -ne " ]";
echo -ne " }\n";

SEA-GHOST - SHELL CODING BY SEA-GHOST