Skip to content

pbssubhash/AbuseIPDBChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Abuse IP DB Checker

This is a Python Script to query the ABUSE IP DB with an IP or a list of IPs.

Usage

Getting started

git clone https://github.com/pbssubhash/AbuseIPDBChecker # need git for getting this done, alternatively download a zip!!
cd AbuseIPDBChecker
python AbuseIPDBChecker.py # will print the help
pip install requests 

Get an API Key

  1. Go to https://www.abuseipdb.com/ and sign up for a new account.
  2. Confirm your email and navigate to https://www.abuseipdb.com/account/api and Create a new API Key.
  3. Replace the key inside AbuseIPDBChecker.py on line 5, KEY=

Let's get rolling!

From a File:

Use the parameter --file to specify the location of the file with the IPs. Format: 1 IP per line. Check example_ip.txt

python AbuseIPDBChecker.py --format=csv --file=ips.txt # output in CSV format
python AbuseIPDBChecker.py --format=readable --file=ips.txt # output in readable format
python AbuseIPDBChecker.py --format=json --file=ips.txt # output in json format

To check a single IP:

Use the parameter --ip to specify a single IP.

python AbuseIPDBChecker.py --format=csv --ip=1.1.1.1 # output in CSV format
python AbuseIPDBChecker.py --format=readable --ip=1.1.1.1 # output in readable format
python AbuseIPDBChecker.py --format=json --ip=1.1.1.1 # output in json format

Need Help?

Open an issue if you require any help or any new feature (Pull request is much appreciated too!)

About

A simple Python Wrapper for Abuse IP DB v2 API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages