forked from momika233/LostXtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetsifter.py
174 lines (144 loc) · 5.72 KB
/
netsifter.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import os
import sys
import subprocess
import time
from time import sleep
from colorama import Fore, Style, init
from rich import print as rich_print
from rich.panel import Panel
init(autoreset=True)
class Color:
BLUE = '\033[94m'
GREEN = '\033[1;92m'
YELLOW = '\033[93m'
RED = '\033[91m'
PURPLE = '\033[95m'
CYAN = '\033[96m'
RESET = '\033[0m'
ORANGE = '\033[38;5;208m'
BOLD = '\033[1m'
UNBOLD = '\033[22m'
ITALIC = '\033[3m'
UNITALIC = '\033[23m'
def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')
def loading_animation(text):
for c in text:
sys.stdout.write(c)
sys.stdout.flush()
sleep(0.01)
print()
def display_menu():
title = """
███╗ ██╗███████╗████████╗███████╗██╗███████╗████████╗███████╗██████╗
████╗ ██║██╔════╝╚══██╔══╝██╔════╝██║██╔════╝╚══██╔══╝██╔════╝██╔══██╗
██╔██╗ ██║█████╗ ██║ ███████╗██║█████╗ ██║ █████╗ ██████╔╝
██║╚██╗██║██╔══╝ ██║ ╚════██║██║██╔══╝ ██║ ██╔══╝ ██╔══██╗
██║ ╚████║███████╗ ██║ ███████║██║██║ ██║ ███████╗██║ ██║
╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚══════╝╚═╝╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
"""
# Print each line with a delay
for line in title.splitlines():
for char in line:
sys.stdout.write(Color.ORANGE + Style.BRIGHT + char)
sys.stdout.flush()
sleep(0.0040)
print()
print(Fore.WHITE + Style.BRIGHT + "─" * 65)
border_color = Color.CYAN + Style.BRIGHT
option_color = Fore.WHITE + Style.BRIGHT
print(border_color + "┌" + "─" * 63 + "┐")
options = [
"1] WP Plugin Scanner",
"2] Path Enumeration",
"3] WP Enumeration",
"4] Emails Scanner",
"5] Ports Scanner",
"6] Subdomain Scanner",
"7] Wayback URLs",
"8] Exit"
]
for option in options:
# Adjust the length to fit emojis
print(border_color + "│ " + option_color + option.ljust(60) + border_color + "│")
print(border_color + "└" + "─" * 63 + "┘")
authors = "Created by: Naho, AnonKryptiQuz, CoffinXP, HexSh1dow"
instructions = "Select an option by entering the corresponding number:"
print(Fore.WHITE + Style.BRIGHT + "─" * 65)
print(Fore.WHITE + Style.BRIGHT + authors.center(65))
print(Fore.WHITE + Style.BRIGHT + "─" * 65)
print(Fore.WHITE + Style.BRIGHT + instructions.center(65))
print(Fore.WHITE + Style.BRIGHT + "─" * 65)
def print_exit_menu():
clear_screen()
panel = Panel(
"""
__ _ ______
____ ___ / /______(_) __/ /____ _____
/ __ \/ _ \/ __/ ___/ / /_/ __/ _ \/ ___/
/ / / / __/ /_(__ ) / __/ /_/ __/ /
/_/ /_/\___/\__/____/_/_/ \__/\___/_/
Credit - Naho x AnonKryptiQuz x Coffinxp x Hexsh1dow
""",
style="bold green",
border_style="blue",
expand=False
)
rich_print(panel)
print(Color.RED + "\n\nSession Off ...\n")
exit()
def handle_selection(selection):
if selection == '3':
clear_screen()
print("\033[92m[+] Launching WP Enumeration...\033[0m")
WP_enum = "python3 module/WPenum.py"
subprocess.run(WP_enum, shell=True)
elif selection == '5':
clear_screen()
print(Color.GREEN + "[+] Launching Ports Scanner...")
WP_enum = "python3 module/ports.py"
subprocess.run(WP_enum, shell=True)
elif selection == '6':
clear_screen()
print(Color.GREEN + "[+] Launching Subdomain Scanner...")
WP_enum = "python3 module/subdomi.py"
subprocess.run(WP_enum, shell=True)
elif selection == '7':
clear_screen()
print(Color.GREEN + "[+] Launching Wayback URLs...")
WP_enum = "python3 module/wayback.py"
subprocess.run(WP_enum, shell=True)
elif selection == '2':
clear_screen()
print(Color.GREEN + "[+] Launching Path Enumeration...")
WP_enum = "python3 module/path.py"
subprocess.run(WP_enum, shell=True)
elif selection == '1':
clear_screen()
print(Color.GREEN + "[+] Launching WP Plugin Scanner...")
WP_enum = "python3 module/plugin.py"
subprocess.run(WP_enum, shell=True)
elif selection == '4':
clear_screen()
print(Color.GREEN + "[+] Launching Emails Scanner...")
WP_enum = "python3 module/emails.py"
subprocess.run(WP_enum, shell=True)
elif selection == '8':
clear_screen()
print_exit_menu()
else:
print(Color.RED + "[!] Invalid selection, try again...")
def main():
clear_screen()
sleep(1)
clear_screen()
while True:
display_menu()
choice = input(f"\n{Fore.CYAN}[?] Select an option (0-8): {Style.RESET_ALL}").strip()
handle_selection(choice)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print_exit_menu()
sys.exit(0)