@ECHO OFF | |
SETLOCAL | |
ECHO ASLR Enable / Diable Batch Script - Please run as admin | |
set /p Choice=Want to Enable or Disable ASLR? (e or d):%=% | |
if "%Choice%"=="e" goto :ENABLE | |
if "%Choice%"=="d" goto :DISABLE | |
:ENABLE | |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "MoveImages" /t REG_DWORD /d 1 /f | |
goto :EOF | |
:DISABLE | |
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "MoveImages" | |
goto :EOF |
This comment has been minimized.
This comment has been minimized.
@glnzglnz It exists on Windows 10, so it should exists on Windows 7 ;) . |
This comment has been minimized.
This comment has been minimized.
I believe the default is to have ASLR enabled so deleting the key will most probably enable ASLR. To disable you need to explicitly set the value to 0. |
This comment has been minimized.
This comment has been minimized.
yes that is the case @xambroz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Will this work in Win 7 Pro 64-bit, which does not even have the key "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" ?