Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #button1["text"] = "Custom"
- #button2["text"] = "Custom"
- #button2["command"] = ""
- #button1["command"] = ""
- import tkinter as tk
- import tkinter.font as tkFont
- from tkinter import ttk
- import keyboard
- import time
- ###############################################
- def stage1right():
- button2["text"] = "Keyboard"
- button1["text"] = "PyAutoGUI"
- button2["command"] = autokeybright
- button1["command"] = autokeybleft
- def stage1left():
- button1["text"] = "4 Chars"
- button2["text"] = "Custom"
- button2["command"] = forrangeright
- button1["command"] = forrangeleft
- def forrangeright():
- entry1 = ttk.Entry(root, width=40)
- entry1.pack(padx=10, pady=10, side="bottom")
- confirmi_button = ttk.Button(root, text="Confirm", command=confirmichars)
- confirmi_button.pack(padx=10, side="bottom", fill="x")
- def confirmichars():
- customichars = entry1.get()
- print(customichars)
- def forrangeleft():
- button1["text"] = "5"
- button2["text"] = "5"
- root.update()
- time.sleep(1)
- button1["text"] = "4"
- button2["text"] = "4"
- root.update()
- time.sleep(1)
- button1["text"] = "3"
- button2["text"] = "3"
- root.update()
- time.sleep(1)
- button1["text"] = "2"
- button2["text"] = "2"
- root.update()
- time.sleep(1)
- button1["text"] = "1"
- button2["text"] = "1"
- root.update()
- time.sleep(1)
- button1["text"] = "0"
- button2["text"] = "0"
- root.update()
- time.sleep(1)
- button1["text"] = "Cracking..."
- button2["text"] = "Cracking..."
- root.update()
- for i in range(10000):
- keyboard.write(str(i))
- button1["text"] = "Done"
- button2["text"] = "Done"
- def autokeybright():
- button1["text"] = "STAGE2L"
- button2["text"] = "STAGE2R"
- def autokeybleft():
- button2["text"] = "Stage2R"
- button1["text"] = "Stage2L"
- root = tk.Tk()
- def_font = tk.font.nametofont("TkDefaultFont")
- def_font.config(size=30)
- root.title("Brute Force")
- root.configure(bg="#999999")
- monitor_center_x = root.winfo_screenwidth() / 2 - 500
- monitor_center_y = root.winfo_screenheight() / 2 - 250
- root.geometry("1000x500+%d+%d" % (monitor_center_x, monitor_center_y))
- root.resizable(width=False, height=False)
- quit_button = ttk.Button(root, text="Programm beenden", command=root.destroy, state=tk.NORMAL)
- quit_button.pack(padx=10, pady=10, side="bottom", fill="x")
- button1 = ttk.Button(root, text="for i in range", compound="left", padding=10, command=stage1left)
- button1.pack(pady=30, padx=30, side="left", expand=True, fill="both")
- button2 = ttk.Button(root, text="bruteforce", compound="left", padding=10, command=stage1right)
- button2.pack(pady=30, padx=30, side="right", expand=True, fill="both")
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment