Linux#
echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
radare2#
# disable ASLR & reanalyse
dor aslr=no
aaa
Windows#
Windows 7#
- Open
RegEdit
- Goto:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\
- Create new value (not a key):
MoveImages
with value 0
.
- Reboot.
Windows 10#
Disable ASLR per file#
Set-Processmitigation -Name name.exe -Disable ForceRelocateImages
Disable ASLR by default#
- Search in Windows for: “windows defender Security Center”
- Click on the second icon from the bottom: “App & browser control”
- Scroll to the bottom and click on: “Exploit protection settings”
- Set “Force randomization for images “ to OFF.
- Reboot
References#