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.
Dependencies:
- jq tool to handle JSON files
Install it from here
- 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!