内网利器 - LDAPWordlistHarvester

admin 2024年6月8日09:26:37评论13 views字数 1683阅读5分36秒阅读模式

内网利器 - LDAPWordlistHarvester

  • 根据 LDAP 中找到的以下信息创建单词列表:
    •  用户:namesAMAccountName
    •  电脑:namesAMAccountName
    •  团体:name
    •  组织单位:name
    •  Active Directory 站点:namedescriptions
    •  所有 LDAP 对象:descriptions
  • 使用选项选择单词列表输出文件名--outputfile

要从域的 LDAP 生成单词列表,domain.local您可以使用以下命令:

./LDAPWordlistHarvester.py -d 'domain.local' -u 'Administrator' -p 'P@ssw0rd123!' --dc-ip 192.168.1.101

内网利器 - LDAPWordlistHarvester

内网利器 - LDAPWordlistHarvester

一旦你有了这个单词表,你就应该使用 hashcat--loopback和规则clem9669_large.rule破解你的 NTDS 。

./hashcat --hash-type 1000 --potfile-path ./client.potfile ./client.ntds ./wordlist.txt --rules ./clem9669_large.rule --loopback

用法

$ ./LDAPWordlistHarvester.py -hLDAPWordlistHarvester.py v1.1 - by @podalirius_usage: LDAPWordlistHarvester.py [-h] [-v] [-o OUTPUTFILE] --dc-ip ip address [-d DOMAIN] [-u USER] [--ldaps] [--no-pass | -p PASSWORD | -H [LMHASH:]NTHASH | --aes-key hex key] [-k]options:  -h, --help            show this help message and exit  -v, --verbose         Verbose mode. (default: False)  -o OUTPUTFILE, --outputfile OUTPUTFILE                        Path to output file of wordlist.Authentication & connection:  --dc-ip ip address    IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted it will use the domain part (FQDN) specified in the identity parameter  -d DOMAIN, --domain DOMAIN                        (FQDN) domain to authenticate to  -u USER, --user USER  user to authenticate with  --ldaps               Use LDAPS instead of LDAPCredentials:  --no-pass             Don't ask for password (useful for -k)  -p PASSWORD, --password PASSWORD                        Password to authenticate with  -H [LMHASH:]NTHASH, --hashes [LMHASH:]NTHASH                        NT/LM hashes, format is LMhash:NThash  --aes-key hex key     AES key to use for Kerberos Authentication (128 or 256 bits)  -k, --kerberos        Use Kerberos authentication. Grabs credentials from .ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will use the ones specified in the command line

工具下载

https://github.com/p0dalirius/LDAPWordlistHarvester

原文始发于微信公众号(TtTeam):内网利器 - LDAPWordlistHarvester

免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年6月8日09:26:37
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   内网利器 - LDAPWordlistHarvesterhttps://cn-sec.com/archives/2829906.html
                  免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉.

发表评论

匿名网友 填写信息