-
Notifications
You must be signed in to change notification settings - Fork 50
/
Malwarebytes-Premium-Reset.bat
103 lines (87 loc) · 3.21 KB
/
Malwarebytes-Premium-Reset.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
:: ==================================================
:: Malwarebytes-Premium-Reset v13.0
:: ==================================================
:: Dev - Scut1ny
:: Help - AmmarSAA & firebirdjsb
:: Link - https://github.com/Scrut1ny/Malwarebytes-Premium-Reset
::
:: Note: using this will wipe all your Malwarebytes settings
::
:: changelog for v13.0: Refactered
:: ==================================================
@echo off
title Malwarebytes-Premium-Reset ^| v13.0
:: Check for administrator privileges
fltmc >nul 2>&1 || (
echo( && echo [33m# Administrator privileges are required. && echo([0m
PowerShell Start -Verb RunAs '%0' 2> nul || (
echo [33m# Right-click on the script and select "Run as administrator".[0m
>nul pause && exit 1
)
exit 0
)
setlocal
:: Define paths
set "MBAM_PATH_X86=%PROGRAMFILES(X86)%\Malwarebytes\Anti-Malware\malwarebytes_assistant.exe"
set "MBAM_PATH_X64=%PROGRAMFILES%\Malwarebytes\Anti-Malware\malwarebytes_assistant.exe"
:: Output header
cls && echo [\033[94mMalwarebytes\033[0m: \033[33mPremium\033[0m - [\033[31mBYPASS\033[0m]
echo --------------------------------
:: Kill Malwarebytes processes
if exist "%MBAM_PATH_X86%" (
"%MBAM_PATH_X86%" --stopservice
) else if exist "%MBAM_PATH_X64%" (
"%MBAM_PATH_X64%" --stopservice
) else (
echo Malwarebytes assistant not found in the expected locations.
exit /b 1
)
echo Processes have been killed.
timeout /t 5 >nul
:: Check and delete old scheduled task
echo [+] Querying scheduled task...
timeout /t 5 >nul
schtasks /query /tn "Malwarebytes-Premium-Reset" >nul 2>&1
if %errorlevel% equ 0 (
echo [\033[93m!\033[0m] Scheduled task already exists
echo [+] Deleting old task...
timeout /t 5 >nul
schtasks /delete /tn "Malwarebytes-Premium-Reset" /f >nul 2>&1
echo [+] Old task deleted.
timeout /t 2 >nul
)
:: Create new scheduled task
echo [+] Creating scheduled task...
timeout /t 3 >nul
for /f %%a in ('powershell -c "[guid]::NewGuid().ToString()"') do (
reg add "HKLM\SOFTWARE\Microsoft\Cryptography" /v "MachineGuid" /t REG_SZ /d "%%a" /f >nul
)
schtasks /create /tn "Malwarebytes-Premium-Reset" /tr "\"%comspec%\" /c \"echo Task executed\"" /sc daily /mo 13 /rl highest >nul 2>&1
echo [+] Scheduled task created.
timeout /t 3 >nul
:: Run the scheduled task
cls
echo [\033[94mMalwarebytes\033[0m: \033[33mPremium\033[0m - [\033[31mBYPASS\033[0m]
echo --------------------------------
echo [+] Running the task...
timeout /t 5 >nul
schtasks /run /tn "Malwarebytes-Premium-Reset" >nul 2>&1
echo [+] Task executed.
timeout /t 5 >nul
:: Restart Malwarebytes processes
cls && echo [\033[94mMalwarebytes\033[0m: \033[33mPremium\033[0m - [\033[31mBYPASS\033[0m]
echo --------------------------------
echo [+] Restarting Mbam Processes...
timeout /t 3 >nul
if exist "%MBAM_PATH_X86%" (
start "" "%MBAM_PATH_X86%" >nul 2>&1
) else if exist "%MBAM_PATH_X64%" (
start "" "%MBAM_PATH_X64%" >nul 2>&1
) else (
echo Malwarebytes assistant not found in the expected locations.
exit /b 1
)
timeout /t 5 >nul
echo [+] Done, thank you for using this trial resetter.
pause
endlocal