Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 🛡️ DISABLE MITIGATIONS
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 📖 Disable memory protection in exchange for increasing performance
- :: ─────────────────────────────────────────────────────────────────────────────
- :: ⚠️ Some anti-cheats (such as FaceIt) can complain about these tweaks, so use at your own risk, or just restore defaults
- :: ─────────────────────────────────────────────────────────────────────────────
- :: ⚠️ Requires "NSudo" to run some tasks with the highest privileges:
- :: 1) Download: https://github.com/M2TeamArchived/NSudo/releases/download/8.2/NSudo_8.2_All_Components.zip
- :: 2) Unpack somewhere and go to the "NSudo Launcher" folder
- :: 3) Then, based on the architecture of your processor, go to the folder you need: ARM64, Win32, x64
- :: 4) Copy "NSudoLC.exe" file and paste it next to your .cmd/.bat file
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 📜 SCRIPT
- :: ─────────────────────────────────────────────────────────────────────────────
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "0" /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /t Reg_DWORD /d "1" /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettings" /t REG_DWORD /d "1" /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverride" /t REG_DWORD /d "3" /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "FeatureSettingsOverrideMask" /t REG_DWORD /d "3" /f
- NSudoLC -U:S -ShowWindowMode:Hide -wait cmd /c "reg add "HKLM\SYSTEM\CurrentControlSet\Services\TrustedInstaller" /v "Start" /t REG_DWORD /d "3" /f"
- NSudoLC -U:S -ShowWindowMode:Hide -wait cmd /c "sc start "TrustedInstaller""
- NSudoLC -U:T -P:E -M:S -ShowWindowMode:Hide -wait cmd /c "ren %SYSTEMROOT%\System32\mcupdate_GenuineIntel.dll mcupdate_GenuineIntel.old"
- NSudoLC -U:T -P:E -M:S -ShowWindowMode:Hide -wait cmd /c "ren %SYSTEMROOT%\System32\mcupdate_AuthenticAMD.dll mcupdate_AuthenticAMD.old"
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnableCfg" /t REG_DWORD /d "0" /f
- reg add "HKLM\System\CurrentControlSet\Control\Session Manager" /v "ProtectionMode" /t REG_DWORD /d "0" /f
- :: ─────────────────────────────────────────────────────────────────────────────
- :: 🔁 RESTORE DEFAULT VALUES
- :: ─────────────────────────────────────────────────────────────────────────────
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "1" /f
- reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\kernel" /v "DisableExceptionChainValidation" /f
- reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettings /f
- reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /f
- reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /f
- NSudoLC -U:S -ShowWindowMode:Hide -wait cmd /c "reg add "HKLM\SYSTEM\CurrentControlSet\Services\TrustedInstaller" /v "Start" /t Reg_DWORD /d "2" /f"
- NSudoLC -U:S -ShowWindowMode:Hide -wait cmd /c "sc start "TrustedInstaller""
- NSudoLC -U:T -P:E -M:S -ShowWindowMode:Hide -wait cmd /c "ren %SYSTEMROOT%\System32\mcupdate_GenuineIntel.old mcupdate_GenuineIntel.dll"
- NSudoLC -U:T -P:E -M:S -ShowWindowMode:Hide -wait cmd /c "ren %SYSTEMROOT%\System32\mcupdate_AuthenticAMD.old mcupdate_AuthenticAMD.dll"
- reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "EnableCfg" /f
- reg delete "HKLM\System\CurrentControlSet\Control\Session Manager" /v "ProtectionMode" /f
- :: ─────────────────────────────────────────────────────────────────────────────
Advertisement
Add Comment
Please, Sign In to add comment