.. / dns-privilege-escalation-via-DnsAdmins
Star

The DnsAdmins group in Windows has elevated control over the DNS service, which can be exploited for privilege escalation. Attackers can leverage the ServerLevelPluginDll registry key to force the DNS service to load a custom DLL running as NT AUTHORITY\SYSTEM. This attack is destructive and high-impact. It requires membership in the DnsAdmins group and the ability to restart the DNS service.

Attack Summary:

⚠️ This attack should only be performed in a controlled and authorized testing environment.

Command: Copy Extra code: Copy References:

https://www.hacktricks.xyz/windows-hardening/windows-local-privilege-escalation/token-privileges

https://raw.githubusercontent.com/fashionproof/EnableAllTokenPrivs/master/EnableAllTokenPrivs.ps1

https://blog.ryanwhocodes.com/dnsadmins-to-domain-admin/

https://blog.gentilkiwi.com (Mimikatz / mimilib)