-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
78 lines (67 loc) · 2.42 KB
/
main.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#############################
# Code of Clarity Tool #
# Main dev : Al3xUI #
#############################
from platform import system
from time import sleep
from modules.sql_tool import SqlInjectionTools
from modules.wordlist_tools import WordlistTools
from core import *
from modules.xss_tools import XssTools
from tool_manager import ToolManager
# <-- We commented the backdoor, see?
all_tools = [
SqlInjectionTools(),
WordlistTools(),
XssTools(),
ToolManager(),
]
class AllTools(ClarityToolsCollection):
TITLE = "All tools"
TOOLS = all_tools
def show_info(self):
clear()
menu()
if __name__ == "__main__":
try:
if system() == 'Windows':
fpath = os.path.expanduser("~\\claritytoolpath.txt")
elif system() == 'Linux':
fpath = os.path.expanduser("~/.claritytoolpath")
else:
print("Your Platform is not supported")
sys.exit(0)
if not os.path.exists(fpath):
os.system('cls' if system() == 'Windows' else 'clear')
# run.menu()
print("""
[@] Set Path (All your tools will be installed in that directory)
[1] Manual
[2] Default
""")
choice = input("Clarity Tool [>] ").strip()
if choice == "1":
inpath = input("Enter Path (with Directory Name) >> ").strip()
with open(fpath, "w") as f:
f.write(inpath)
print("Successfully Set Path to: {}".format(inpath))
elif choice == "2":
autopath = "C:\\Clarity-Tool\\" if system() == 'Windows' else "~/.clarity-tool/"
with open(fpath, "w") as f:
f.write(autopath)
print("Your Default Path Is: {}".format(autopath))
sleep(3)
else:
print("Try Again..!!")
sys.exit(0)
with open(fpath) as f:
archive = f.readline().strip()
os.makedirs(archive, exist_ok=True)
os.chdir(archive)
AllTools().show_options()
except KeyboardInterrupt:
print("\nExiting ..!!!")
sleep(2)
# Une partie du code vien de HackingTool by Z4nzu
# Arretez de vous br**ler sur des idée de merde en mode "ya backdoor" lisez ce putain de code et arretez de me faire chier
# cordialement le dev le plus smart UwU