[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/unmounting_points.bash

#!/bin/bash

FOLDER="/mnt/"

PrintMessage(){
  MSG="$*"
  echo ""${MSG}""
}

RunningCommand(){
  CMD="$*"
  ERR_MSG=$(${CMD} 2>&1)
  EXIT_CODE="$?"

  if [ ${EXIT_CODE} = 0 ]
  then
    echo "0"
  else
    echo "${ERR_MSG}"
  fi

}


if [ -d ${FOLDER} ]
then
  CMD=$(ls -1 ${FOLDER} 2>/dev/null | egrep -wv '^.|^..')
  if [ $? = 0 ] ; then
    echo "0"
  else
    echo "1"
  fi
else
  PrintMessage "0"
  exit 1;
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST