Repository navigation
Expand file tree
/
Copy pathmain.py
More file actions
58 lines (47 loc) · 1.3 KB
/
Copy pathmain.py
File metadata and controls
58 lines (47 loc) · 1.3 KB
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
import os
import sys
ans=True
while ans:
print("""
SYSADMIN Usefull scripts in python
""")
print ("""
1. Nmap script
2. SpeedTest
3. Pingcheck
4. Webstatus
5. Check Interfaces
8. Exit/Quit
9. Dependencies (INSTALL IF FIRST TIME!)
""")
ans=raw_input("What would you like to do? ")
if ans=="1":
print("\n Running Nmap script")
os.system("\n python map.py")
print("\n Nmap has finished")
elif ans=="2":
print("\n Running Speedtest")
os.system("\n python speedtest.py")
print("\n Speedtest has finished")
elif ans=="3":
print("\n Network Pingcheck")
os.system("\n python pingcheck.py")
print("\n Pingcheck has finished")
elif ans=="4":
print("\n Running WebStatus")
os.system("\n python webstatus.py")
print("\n WebStatus has finished")
elif ans=="5":
print("\n Running Check Interfaces")
os.system("\n python interfaces.py")
print("\n Check Interfaces has finished")
elif ans=="8":
print("\n Goodbye")
print ""
sys.exit()
elif ans=="9":
print("\n Dependencies")
os.system("\n python dependencies.py")
print("\n All dependencies installed correctly")
elif ans !="":
print("\n Not Valid Choice Try again")