-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetworkEnum.py
71 lines (57 loc) · 1.89 KB
/
NetworkEnum.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
from NmapComp import nmapcomp
from NmapServ import nmapportserv
from NmapLiveHost import livehost
from NmapOs import nmapos
from NmapNSE import nmapnse
#Color
grey = "\033[1;37m"
red = "\033[1;31m"
green = "\033[1;32m"
yellow = "\033[1;33m"
cyan = "\033[1;96m"
purple = "\033[1;35m"
def networkenum():
from Info3num import main_menu
print(yellow + """
Available Scripts
<a> Nmap Comprehensive (all)
<b> Nmap Service Version Detection
<c> Nmap OS Detection
<d> Nmap Live Host Detection
<e> Nmap Scripting Engine (NSE-ALL)
""")
inp = (input(cyan + "Choose >> "))
if (inp == 'a'):
nmapcomp()
elif (inp == 'b'):
nmapportserv()
elif (inp == 'c'):
nmapos()
elif (inp == 'd'):
livehost()
elif (inp == 'e'):
nmapnse()
elif (inp == 'back'):
main_menu()
elif (inp == 'exit'):
exit()
elif (inp == 'x'):
print(red + "Hint :")
print(green + "ls " + grey + " - to list scripts.")
print(green + "back " + grey + " - previous modules.")
print(green + "exit " + grey + "- to exit the tool.")
elif (inp == 'ls'):
print(green + """
Tools available
<a> Nmap Comprehensive (all)
<b> Nmap Service Version Detection
<c> Nmap OS Detection
<d> Nmap Live Host Detection
<e> Nmap Scripting Engine (NSE-ALL)
""")
else:
print(red + "Enter an valid option")
while True:
networkenum()
if __name__ == "__main__":
networkenum()