-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
122 lines (108 loc) · 3.08 KB
/
main.py
File metadata and controls
122 lines (108 loc) · 3.08 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
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
from src import DTP, ITD, GRABBER
import os, sys, time
from rich.console import Console
from rich_gradient import Gradient
import random, platform
gr = [
"black",
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"white",
"orange",
"purple",
"pink",
"brown",
"gray",
"lime",
"teal",
"navy",
"olive",
"maroon",
"silver",
"gold",
"salmon",
"violet",
"indigo",
"turquoise",
"aqua",
"fuchsia",
"coral",
"crimson",
"skyblue",
"darkgreen",
"lightgreen",
"lightblue",
"darkred",
"darkblue",
"midnightblue",
"hotpink",
"orchid",
"khaki",
"beige",
"chocolate",
"tan",
"peru",
"seagreen",
"slategray",
"lightsteelblue",
"mediumorchid",
"steelblue"
]
gr1 = random.choice(gr)
gr2 = random.choice(gr)
gr3 = random.choice(gr)
def clear():
os.system("cls" if os.name == "nt" else "clear")
def banner():
console = Console()
banner_text = r'''
_ _ _____ ____
/\ | | |_ _| / __ \
/ \ | | | | | _ __ | | | |_ __ ___
/ /\ \ | | | | | | '_ \| | | | '_ \ / _ \
/ ____ \| | |_| |_| | | | |__| | | | | __/
/_/ \_\_|_|_____|_| |_|\____/|_| |_|\___|
Author : iSholved
Version : 1.0
GitHub : iSholvedx
All-in-One Domain & IP Tool
A Python tool to convert domains to IPs
perform reverse IP lookupsand scrape new domains—fast
multi-threaded, and easy to use.
'''
console.print(Gradient(banner_text, colors=[gr1, gr2, gr3]))
def main():
os.system("cls" if os.name == "nt" else "clear")
banner()
print("1. Domain TO IP")
print("2. Reverse IP")
print("3. Grabber")
try:
choice = input("Choose: ").strip()
print(f"You selected: '{choice}'") #
time.sleep(1)
if choice == "1":
print("Running Domain TO IP...")
os.system("cls" if os.name == "nt" else "clear")
DTP.main()
elif choice == "2":
print("Running Reverse IP...")
os.system("cls" if os.name == "nt" else "clear")
ITD.main()
elif choice == "3":
print("Running Grabber...")
os.system("cls" if os.name == "nt" else "clear")
GRABBER.main()
else:
print("Invalid Option")
os.system("cls" if os.name == "nt" else "clear")
time.sleep(2)
except KeyboardInterrupt:
print("\nExiting...")
sys.exit()
if __name__ == "__main__":
main()