-
-
Save Morishigekyle/eccb93499bda7e0d94241230c8c8a4ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment