1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:22:06 +02:00
tldr/pages/common/nxc-ldap.md
Juri Dispan 8cfc223986
nxc-ldap: add page (#13418)
Co-authored-by: spageektti <git@spageektti.cc>
2024-08-10 13:40:12 +05:30

1,003 B

nxc ldap

Pentest and exploit Windows Active Directory Domains via LDAP. More information: https://www.netexec.wiki/ldap-protocol.

  • Search for valid domain credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords:

nxc ldap {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}

  • Enumerate active domain users:

nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --active-users

  • Collect data about the targeted domain and automatically import these data into BloodHound:

nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --bloodhound --collection {{All}}

  • Attempt to collect AS_REP messages for the specified user in order to perform an ASREPRoasting attack:

nxc ldap {{192.168.178.2}} -u {{username}} -p '' --asreproast {{path/to/output.txt}}

  • Attempt to extract the passwords of group managed service accounts on the domain:

nxc ldap {{192.168.178.2}} -u {{username}} -p {{password}} --gmsa