Skip to content

Instantly share code, notes, and snippets.

@aeongdesu
Created August 4, 2024 04:44
Show Gist options
  • Save aeongdesu/94846a508807325dbc5ce35aa7f9f93a to your computer and use it in GitHub Desktop.
Save aeongdesu/94846a508807325dbc5ce35aa7f9f93a to your computer and use it in GitHub Desktop.
real virus
:: 256 Realtime
:: 128 High
:: 32768 Above normal
:: 32 Normal
:: 16384 Below normal
:: 64 Low
@echo off
wmic process where name="Discord.exe" CALL setpriority 32
set "WMIC_CMD=wmic process where name^="Discord.exe" get /format:list ^| findstr Priority"
for /f "tokens=1* delims==" %%A in ('%WMIC_CMD%') do set PRIORITY=%%B
set startpriority=32
:start
wmic process where name="Discord.exe" CALL setpriority 32
set "WMIC_CMD=wmic process where name^="Discord.exe" get /format:list ^| findstr Priority"
for /f "tokens=1* delims==" %%A in ('%WMIC_CMD%') do set PRIORITY=%%B
set startpriority=32
timeout 5
goto start
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment