AbuseIPDB IPLoader
Abuse DB IP loader is a tool to check a list of given IP aginest abuseipDB (https://www.abuseipdb.com/) to determine which one is 100% attacker ips
Installation
Use the package manager pip to install foobar.
pip3 install iploader
Usage
after installation create a config.ini file in /opt/ like follow:
[DEFAULT]
Description = IPFloader
Version =1.0
[conf]
Infile = /tmp/ip_list.txt
DBPath = /opt/data.db
Outfile = /var/www/html/ip.txt
ExpirationDays = 60
LogDest = /var/log/ip_loader.log
Token = <YOUR ABUSEDB TOKEN>
Inflie: csv list of IPS that you want to check against abuseipDB , should look like this :
1.1.1.1
2.2.2.2
3.4.5.2
....
outfile: where to put the file
LogDest: All events will be dispplayed on console and logged into this log file for future refrence
ExpirationDays: put it 0 if you dont need ips to be expired and be remoevd form exported file:
DBpath: a location for sqllite3 DB
How does it works ?
it uses a sqllite db to store ips which is read from file , DB is used for 2 reason 1- Prevent from importing dupicate IPS from file 2- Expire IPS after spsfice days . second function is use if you want blacklist Abused ip for specific days not always , when IP is read from file it will insert into db with date and time each time you run program it checks expiration in config.ini date with insertion date in DB if date is passed will remove IP form outfile if you want to use expriation date you need to put program in crontab to run at-least once a day
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Release files for iploader 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iploader-1.0.3.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iploader-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / iploader-1.0.3.tar.gz
| Download URL | iploader-1.0.3.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06d5cf124fdaee26db57e5054afc071d8851ee0be5169015d0b87f33f738e2c2
|
|
BLAKE2b-256 checksum How to use checksums |
dddf51f4badcb4c6779b6f915cd512c6d42ccb269520933fd96a34ca4ddede02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.55.0 CPython/3.8.5
|
Release files / iploader-1.0.3-py3-none-any.whl
| Download URL | iploader-1.0.3-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88545137ab1ad025e9dcbd77af56e73cd69a8841f2318c11337612a7fa545e95
|
|
BLAKE2b-256 checksum How to use checksums |
fa6928f150b26a14e0fc170d744bc1374848f31a7a1d245bdab3fa6eb8297eca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.55.0 CPython/3.8.5
|