forked from handle1337/zeruel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzeruel.py
More file actions
43 lines (30 loc) · 799 Bytes
/
Copy pathzeruel.py
File metadata and controls
43 lines (30 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import sys
import tkinter as tk
from tkinter import ttk
from controllers.gui_bootstrap import RootWindowController
from controllers import server_manager
HOST = ""
PORT = 7121
class Scanner:
def __init__(self, master):
self.master = master
def main():
print("[[Zeruel Proxy]]")
server = server_manager.new_server()
server.start()
print(server_manager.server_threads)
root = tk.Tk()
def kill():
server_manager.stop_all()
root.quit()
root.destroy()
sys.exit()
root.protocol('WM_DELETE_WINDOW', kill)
if sys.platform.startswith("win"):
root.state("zoomed")
else:
root.attributes("-zoomed", True)
RootWindowController(root, server)
root.mainloop()
if __name__ == "__main__":
main()