How do you disable ASLR (address space layout rand

2019-01-13 10:54发布

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

3条回答
该账号已被封号
2楼-- · 2019-01-13 11:43

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.

查看更多
虎瘦雄心在
3楼-- · 2019-01-13 11:46

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

查看更多
何必那么认真
4楼-- · 2019-01-13 11:54

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.

查看更多
登录 后发表回答