[ SEA-GHOST MINI SHELL]

Path : /proc/2/task/2/cwd/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/task/2/cwd/var/lib/zabbix/esxi_snapcheck.sh

#!/bin/bash

node=$1
folder=$2

timeout 10 ssh -q $node exit 2>/dev/null

if [ $? -ne 0 ]
then
  echo "-1"
  exit 1
else
  snapshotamt=$(timeout 10 ssh $node ls -l "\"$folder\"" 2>/dev/null | grep "0000" | awk '{print $9}' | grep -v "delta" | grep -v "ctk" | wc -l)
  echo $snapshotamt
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST