[ SEA-GHOST MINI SHELL]
#!/bin/bash
domain=$1
info=$2
if [ $info == "resp_time" ]; then
resp_time=`\time -f %e ldapsearch -h $domain -b "dc=au,dc=syrahost,dc=com" -D "uid=omduser,domainName=admin.au.syrahost.com,ou=domains,dc=au,dc=syrahost,dc=com" -w "ba8UaMGcEtCF7hC7aNPjYAh4" -p 389 -s sub cn=omduser 1>/dev/null`
echo $resp_time
elif [ $info == "login" ]; then
accountStatus=`ldapsearch -h $domain -b "dc=au,dc=syrahost,dc=com" -D "uid=omduser,domainName=admin.au.syrahost.com,ou=domains,dc=au,dc=syrahost,dc=com" -w "ba8UaMGcEtCF7hC7aNPjYAh4" -p 389 -s sub cn=omduser | grep accountStatus | awk '{print $2}'`
echo $accountStatus
fi
SEA-GHOST - SHELL CODING BY SEA-GHOST