-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (42 loc) · 1.89 KB
/
Copy pathmain.py
File metadata and controls
42 lines (42 loc) · 1.89 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
from scanner.scanner_ips import ip_validator
from infoIP.info_ip import information_network_or_ip, belongs_to_the_network
while True:
print("/"*20, "Menu", "/"*20)
print("1. Escanear una IP")
print("2. Escanear una RED")
print("3. Ver informacion de una IP")
print("4. Verificar si una IP pertenece a una red")
print("5. Salir")
print("/"*46)
user = int(input("Ingresa una opción: "))
match user:
case 5:
print("---------------------------------------------------")
print("Hasta luego....")
print("---------------------------------------------------")
break
case 1:
print("--------------Escanear una IP---------------")
ip_user = input("Ingresa la IP: ")
ip_validator(ip_user)
print("--------------------------------------------")
case 2:
print("--------------Escanear una RED---------------")
ip_user = input("Ingresa la RED: ")
ip_validator(ip_user)
print("----------------------------------------------")
case 3:
print("--------------INFORMACION DE UNA IP---------------")
ip_user = input("Ingresa la IP o RED: ")
information_network_or_ip(ip_user)
print("---------------------------------------------------")
case 4:
print("--------------VERIFICAR IP EN RED---------------")
ip_user = input("Ingresa la IP: ")
net_user = input("Ingresa la RED: ")
belongs_to_the_network(ip_user, net_user)
print("---------------------------------------------------")
case _:
print("---------------------------------------------------")
print("Seleccione una opción")
print("---------------------------------------------------")