域内用户名枚举 实验

1. 实验网络拓扑

kali: 
192.168.72.128

win2008:
192.168.135.129
192.168.72.139

win7:
192.168.72.149

win2012:(DC)
192.168.72.131	

2. 简单原理

详细的报文分析在之前写过了,这里简单提一提。


利用的是Kerberos的AS阶段,AS_REP的回显不同,可以判断用户是否存在。

存在但pre_auth错误:KDC_ERR_PREAUTH_REQUIRED

不存在:KDC_ERR_C_PRINCIPAL_UNKNOWN

3. 实操

0x1. Kerbrute

用go写的一个可用于用户名枚举和密码喷洒的工具。

https://github.com/ropnop/kerbrute/releases/tag/v1.0.3

xx.exe userenum --dc 192.168.72.131 -d intranet.com users.txt

其中users.txt是待爆破的用户名字典。

0x2. pyKerbrute

与Kerbrute类似,只是用python写的。

https://github.com/3gstudent/pyKerbrute

python2 EnumADUser.py 192.168.72.131 intranet.com users.txt udp

0x3. MSF

MSF的 auxiliary/gather/kerberos_enumusers模块

0x4. Nmap

Nmap NSE脚本:krb5-enum-users

sudo nmap -p88 --script krb5-enum-users --script-args krb5-enum-users.realm="intranet.com",userdb="./users.txt" 192.168.72.131
相关推荐
梓䈑6 小时前
【C语言】自定义类型:结构体
c语言·开发语言·windows
感谢地心引力8 小时前
【MATLAB2024b】安装离线帮助文档(windows)
windows·matlab
退居二线程序员1 天前
【完-网络安全】Windows注册表
windows
Ling-X51 天前
红日靶机(三)笔记
linux·windows·内网渗透·靶机笔记·vulnstack
GEEKVIP1 天前
iPhone/iPad技巧:如何解锁锁定的 iPhone 或 iPad
windows·macos·ios·智能手机·笔记本电脑·iphone·ipad
百事牛1 天前
防止错误输入!Excel单元格限制输入内容的三种有效方式
windows·excel
风竹夜1 天前
记录一次病毒启动脚本
c++·windows·安全·编辑器·batch·福昕阅读器
dvlinker1 天前
选择网络安全模式启动Windows系统,解决PC无法连接网络问题
网络·windows·安全模式·连不上网络·无法联网·网络安全模式
看山还是山,看水还是。1 天前
win系统网络重置
windows·笔记·全文检索