Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <imagehlp.h>
- #pragma comment(lib, "ImageHlp.lib")
- bool
- DisableASLR (LPSTR path)
- {
- LOADED_IMAGE PE;
- if (MapAndLoad(path, 0, &PE, false, false))
- {
- PE.FileHeader->OptionalHeader.DllCharacteristics = NULL;
- UnMapAndLoad(&PE);
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement