Skip to main content

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

Project description

[![Build Status](](
[![Test Coverage](](
[![PyPi Version](](
[![PyPi License](](
[![PyPi Versions](](
[![PyPi Wheel](](

# 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
--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
$ querycontacts $IP

Error when no abuse contact was found:

$ querycontacts
querycontacts: error: no contacts for

## Library usage
>>> from querycontacts import ContactFinder
>>> qf = ContactFinder()
>>> qf.find('')
['root@localhost', 'abuse@localhost']

>>> qf.find('::ffff:7f00:2')

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
querycontacts-1.0.0-py3-none-any.whl (5.8 kB) Copy SHA256 hash SHA256 Wheel py3
querycontacts-1.0.0.tar.gz (15.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page