Forked from https://github.com/mikebanks/AbuseIPdbSCAN
!!!!!----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.
Visit the Releases page to download the python version or the windows binary version of the script.
- 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
- Python3 (2.7 may have errors)
- Requests
pip3 install Requests
- Requests[security]
pip3 install requests[security]
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.
- 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
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.