在命令行上查询网络滥用联系人,以获取滥用-contacts.abusix.zone上的给定IP地址

querycontacts的Python项目详细描述


Build StatusTest CoveragePyPi VersionPyPi LicensePyPi VersionsPyPi Wheel

query contacts-查询滥用联系人

安装

pip install querycontacts

命令行用法

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

示例

显示版本:

$ querycontacts --version
querycontacts 1.1.1

显示IP的滥用联系人:

$ IP=$(curl ipecho.net/plain)
$ querycontacts $IP
abuse@yourisp.example.com

未找到滥用联系人时出错:

$ querycontacts 127.0.0.1
querycontacts: error: no contacts for 127.0.0.1

库使用

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

>>> qf.find('::ffff:7f00:2')
['root@localhost']

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java我的int值在SharedReferences中不被记住   java如何编辑Spring可分页对象?   java如何在gradle中单独调用任务   jvm以编程方式设置最大java堆大小   java如果满足多个条件,如何使用If语句计算数字?   如何在java中从json文件中获取特定值   如何在Sphinx4中为Java语音识别添加自定义语法?   java int[]copy=data;//当数据是数组时会发生什么?   java豪猪管理器。停下来。destroy()不起作用   安卓在API级别28中找不到画布变量   基于SOLID的java冗余   用于talend作业的java Liferay和portlet   从java到安卓的视频流   java获取在控件的类定义中添加自定义控件的场景大小   awt Java IndexOutOfBoundsException   java如何使用Spring JmsTemplate更改MQ头   java遍历数组并打印每个对象   java Google Map api v2标记在我旋转手机和地图“刷新”之前不会移动