-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
hackertarget.py
173 lines (150 loc) · 4.97 KB
/
hackertarget.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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from source import hackertarget_api
import time
hackertarget_logo = """
_ _ _ _
| |_ __ _ __ | |__ ___ _ _ | |_ __ _ _ _ __ _ ___ | |_
| ' \ / _` |/ _|| / // -_)| '_|| _|/ _` || '_|/ _` |/ -_)| _|
|_||_|\__,_|\__||_\_\\___||_| \__|\__,_||_| \__, |\___| \__|
|___/
Ismail Tasdelen
| github.com/ismailtasdelen | linkedin.com/in/ismailtasdelen |
"""
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(hackertarget_logo)
print(menu)
def run():
try:
choice = input("Which option number : ")
if choice == '1':
print("\n")
print("[+] Traceroute script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(1, target)
print(txt)
elif choice == '2':
print("\n")
print("[+] Ping Test script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(2, target)
print(txt)
elif choice == '3':
print("\n")
print("[+] DNS Lookup script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(3, target)
print(txt)
elif choice == '4':
print("\n")
print("[+] Reverse DNS script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(4, target)
print(txt)
elif choice == '5':
print("\n")
print("[+] Find DNS Host script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(5, target)
print(txt)
elif choice == '6':
print("\n")
print("[+] Find Shared DNS script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(6, target)
print(txt)
elif choice == '7':
print("\n")
print("[+] Zone Transfer script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(7, target)
print(txt)
elif choice == '8':
print("\n")
print("[+] Whois Lookup script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(8, target)
print(txt)
elif choice == '9':
print("\n")
print("[+] IP Location Lookup script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(9, target)
print(txt)
elif choice == '10':
print("\n")
print("[+] Reverse IP Lookup script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(10, target)
print(txt)
elif choice == '11':
print("\n")
print("[+] TCP Port Scan script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(11, target)
print(txt)
elif choice == '12':
print("\n")
print("[+] Subnet Lookup script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(12, target)
print(txt)
elif choice == '13':
print("\n")
print("[+] HTTP Header Check script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(13, target)
print(txt)
elif choice == '14':
print("\n")
print("[+] Extract Page Links script running..")
target = input("[+] Target : ")
print("\n")
txt = hackertarget_api.hackertarget_api(14, target)
print(txt)
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 run()
run()