Created
March 13, 2022 00:01
-
-
Save SoyRA/46678e4f0d82e725e28e6c575442899a to your computer and use it in GitHub Desktop.
Exclude and download T5M, for people who don't know how to "Download anyway" or "Add to exclusion list".
This file contains 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 | |
TITLE getREKT T5M Downloader | |
@SETLOCAL ENABLEEXTENSIONS | |
@CD /D "%~dp0" | |
ECHO. | |
ECHO # Notice | |
ECHO 1. You must move this file (getREKT-T5M-Downloader.bat) to an empty folder (where you want to have the t5m.exe). | |
ECHO 2. You must start this file (getREKT-T5M-Downloader.bat) as administrator. | |
ECHO 3. This can go incredibly right or incredibly wrong. :P | |
ECHO. | |
PAUSE | |
CLS | |
ECHO. | |
ECHO 1. Adding t5m.zip and t5m.exe to Microsoft Defender Exclusions | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Add-MpPreference -Force -ExclusionPath '%~dp0t5m.zip'" | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Add-MpPreference -Force -ExclusionPath '%~dp0t5m.exe'" | |
ECHO. | |
ECHO 2. Downloading t5m.zip | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "(New-Object Net.WebClient).DownloadFile('https://t5m.getrektby.us/bootstrap/t5m.zip', '%~dp0t5m.zip')" | |
ECHO. | |
ECHO 3. Extracting t5m.zip | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Expand-Archive -Force '%~dp0t5m.zip' '%~dp0'" | |
ECHO. | |
ECHO 4. Cleaning... | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Remove-Item -Force -Path '%~dp0t5m.zip'" | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Remove-MpPreference -Force -ExclusionPath '%~dp0t5m.zip'" | |
ECHO. | |
ECHO 5. Ready, if everything is OK you can start the t5m.exe that has been downloaded and the Antivirus doesn't delete it. | |
ECHO. | |
PAUSE | |
:: ---------------------------------------------------------------- | |
:: # Credits | |
:: - Moneytouch : The one who had the idea to download t5m.exe from the CLI. | |
:: - Soy R.A. : The one who created this file and improved the Moneytouch idea. | |
:: ---------------------------------------------------------------- | |
EXIT |
This file contains 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 | |
TITLE getREKT T5M Downloader | |
@SETLOCAL ENABLEEXTENSIONS | |
@CD /D "%~dp0" | |
ECHO. | |
ECHO # Aviso | |
ECHO 1. Debes mover este archivo (getREKT-T5M-Downloader.bat) a una carpeta vacia (donde quieres tener el t5m.exe). | |
ECHO 2. Debes iniciar este archivo (getREKT-T5M-Downloader.bat) como administrador. | |
ECHO 3. Esto puede salir increiblemente bien o increiblemente mal. :P | |
ECHO. | |
PAUSE | |
CLS | |
ECHO. | |
ECHO 1. Agregando t5m.zip y t5m.exe a las Exclusiones de Microsoft Defender | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Add-MpPreference -Force -ExclusionPath '%~dp0t5m.zip'" | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Add-MpPreference -Force -ExclusionPath '%~dp0t5m.exe'" | |
ECHO. | |
ECHO 2. Descargando t5m.zip | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "(New-Object Net.WebClient).DownloadFile('https://t5m.getrektby.us/bootstrap/t5m.zip', '%~dp0t5m.zip')" | |
ECHO. | |
ECHO 3. Extrayendo t5m.zip | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Expand-Archive -Force '%~dp0t5m.zip' '%~dp0'" | |
ECHO. | |
ECHO 4. Limpiando... | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Remove-Item -Force -Path '%~dp0t5m.zip'" | |
PowerShell -NonInteractive -InputFormat None -OutputFormat None -Command "Remove-MpPreference -Force -ExclusionPath '%~dp0t5m.zip'" | |
ECHO. | |
ECHO 5. Listo, si todo va bien podras iniciar el t5m.exe que se acaba de descargar y que el Antivirus no lo elimine. | |
ECHO. | |
PAUSE | |
:: ---------------------------------------------------------------- | |
:: # Créditos | |
:: - Moneytouch : El quien tuvo la idea de descargar t5m.exe desde la CLI. | |
:: - Soy R.A. : El quien creó este archivo y mejoró la idea de Moneytouch. | |
:: ---------------------------------------------------------------- | |
EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment