Compiling a DLL using MingGW

1 · Rob Fuller · Feb. 9, 2020, 11:15 p.m.
Compiling a Windows DLL has always been a pain for me. Getting Visual Studio working is frustrating (or at least used to be, before VS2019). I ran into this same issue recently. I didn't have Visual Studio readily available because the VMs I had built for the task were left behind. I always knew that MinGW could build DLLs; however, I never spent the time to figure it out. Now was that time. I needed a DLL that wouldn't be caught by AV, and I could use it to exploit the DNS Admin escalation path...