[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/rblscan_external.sh

#!/bin/bash

ADDRESS=$1
dnsbl=$2

# Verifies address is correct format and length
if [[ $ADDRESS =~ ([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}) ]] ; then
  :
else
  echo ""
  echo "Please supply a valid address"
        echo ""
        echo "Usage: rblscan [ip address] <subnet in CIDR>" >&2
        echo ""

  exit 1
fi

# Creates needed variables
BACKADDRESS=$(echo $ADDRESS | sed -r 's/([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})/\4.\3.\2.\1/')

# Runs the check against the list of RBLs then prints a result if it is listed
function defaultscan {
  if [[ $(dig  +short ${BACKADDRESS}.$dnsbl.) =~ 127.0.0.([2-9]|[1-4][0-9]|50) ]] ; then
      echo "$ADDRESS listed in $dnsbl"
  fi
}

defaultscan

exit

SEA-GHOST - SHELL CODING BY SEA-GHOST