-
-
Save olliencc/8dbf48bd93063ffe8ee66867545bb665 to your computer and use it in GitHub Desktop.
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
void InstallHandler() | |
{ | |
LPVOID myMalHandler = NULL; | |
// Allocate some memory | |
myMalHandler = VirtualAlloc(NULL, 1000, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); | |
// | |
// Copy shellcode or similar into myMalHandler here | |
// | |
// Add the handler | |
AddVectoredExceptionHandler(false, (PVECTORED_EXCEPTION_HANDLER)myMalHandler); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment