Query network abuse contacts on the command-line for a given ip address on abuse-contacts.abusix.zone
Project description
querycontacts - Query Abuse Contacts
Installation
pip install querycontacts
Starting with version 2.0.0 support for python 2.7 is dropped. This is related to dnspython 2.0.0 also dropping support.
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.zone
--version show program's version number and exit
Examples
Show version:
$ querycontacts --version
querycontacts 2.0.0
Show abuse contact for your IP:
$ IP=$(curl ipecho.net/plain)
$ querycontacts $IP
abuse@yourisp.example.com
Test response for localhost:
$ querycontacts 127.0.0.1
Abusix ContactDB Test point
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-2.0.0.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for querycontacts-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ae44ad8528f91f048599659e8ac3d770608d85902c69ffe34b49d1cc24dbe5 |
|
MD5 | dfef9da44c586995731a4c6570b0f403 |
|
BLAKE2b-256 | e8d20e6f1451f2d1919c066a1c4f27902ab713937e801471505c4e176d41693c |