-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
loxocat.py
77 lines (59 loc) ยท 2.48 KB
/
loxocat.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
from colorama import Fore, Style, init
from rich.console import Console
from rich.table import Table
import os
from user_interactions import UserInteractions
from inet_info import InetInfo
from listener import Listener
from shell_generator import ShellGenerator
from msfvenom_module import MsfvenomModule
init(autoreset=True)
console = Console()
def display_banner_and_info(listener_file_path):
banner_file_path = 'art/banner.txt'
with open(banner_file_path, 'r') as file:
lines = file.readlines()
half = len(lines) // 2
for i, line in enumerate(lines):
if i < half:
print(Fore.CYAN + line, end="")
else:
print(Fore.RED + line, end="")
InetInfo.get_info(listener_file_path)
def main():
user_interactions = UserInteractions()
listener = Listener()
shell_generator = ShellGenerator()
msfvenom_module = MsfvenomModule()
while True:
display_banner_and_info(listener.listener_file_path)
print("\n")
table = Table(show_header=False, collapse_padding=False, show_edge=False, show_lines=False)
table.add_row(Fore.YELLOW + "1", "Configure Listener ๐ง")
table.add_row(Fore.GREEN + "2", "Generate Reverse Shell ๐")
table.add_row(Fore.MAGENTA + "3", "Start Pwncat-cs ๐ Listener ๐ง")
table.add_row(Fore.BLUE + "4", "Msfvenom payloads ๐งช")
table.add_row(Fore.YELLOW + "5", "Msfconsole ๐ฎ")
table.add_row(Fore.RED + "e", "Exit ๐ช" + Style.RESET_ALL)
console.print(table)
choice = input("\nLoxocat toolbox 2.0: ")
if choice == '1':
print(Fore.YELLOW + "\nConfiguring Listener ๐ง..." + Style.RESET_ALL)
listener.configure_listener_info()
elif choice == '2':
print(Fore.GREEN + "\nStarting Reverse Shell Generator ๐..." + Style.RESET_ALL)
shell_generator.show_reverse_shells()
elif choice == '3':
print(Fore.MAGENTA + "\nRunning Pwncat-cs ๐ Listener ๐ง..." + Style.RESET_ALL)
listener.start_listener()
elif choice == '4':
print(Fore.BLUE + "\nRunning Msfvenom payloads ๐งช..." + Style.RESET_ALL)
msfvenom_module.run()
elif choice == '5':
print(Fore.YELLOW + "\nStarting Msfconsole ๐ฎ..." + Style.RESET_ALL)
os.system("msfconsole")
elif choice == 'e':
print(Fore.RED + "\nExiting..." + Style.RESET_ALL)
break
if __name__ == "__main__":
main()