Linux

echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

radare2

# disable ASLR & reanalyse
dor aslr=no
aaa

Windows

Windows 7

  1. Open RegEdit
  2. Goto: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\
  3. Create new value (not a key): MoveImages with value 0.
  4. Reboot.

Windows 10

Disable ASLR per file

Set-Processmitigation -Name name.exe -Disable ForceRelocateImages

Disable ASLR by default

  1. Search in Windows for: “windows defender Security Center”
  2. Click on the second icon from the bottom: “App & browser control”
  3. Scroll to the bottom and click on: “Exploit protection settings”
  4. Set “Force randomization for images “ to OFF.
  5. Reboot

References