-
Notifications
You must be signed in to change notification settings - Fork 1
/
Net-Recon.py
184 lines (152 loc) · 5.56 KB
/
Net-Recon.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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
from termcolor import colored
import time
from External_API import StartScan
banner = """"
_ _ _ _____
| \ | | | | | __ \
| \| | ___ | |_ | |__) | ___ ___ ___ _ __
| . ` | / _ \ | __| | _ / / _ \ / __| / _ \ | '_ \
| |\ | | __/ | |_ | | \ \ | __/ | (__ | (_) | | | | |
|_| \_| \___| \__| |_| \_\ \___| \___| \___/ |_| |_|
Jaswanth
linkedin: https://www.linkedin.com/in/jaswanth-r-32b1b1217/
GitHub: https://github.com/Jaswanthravichandran
"""""
menu = """
[1] Traceroute
[2] Ping Test
[3] DNS Lookup
[4] Reverse DNS
[5] Find DNS Host
[6] Find Shared DNS
[7] Zone Transfer
[8] Whois Lookup
[9] IP Location Lookup
[10] Reverse IP Lookup
[11] TCP Port Scan
[12] Subnet Lookup
[13] HTTP Header Check
[14] Extract Page Links
[15] Version
[16] Exit
"""
print(colored(banner, 'cyan'))
print(colored(menu, 'cyan'))
def main():
try:
choice = (input(colored('Enter option number : ', 'yellow')))
if choice == '1':
print("\n")
print("[+] Traceroute script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(1, target)
print(colored(txt, 'green'))
elif choice == '2':
print("\n")
print("[+] Ping Test script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(2, target)
print(colored(txt, 'green'))
elif choice == '3':
print("\n")
print("[+] DNS Lookup script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(3, target)
print(colored(txt, 'green'))
elif choice == '4':
print("\n")
print("[+] Reverse DNS script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(4, target)
print(colored(txt, 'green'))
elif choice == '5':
print("\n")
print("[+] Find DNS Host script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(5, target)
print(colored(txt, 'green'))
elif choice == '6':
print("\n")
print("[+] Find Shared DNS script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(6, target)
print(colored(txt, 'green'))
elif choice == '7':
print("\n")
print("[+] Zone Transfer script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(7, target)
print(colored(txt, 'green'))
elif choice == '8':
print("\n")
print("[+] Whois Lookup script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(8, target)
print(colored(txt, 'green'))
elif choice == '9':
print("\n")
print("[+] IP Location Lookup script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(9, target)
print(colored(txt, 'green'))
elif choice == '10':
print("\n")
print("[+] Reverse IP Lookup script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(10, target)
print(colored(txt, 'green'))
elif choice == '11':
print("\n")
print("[+] TCP Port Scan script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(11, target)
print(colored(txt, 'green'))
elif choice == '12':
print("\n")
print("[+] Subnet Lookup script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(12, target)
print(colored(txt, 'green'))
elif choice == '13':
print("\n")
print("[+] HTTP Header Check script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(13, target)
print(colored(txt, 'green'))
elif choice == '14':
print("\n")
print("[+] Extract Page Links script running..")
target = (input(colored("[+] Target : ", 'blue')))
print("\n")
txt = StartScan(14, target)
print(colored(txt, 'green'))
elif choice == '15':
print("\n")
print("[+] Version Checking..")
time.sleep(2)
version_number = "2.0"
time.sleep(3)
print("[+] Version : " + version_number)
elif choice == '16':
exit()
except KeyboardInterrupt:
print("\nAborted!")
quit()
except:
print("Invalid Option !\n")
return main()
if __name__ == '__main__':
main()