[ 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/ipamapi.sh

#!/bin/bash

reqaddr=$(curl -X GET https://ipam.ds.network/api/$1/addresses/search/$3 --header "token: $2" 2>/dev/null)
reqsubn=$(curl -X GET https://ipam.ds.network/api/$1/subnets/overlapping/$3 --header "token: $2" 2>/dev/null)
respaddr_code=$(echo $reqaddr| jq .code)
respaddr_res=$(echo $reqaddr| jq .success)
respsubn_code=$(echo $reqsubn | jq .code)
respsubn_res=$(echo $reqsubn | jq --raw-output '.data[]."Routed to"' | head -1)

if [[ $? -eq 0 ]]; then
  if [[ $respaddr_code -eq 200 || $respsubn_code -eq 200  ]]; then
     if [[ "$respaddr_res" == "true" || "$respsubn_res" != "null" ]]; then
       echo "1"
     else
       echo "0"
     fi
  else
     echo "3"
  fi
else
  echo "3"
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST