Query network abuse contacts on the command-line for a given ip address on abuse-contacts.abusix.org
Project description
querycontacts - Query Abuse Contacts
ahocorapy is a pure python implementation of the Aho-Corasick Algorithm. Given a list of keywords one can check if at least one of the keywords exist in a given text in linear time.
Installation
pip install querycontacts
Command line usage
usage: querycontacts [-h] [--provider PROVIDER] [--version] ip QueryContact - Find the Abuse contact for a IP address positional arguments: ip query network abuse contacts for a given ip address optional arguments: -h, --help show this help message and exit --provider PROVIDER change standard network abuse contacts provider. Defaults to abuse-contacts.abusix.org --version show program's version number and exit
Examples
Show version:
$ querycontacts --version querycontacts 1.0.0
Show abuse contact for your IP:
$ IP=$(curl ipecho.net/plain) $ querycontacts $IP abuse@yourisp.example.com
Error when no abuse contact was found:
$ querycontacts 127.0.0.1 querycontacts: error: no contacts for 127.0.0.1
Library usage
>>> from querycontacts import ContactFinder >>> qf = ContactFinder() >>> qf.find('127.0.0.2') ['root@localhost', 'abuse@localhost'] >>> qf.find('::ffff:7f00:2') ['root@localhost']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
querycontacts-1.0.1.tar.gz
(16.0 kB
view hashes)
Built Distribution
Close
Hashes for querycontacts-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc33df2a358a1c9b46bafc5d77448314c37565a434014e41ea5085041bfe6c0 |
|
MD5 | 87950e5f90481ac7d42e377886dc0e7e |
|
BLAKE2b-256 | e46e098b12e3e345446a356458d1c62dede3f3229758d55e683d032157c17656 |