[ SEA-GHOST MINI SHELL]

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

#!/bin/bash

serviceName="named_checkzone"

while read -r line; do
  fqdn=$(echo $line | sed "s/.*\///" | sed "s/\.db$//")
  temp=$(named-checkzone $fqdn $line)
  state=$(echo $?)
  if [ $state != 0 ]; then
    data="$data$fqdn, "
  fi
done <<< "$(find /var/named/ -maxdepth 1 -type f -name "*.db")"

if [ ! -z "$data" ]; then
  echo "ERROR $serviceName - Zones not loaded due to errors: $data" >/var/lib/zabbix/named.data
else
  echo "OK $serviceName - All zones loaded" >/var/lib/zabbix/named.data
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST