In case Immunity Debugger (and hence mona) doesn't work for me, is there a quick way for me to check loaded image for DEP, SafeSEH and ASLR using OllyDbg alone? Manual inspection is acceptable too.

I'm thinking that ASLR can be manually verify by restarting the application a few times and see if the base address changes. Am I correct? How about SafeSEH and DEP?

  • Found out that one can use dumpbin.exe /headers in Windows to check if "NX compatible" flag is turned on. I suppose that is how we can check for DEP in file on disk.
    – xyz
    Commented May 9, 2016 at 0:18
  • Similarly, "Dynamic base" flag shows that it is ASLR compatible.
    – xyz
    Commented May 9, 2016 at 0:23

2 Answers 2


After figuring out that ASLR (Dynamic base) and DEP (NX compatible) flags in PE header can be inspect using dumpbin.exe /headers, I found out that the same PE header mapping is available in Ollydbg. (I am using Ollydbg 2).

Just open the Memory Map window in Ollydbg, find the image (under Owner column) you want, look for the row with "PE header" (under Contains column) and double click the base address (under Address column).

This will bring up the PE header mapping. Look for the role that says "DLLCharacteristics" (a few rows after the IMAGE_NT_OPTIONAL_HDR32_MAGIC row).

  • 1
    The meaning of the flags is described here msdn.microsoft.com/en-us/library/windows/desktop/…
    – xyz
    Commented May 9, 2016 at 0:51
  • This should be the accepted answer! Especially in regards to native analysis capabilities sans plugins. Although, "IMAGE_NT_OPTION_HDR32_MAGIC" isn't a present "role" in the output (testing on Vista), and Wei's link together make this quite feasible.
    – SYANiDE
    Commented Oct 8, 2019 at 6:14

you can use [OllySEH plugin][1] by Zer0Flag, OllySEH is a little plugin for OllyDbg 2.01 which should help exploit developers to find Modules which they can use to bypass different anti-bof techniques.
[+] display state for DEP
[+] display state for ALSR
[+] display state for SEH

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.