Skip to main content

Query network abuse contacts on the command-line for a given ip address on abuse-contacts.abusix.org

Project description

Build Status Test Coverage PyPi Version PyPi License PyPi Versions PyPi Wheel

querycontacts - Query Abuse Contacts

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


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.3.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

querycontacts-1.0.3-py2.py3-none-any.whl (18.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for querycontacts-1.0.3.tar.gz
Algorithm Hash digest
SHA256 26f56750b34f727ccff25aee788bd0de58583c8c859cf86952793cbc16aa601c
MD5 84aeb8f33c8967181e978c08f4dbb33b
BLAKE2b-256 27013010b80d8070c58f0f631bb86457d73d61f85cbf47ab6b590147ac625724

See more details on using hashes here.

File details

Details for the file querycontacts-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for querycontacts-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9715957363419a805213e60b0124eebc40f2d5d353d059beac3462f8a9249714
MD5 4295b7e19589b67dcca61b59e6408f09
BLAKE2b-256 52cc576cfe41a31878f070ea6c30d629835320edbe8af6ac16ce6bfb28b6ff46

See more details on using hashes here.

Supported by

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