How do you disable ASLR (address space layout randomization) on Windows 7 x64?

后端 未结 3 829
予麋鹿
予麋鹿 2020-12-01 02:51

How do you disable ASLR on Windows 7 x64 so that my program will always load the shared CRT at the same address?

相关标签:
3条回答
  • 2020-12-01 03:28

    The Enhanced Mitigation Experience Toolkit (EMET), downloadable from Microsoft, allows to enable/disable ASLR it on a system or process basis.

    0 讨论(0)
  • 2020-12-01 03:32

    A registry setting is available to forcibly enable or disable ASLR for all executables and libraries and is found at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\MoveImages.

    0 讨论(0)
  • 2020-12-01 03:46

    Previously you had to opt in to allowing the linker to use ASLR. Now, you have to opt out:

    /DYNAMICBASE[:NO]
    

    (Visual Studio 2012: Configuration Properties -> Linker -> Advanced -> "Randomized Base Address")

    You can also do it programmatically.

    0 讨论(0)
提交回复
热议问题