Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/etc/openresty_config/utils/
Upload File :
Current File : //opt/nginxhttpd_/etc/openresty_config/utils/bad-ips.sh

#!/bin/bash

SOURCES="
https://raw.githubusercontent.com/stamparm/ipsum/master/levels/3.txt
"

export LC_ALL=C

#echo 'geo $remote_addr $map_badips {'
#echo 'default          0;'
echo $SOURCES | while read SOURCE ; do
  echo "############### BEGIN:$SOURCE"
  curl -sX GET -k -o - $SOURCE 2> /dev/null  | while read ip ; do
    echo "$ip  1;"
  done
  echo "############### END:$SOURCE"
done | grep -E '(^([0-9]+\.){3}[0-9]+  1;$)|^\#' | column -t
#echo '}';

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists