[ SEA-GHOST MINI SHELL]

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

#!/bin/bash

ldapserver=`hostname`
countfile=/tmp/maildomains

if [ -s $countfile ] && [ `find $countfile -mmin -360` ]
then
  count=`cat $countfile`
else
  count=$(ldapsearch -H ldap://${ldapserver}/ -D "cn=admin,dc=au,dc=syrahost,dc=com" -w 66ctGEtqpQeyKcK3EVcpsBQBBuf2j8j2WHAf -b ou=domains,dc=au,dc=syrahost,dc=com \(objectclass=mailDomain\)|grep 'dn:'|wc -l)
  echo $count > $countfile
fi
echo "$count"

SEA-GHOST - SHELL CODING BY SEA-GHOST