Feature, not bug: DNSAdmin to DC compromise in one line

default ACL for DNS server object
HMODULE hLib;
if (g_pluginPath && *g_pluginPath) {
hLib = LoadLibraryW(g_pluginPath);
g_hndPlugin = hLib;
if (!hLib) {...log and return error...}
g_dllDnsPluginInitialize = GetProcAddress(hLib, "DnsPluginInitialize");
if (!g_dllDnsPluginInitialize) {...log and return error...}
g_dllDnsPluginQuery = GetProcAddress(hLib, "DnsPluginQuery")
if (!g_dllDnsPluginQuery) {...log and return error...}
g_dllDnsPluginCleanup = GetProcAddress(hLib, "DnsPluginCleanup")
if (!g_dllDnsPluginCleanup) {...log and return error...}
if (g_dllDnsPluginInitialize){
g_dllDnsPluginInitialize(pCallback1, pCallback2);
}
}
Sample code for our plugin dll
ServerLevelPluginDll support across OS versions

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

{UPDATE} Minimon Saga Hack Free Resources Generator

The Crypto Wars of the 90s

10 Things Your Small Business Data Breach Response Plan Must Have

Photo Privacy

{UPDATE} Ice Hockey Star Players Quiz Maestro: NHL Edition Hack Free Resources Generator

Getting started with cybersecurity

TryHackMe | RootMe | Walkthrough | Detailed Write Up

TryHackMe | RootMe | Walkthrough |Detailed Write Up | MZS

Utility of the month: ofproto/trace

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shay Ber

Shay Ber

More from Medium

The Defender’s path in FLAWS2

Packets and Frames

How to own your first machine on Hack the Box

Lot-of-Logs ! San-Diego CTF.