New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

querycontacts

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

querycontacts

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

  • 2.0.0
  • Source
  • PyPI
  • Socket score

Maintainers
2

Build Status PyPi Version PyPi License PyPi Versions PyPi Wheel

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']

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc