-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
66 lines (60 loc) · 2.07 KB
/
run.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
import os, gui
import scan, generate
while True:
gui.banner()
m=gui.select()
if(m=="1"):
gui.bannerNoAuthor()
m2=gui.select_scan()
if(m2=="1"):
print(">> Insert country code: ", end="")
country_code=str(input())
print("\033[35m+---------------------------------------------------------+\033[0m\033[35m")
while True:
try:
scan.byCountry(country_code)
except:
print("\033[31m[ ERROR ]\033[0m")
elif(m2=="2"):
print("\033[35m+---------------------------------------------------------+\033[0m\033[35m")
while True:
try:
scan.ByRandom()
except:
print("\033[31m[ ERROR ]\033[0m")
else:
print("\033[0m")
os._exit(0)
elif(m=="2"):
gui.bannerNoAuthor()
m2=gui.select_generate()
if(m2=="1"):
print(">> Insert country code: ", end="")
country_code=str(input())
print("\033[35m+---------------------------------------------------------+\033[0m\033[35m")
while True:
try:
generate.byCountryCode(country_code)
except:
print("\033[31m[ ERROR ]\033[0m")
elif(m=="2"):
print(">> Insert CIDR (ej: 127.0.0.1/24): ", end="")
cidr=str(input())
print("\033[35m+---------------------------------------------------------+\033[0m\033[35m")
generate.byCIDR(cidr)
elif(m=="3"):
print("\033[35m+---------------------------------------------------------+\033[0m\033[35m")
while True:
try:
generate.randomCIDR()
except:
print("\033[31m[ ERROR ]\033[0m")
else:
print("\033[0m")
os._exit(0)
elif(m=="3"):
print("\033[0m")
os._exit(0)
else:
print("\033[0m")
os._exit(0)