Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/keithjjones/hostintel
OSINT (开源情报)侦察信息收集威胁情报
GitHubkeithjjones/hostintel

hostintel

一个用于收集恶意主机情报的模块化 Python 应用程序。

查看仓库
274545年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
hostintel — 一个用于收集恶意主机情报的模块化 Python 应用程序。 | Kitploit

hostintel

此工具用于收集主机的各种情报来源。 Hostintel 采用模块化编写,因此可以轻松添加新的情报来源。

主机通过 FQDN 主机名、域名或 IP 地址来识别。此工具目前仅支持 IPv4。输出为 CSV 格式,发送到标准输出,因此数据可以保存或通过管道传输到其他程序。由于输出为 CSV 格式,电子表格软件(如 Excel)或数据库系统可以轻松导入数据。

我在 YouTube 上为这个工具做了一个简短的介绍:https://youtu.be/aYK0gILDA6w

此工具适用于 Python v2 和 Python v3。如果你发现它不适用于 Python v3,请提交一个 issue。

帮助屏幕:

root@kitploit:~
$ python hostintel.py -h
usage: hostintel.py [-h] [-a] [-d] [-v] [-p] [-s] [-c] [-t] [-o] [-i] [-r]
                    ConfigurationFile InputFile

Modular application to look up host intelligence information. Outputs CSV to
STDOUT. This application will not output information until it has finished all
of the input.

positional arguments:
  ConfigurationFile     Configuration file
  InputFile             Input file, one host per line (IP, domain, or FQDN
                        host name)

optional arguments:
  -h, --help            show this help message and exit
  -a, --all             Perform All Lookups.
  -d, --dns             DNS Lookup.
  -v, --virustotal      VirusTotal Lookup.
  -p, --passivetotal    PassiveTotal Lookup.
  -s, --shodan          Shodan Lookup.
  -c, --censys          Censys Lookup.
  -t, --threatcrowd     ThreatCrowd Lookup.
  -o, --otx             OTX by AlienVault Lookup.
  -i, --isc             Internet Storm Center DShield Lookup.
  -r, --carriagereturn  Use carriage returns with new lines on csv.

安装:

首先,确保你的配置文件正确适配你的计算机/安装环境。在配置文件中添加你的 API 密钥和用户名。运行此工具需要 Python 和 Pip。有些模块必须从 GitHub 安装,因此请确保 git 命令在你的命令行中可用。Git 在任何平台上都很容易安装。接下来,安装 Python 依赖包(每次 git pull 这个仓库后也要运行此命令):

root@kitploit:~
$ pip install -r requirements.txt

Mac OSX 上自带的 Python 版本存在一些问题(http://stackoverflow.com/questions/31649390/python-requests-ssl-handshake-failure)。你可能需要使用以下命令安装 requests 库的安全部分:

root@kitploit:~
$ pip install requests[security]

最后,我个人喜欢 virtualenv 来管理 Python 环境。要为该工具创建自定义的本地 Python 安装,我建议阅读:http://docs.python-guide.org/en/latest/dev/virtualenvs/

运行:

root@kitploit:~
$ python hostintel.py myconfigfile.conf myhosts.txt -a > myoutput.csv

你应该可以将 myoutput.csv 导入任何数据库或电子表格程序。

注意,根据你的网络状况、API 密钥限制以及搜索的数据,此脚本可能会运行很长时间!请谨慎使用每个模块!尽管等待时间长,但你无需手动拉取这些数据。

示例数据:

“sampledata” 目录中包含一些示例数据。IP、域名和主机是随机挑选的,绝不针对任何组织或个人。使用示例数据运行此工具的工作方式如下:

小型主机列表:

root@kitploit:~
$ python hostintel.py local/config.conf sampledata/smalllist.txt -a > sampledata/smalllist.csv
*** Processing 8.8.8.8 ***
*** Processing 8.8.4.4 ***
*** Processing 192.168.1.1 ***
*** Processing 10.0.0.1 ***
*** Processing google.com ***
*** Processing 212.227.247.242 ***
*** Writing Output ***

大型主机列表:

root@kitploit:~
$ python hostintel.py local/config.conf sampledata/largerlist.txt -a > sampledata/largerlist.csv
*** Processing 114.34.84.13 ***
*** Processing 116.102.34.212 ***
*** Processing 118.75.180.168 ***
*** Processing 123.195.184.13 ***
*** Processing 14.110.216.236 ***
*** Processing 14.173.147.69 ***
*** Processing 14.181.192.151 ***
*** Processing 146.120.11.66 ***
*** Processing 163.172.149.131 ***

...

*** Processing 54.239.26.180 ***
*** Processing 62.141.39.155 ***
*** Processing 71.6.135.131 ***
*** Processing 72.30.2.74 ***
*** Processing 74.125.34.101 ***
*** Processing 83.31.179.71 ***
*** Processing 85.25.217.155 ***
*** Processing 93.174.93.94 ***
*** Writing Output ***

情报来源:

你可以在以下网站获取 API 密钥,用于你的配置文件。

  • GeoLite2(无需网络 I/O)
    • http://www.maxmind.com
  • DNS(需要网络 I/O)
    • https://github.com/rthalley/dnspython
  • VirusTotal(需要公共 API 密钥和网络 I/O,适当时会限速)
    • http://www.virustotal.com
  • PassiveTotal(需要 API 密钥、用户名和网络 I/O)
    • http://www.passivetotal.com
  • Shodan(需要 API 密钥和网络 I/O)
    • http://www.shodan.io
  • Censys(需要 API 密钥、用户名和网络 I/O)
    • http://www.censys.io
  • ThreatCrowd(需要网络 I/O,适当时会限速)
    • http://www.threatcrowd.org
  • OTX by AlienVault(需要 API 密钥和网络 I/O)
    • https://otx.alienvault.com
  • Internet Storm Center(需要网络 I/O)
    • https://isc.sans.edu

资源:

  • GeoIP2 Python 库
    • https://github.com/maxmind/GeoIP2-python
  • Python DNS 库
    • https://github.com/rthalley/dnspython
    • DNS 查询基础灵感来自 http://www.iodigitalsec.com/performing-dns-queries-python/
  • VirusTotal Python 库
    • https://github.com/blacktop/virustotal-api
  • Shodan Python 库
    • http://shodan.readthedocs.io/en/latest/
    • https://github.com/achillean/shodan-python
  • Censys Python 库
    • https://github.com/censys/censys-python
    • https://www.censys.io/api
  • PassiveTotal Python 库
    • https://passivetotal.readthedocs.io/en/latest/
    • https://github.com/passivetotal/python_api
  • ThreatCrowd Python 库
    • https://github.com/threatcrowd/ApiV2
    • https://github.com/jheise/threatcrowd_api
  • OTX Python 库
    • https://github.com/AlienVault-Labs/OTX-Python-SDK
    • https://otx.alienvault.com/api/
  • Internet Storm Center DShield Python 库
    • https://github.com/rshipp/python-dshield
    • https://isc.sans.edu/api/

备注:

粗略的说明见此处。

许可证:

此应用程序采用 Creative Commons BY-SA 许可证。

  • https://creativecommons.org/licenses/by-sa/4.0/
  • https://creativecommons.org/licenses/by-sa/4.0/legalcode
root@kitploit:~
This product includes GeoLite2 data created by MaxMind, available from
<a href="http://www.maxmind.com">http://www.maxmind.com</a>.

贡献:

阅读 Contributing.md

待办:

  • 尝试整合 https://github.com/mlsecproject/combine
  • 尝试整合来自 http://www.secrepo.com/ 的威胁情报源
  • 添加 Malwr
  • 添加一列,显示输入是 IPv4、域名还是主机名
  • 查看 https://github.com/Yelp/threat_intel
下载工具