-
Notifications
You must be signed in to change notification settings - Fork 38
/
horus.py
executable file
·290 lines (256 loc) · 9.62 KB
/
horus.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
import sys # System stuff.
import os # Operating System functions.
from colorama import Fore # For text colour.
import argparse # For adding arguments.
import etc.init.banner as banner
import src.main as main
# Modules
import src.apicon as apicon
# # SECURITY.
import src.modules.ovpn as ovpn
import src.modules.pvpn as pvpn
# ENUMERATION.
import src.modules.recpull as recpull
# OSINT.
import src.modules.shodan as shodan
import src.modules.numlook as numlook
import src.modules.geolock as geolock
import src.modules.cryptotrace as cryptotrace
import src.modules.mactrace as mactrace
import src.modules.vt as vt
import src.modules.flightinfo as flightinfo
import src.modules.wigle as wigle
import src.modules.bankindex as bankindex
import src.modules.exif as exif
import src.modules.ytd as ytd
import src.modules.falcon as falcon
# CASE-GEN.
# SDB.
# Loki.
import src.modules.loki_decrypt as loki_decrypt
import src.modules.loki_discovery as loki_discovery
import src.modules.loki_encrypt as loki_encrypt
import src.modules.loki_keygen as loki_keygen
# FORENSICS.
# Clears screen
os.system("clear")
parser = argparse.ArgumentParser()
ap = parser.add_mutually_exclusive_group()
ap.add_argument('-apicon', help='Configure the API settings for Horus\n', action="store_true")
# SECURITY.
#ap.add_argument('-Torshell', help='\n', action="store_true")
ap.add_argument('-pvpn', help='\n', action="store_true")
ap.add_argument('-ovpn', help='Connect to an OpenVPN server using a config/profile file.\n', action="store_true")
# ENUMERATION.
#ap.add_argument('-Fallenflare', help='\n', action="store_true")
ap.add_argument('-recpull', help='\n', action="store_true")
#ap.add_argument('-Anonfile', help='\n', action="store_true")
#ap.add_argument('-Onionshare', help='\n', action="store_true")
# OSINT.
ap.add_argument('-shodan', help='Call on Loki to encrypt the home directory and pull the encryption key.\n', action="store_true")
ap.add_argument('-wigle', help='Use an API for SSID/BSSIDs stat, locations, & Bluetooth data.\n', action="store_true")
ap.add_argument('-numlook', help='Look up validity, carriers, names of phone numbers globally.\n', action="store_true")
ap.add_argument('-vt', help='Connect to the virus-total API to scan, or screen files, links, etc.\n', action="store_true")
ap.add_argument('-geolock', help='Shodan & auxiliary API based IP tracing & tracking.\n', action="store_true")
ap.add_argument('-bankindex', help='Search up BIN/IIN, Sort Codes, Cheque details, etc.\n', action="store_true")
ap.add_argument('-mactrace', help='Type in an MAC address to get the vendor or device.', action="store_true")
ap.add_argument('-flightinfo', help='\n', action="store_true")
ap.add_argument('-exif', help='Check exif data on a file, or wipe it clean.\n', action="store_true")
ap.add_argument('-licenseinfo', help='\n', action="store_true")
ap.add_argument('-cryptotrace', help='Transaction information, & crypto-wallet tracing.', action="store_true")
#ap.add_argument('-Dischook', help='\n', action="store_true")
ap.add_argument('-ytd', help='\n', action="store_true")
ap.add_argument('-falcon', help='\n', action="store_true")
ap.add_argument('-lokiencrypt', help='\n', action="store_true")
ap.add_argument('-lokidecrypt', help='\n', action="store_true")
ap.add_argument('-lokigen', help='\n', action="store_true")
ap.add_argument('-lokiprobe', help='\n', action="store_true")
#ap.add_argument('-Leverage', help='\n', action="store_true")
# CASE-GEN.
#ap.add_argument('-Casegenerate', help='\n', action="store_true")
#ap.add_argument('-Casesecure', help='\n', action="store_true")
#ap.add_argument('-Casedelete', help='\n', action="store_true")
# SDB.
#ap.add_argument('-sdb', help='Create or search through your custom horus database built in SQL.\n', action="store_true")
# LOKI.
args = vars(parser.parse_args())
from io import StringIO
import sys
class Capturing(list):
def __enter__(self):
self._stdout = sys.stdout
sys.stdout = self._stringio = StringIO()
return self
def __exit__(self, *args):
self.extend(self._stringio.getvalue().splitlines())
del self._stringio # free up some memory
sys.stdout = self._stdout
if args['apicon']: # Runs the apicon program.
while True:
try:
apicon.apicon()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['pvpn']: # Runs the pvpn program.
while True:
try:
pvpn.pvpn()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['ovpn']:
while True:
try:
ovpn.ovpn()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
if args['shodan']: # Runs the shodan program.
while True:
try:
shodan.run_shodan()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['numlook']: # Runs the numlook program.
while True:
try:
numlook.numlook()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['geolock']: # Runs the geolock program.
while True:
try:
geolock.geolock()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['mactrace']: # Runs the mactrace program.
while True:
try:
mactrace.mactrace()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['cryptotrace']: # Runs the cryptotrace program.
while True:
try:
cryptotrace.cryptotrace()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['vt']: # Runs the vt program.
while True:
try:
vt.vt()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['flightinfo']: # Runs the flightinfo program.
while True:
try:
flightinfo.flightinfo()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['wigle']: # Runs the wigle program.
while True:
try:
wigle.wigle()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['bankindex']: # Runs the bankindex program.
while True:
try:
bankindex.bankindex()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['exif']: # Runs the exif program.
while True:
try:
exif.exif()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['ytd']: # Runs the ytd program.
while True:
try:
ytd.ytd()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['falcon']: # Runs the falcon program.
while True:
try:
falcon.falcon()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['lokiencrypt']: # Runs the loki_encrypt program.
while True:
try:
loki_encrypt.loki_encrypt()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['lokidecrypt']: # Runs the loki_decrypt program.
while True:
try:
loki_decrypt.loki_decrypt()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['lokigen']: # Runs the loki_keygen program.
while True:
try:
loki_keygen.loki_keygen()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['lokiprobe']: # Runs the loki_discovery program.
while True:
try:
loki_discovery.loki_discovery()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if args['recpull']: # Runs the recpull program.
while True:
try:
recpull.recpull()
os._exit(0)
except Exception as error:
print(f">_ {Fore.RED}FAILURE{Fore.WHITE}: {error}\n")
os._exit(0)
if __name__ == '__main__':
try:
banner.banner()
main.main_script()
except KeyboardInterrupt:
print(f'\n{Fore.YELLOW}You interrupted the program.{Fore.WHITE}')
try:
sys.exit(0)
except SystemExit:
os._exit(0)