Skip to content

Parses the IP addresses contained in a file and returns a threat report using the AbuseIPdb.com API

License

Notifications You must be signed in to change notification settings

louigigr/AbuseIP-db-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Forked from https://github.com/mikebanks/AbuseIPdbSCAN

AbuseIP DB Scanner

!!!!!----NO LONGER WORKS - API HAS CHANGED----!!!!!

This is a python3 script that will parse any text file containg IP addresses and return relevant threat information using the AbuseIPDB API.

New Releases

Visit the Releases page to download the python version or the windows binary version of the script.

What's New!

  • Save API Key to a file
  • Added -d or --days switch to keep generic script as a complete CLI solution which might be better for automation
  • Retrieve Reports by specifying number of days. If no number of days is specified the default value of 30 is used

Requirements (Setup) and Usage

Setup

  • Python3 (2.7 may have errors)
  • Requests
pip3 install Requests
  • Requests[security]
pip3 install requests[security]

Usage:

In order to use the script you will need an API key. The API key is stored in a file my.api in the same directory as the script. In order for the script to work make sure you edit the file my.api and enter your API Key. API key information can be found here: (https://www.abuseipdb.com/api.html)

To use type:

python3 abuseipdb.py -f file_to_parse.txt

The options are as follows:

-t      outputs items in tab seperated values (Default)

-c      outputs items in comma seperated values

Specify the number of days you wish to search and display alerts for. Accepted range is 1 to 365.

Setup and use with PIPENV

Setup PIPENV and AbuseIP-db-scanner

  • Requirements
    • Python3
    • Pipenv (install with pip install pipenv)
    • Requests
cd ~
git clone https://github.com/louigigr/AbuseIP-db-scanner.git
cd AbuseIP-db-scanner
pipenv install --python 3.6
pipenv shell
pipenv install requests

Usage

To use type:

python abuseipdb.py

Specify the number of days you wish to search and display alerts for. Accepted range is 1 to 365.