Skip to main content

AbuseIPDB Ip Checker

Project description

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iploader-1.0.3.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iploader-1.0.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file iploader-1.0.3.tar.gz.

File metadata

  • Download URL: iploader-1.0.3.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for iploader-1.0.3.tar.gz
Algorithm Hash digest
SHA256 06d5cf124fdaee26db57e5054afc071d8851ee0be5169015d0b87f33f738e2c2
MD5 6fc86376c59df6cf9159ac6e1b7a3883
BLAKE2b-256 dddf51f4badcb4c6779b6f915cd512c6d42ccb269520933fd96a34ca4ddede02

See more details on using hashes here.

File details

Details for the file iploader-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: iploader-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for iploader-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 88545137ab1ad025e9dcbd77af56e73cd69a8841f2318c11337612a7fa545e95
MD5 f42aaca09dc49d2a7e2152003bdf4471
BLAKE2b-256 fa6928f150b26a14e0fc170d744bc1374848f31a7a1d245bdab3fa6eb8297eca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page