/dontabuseme

Bash script for blocking offensive attacks using AbuselPDB API and iptables.

Primary LanguageShell

DontAbuseMe 😈

Authors: @medmac01 @helooom

Credits: @hichammoad

Twitter: https://twitter.com/medmac01

DontAbuseMe is a simple Bash script for blocking offensive attacks using AbuselPDB API , and it's capable of blocking suspecious attacks from their IPs using firewall rules.

image

Dependencies:

  1. jq tool to handle JSON files

Install it from here

  1. Curl

For Linux

sudo apt install curl

For macOS

brew install curl

Pre-installation:

First, you need to sign up in AbuselPDB to get a free API Key.

After you get your free API Key , you need to put in the config file.

Send report to mail feature requires ssmtp server configured and sendmail installed in your machine.

Usage:

git clone https://github.com/medmac01/dontabuseme.git
cd dontabuseme
bash script.sh

-p [IPAddress] : scans an IPAddress using the API

Happy surfing!