-
Notifications
You must be signed in to change notification settings - Fork 1
/
mackali.py
88 lines (81 loc) · 2.92 KB
/
mackali.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
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python3
import os
import sys
from categories import categories
from gear import gear
def clear_screen():
"""Clears the terminal screen."""
os.system('clear' if os.name == 'posix' else 'cls')
def display_banner():
"""Displays the banner for MacKali."""
print(gear)
print("""
___ ___ _ __ _ _
| \/ | | | / / | (_)
| . . | __ _ ___| |/ / __ _| |_
| |\/| |/ _` |/ __| \ / _` | | |
| | | | (_| | (__| |\ \ (_| | | |
\_| |_/\__,_|\___\_| \_/\__,_|_|_|
""")
print("Welcome to MacKali!\n")
print("Categories:")
print("1. Information Gathering")
print("2. Vulnerability Analysis")
print("3. Wireless Attacks")
print("4. Web Application Analysis")
print("5. Exploitation Tools")
print("6. Password Attacks")
print("7. Sniffing & Spoofing")
print("8. Maintaining Access")
print("9. Reverse Engineering")
print("10. Forensics Tools")
print("0. Exit")
def display_tools(category):
"""Displays the tools for the selected category."""
print(f"\nTools for {category}:\n")
tools = categories[category]
for i, tool in enumerate(tools):
print(f"{i+1}. {tool} - {tools[tool]}")
print("0. Back")
def install_tool(tool):
"""Installs the selected tool using Homebrew."""
os.system(f"brew install {tool}")
def main():
clear_screen()
display_banner()
while True:
choice = input("\nEnter your choice: ")
if choice == '0':
sys.exit()
elif choice.isdigit() and 1 <= int(choice) <= 10:
clear_screen()
display_banner()
category = {
'1': 'Information Gathering',
'2': 'Vulnerability Analysis',
'3': 'Wireless Attacks',
'4': 'Web Application Analysis',
'5': 'Exploitation Tools',
'6': 'Password Attacks',
'7': 'Sniffing & Spoofing',
'8': 'Maintaining Access',
'9': 'Reverse Engineering',
'10': 'Forensics Tools'
}[choice]
display_tools(category)
while True:
choice = input("\nEnter your choice: ")
if choice == '0':
clear_screen()
display_banner()
break
elif choice.isdigit() and 1 <= int(choice) <= len(categories[category]):
tool = list(categories[category].keys())[int(choice)-1]
install_tool(tool)
input(f"\n{tool} has been installed. Press Enter to continue...")
clear_screen()
display_banner()
else:
print("Invalid choice. Please try again.")
if __name__ == '__main__':
main()