-
Notifications
You must be signed in to change notification settings - Fork 25
/
create.py
622 lines (594 loc) · 35.3 KB
/
create.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
#--> Author's Info
Author = 'Dapunta Khurayra X'
Facebook = 'Facebook.com/Dapunta.Khurayra.X'
Instagram = 'Instagram.com/Dapunta.Ratya'
Whatsapp = '082245780524'
YouTube = 'Youtube.com/channel/UCZqnZlJ0jfoWSnXrNEj5JHA'
#--> Warna
P = "\x1b[38;5;231m" # Putih
M = "\x1b[38;5;196m" # Merah
H = "\x1b[38;5;46m" # Hijau
A = '\x1b[38;5;248m' # Abu-Abu
#--> Import Module & Run
try :
import os, sys, time, re, datetime, random
from datetime import datetime
except Exception as e :
print(e)
exit('\nTerjadi Kesalahan!')
try :
import requests
except Exception as e :
os.system('pip install requests')
import requests
try :
import bs4
from bs4 import BeautifulSoup as bs
except Exception as e :
os.system('pip install bs4')
import bs4
from bs4 import BeautifulSoup as bs
#--> Global Variable
auth1 = 'Dapunta Khurayra X'
auth2 = 'Suci Maharani Putri'
reco = 'Gausa Direcode Bos, Tinggal Pake Aja'
rede = 'Dibilangin Gausa Direcode'
key = len(auth1)*len(auth2)-len(auth1)
bulan = {'1':'Januari','2':'Februari','3':'Maret','4':'April','5':'Mei','6':'Juni','7':'Juli','8':'Agustus','9':'September','10':'Oktober','11':'November','12':'Desember'}
ok = 0
cp = 0
boys_name = ['Axel Lateef Noah','Anzel Qasim Wisthara','Basheer Malik Yazdan','Bernardus Clementine Christian','Carel Vasco Zachariah','Cyrus Osmanth Elkanah','Damian Vasyl Isaac','Dominic Valdi Xander','Ephraim Benedict Gevariel','El Fatih Ghazwan','Fawwaz Rafisqy Ezaz','Faheem Fakhri Isyraq','Gianluca Nathanael Nadav','Haddad Ammar Ar-Rayyan','Istafa Tabriz Qiwam','Kenneth Krisantus Lazarus','Nathanael Alfred William','Vaskylo Yeremia Clearesta','Xaferius Eliel Antonios','Yesaya Nathanael Liam']
girls_name = ['Atika Fithriya Tsabita','Alya Kinana Juwairiyah','Adzkiya Naila Taleetha','Adiva Arsyila Savina','Aqeela Nabiha Sakhi','Bilqis Adzkiya Rana','Chayra Ainin Qulaibah','Caliana Fiona Syafazea','Chaerunnisa Denia Athalla','Dhawiyah Nisrin Naziha','Dilara Adina Yuani','Farah Sachnaz Ashanty','Ghariyah Zharufa Abidah','Hamna Nafisa Raihana','Hanin Raihana Syahira','Izza Hilyah Nafisah','Kayla Zhara Qamela','Mahreen Shafana Almahyra','Rasahana Shafwa Ruqayah','Shakayla Aretha Shaima']
#--> Clear Terminal
def clear():
if "linux" in sys.platform.lower():os.system('clear')
elif "win" in sys.platform.lower():os.system('cls')
#--> Waktu
def waktu():
_bulan_ = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"][datetime.now().month - 1]
hari_ini = ("%s%s%s"%(datetime.now().day,_bulan_,datetime.now().year))
return(str(hari_ini.lower()))
#--> Penjeda Waktu
def jeda(t):
for x in range(t+1):
print('\r%sTunggu %s Detik '%(P,str(t)),end='');sys.stdout.flush()
t -= 1
if t == 0: break
else: time.sleep(1)
def tunggu_kode(t):
for x in range(t+1):
print('\r%sTunggu Kode %s Detik '%(P,str(t)),end='');sys.stdout.flush()
t -= 1
if t == 0: break
else: time.sleep(1)
#--> User Agent Vivo
def random_ua_vivo():
a = random.randrange(112,115)
b = random.randrange(1000,10000)
c = random.randrange(10,100)
os_ver = random.randrange(10,13) #--> OS Version
dv_typ = random.choice(['vivo 1951','vivo 1918','V2011A','V2047','V2145','V2227A','V2160']) #--> Device Type
bl_typ = random.choice(['RP1A','PKQ1','QP1A','TP1A']) #--> Build Type
dv_ver = random.randrange(100000,250000) #--> Device Version
sd_ver = random.randrange(1,10) #--> Update Version
ch_ver = f'{a}.0.{b}.{c}' #--> Chrome Version
ua = f'Mozilla/5.0 (Linux; Android {os_ver}; {dv_typ} Build/{bl_typ}.{dv_ver}.00{sd_ver}; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/{ch_ver} Mobile Safari/537.36'
return(ua)
#--> User Agent Samsung
def random_ua_samsung():
a = random.randrange(112,115)
b = random.randrange(1000,10000)
c = random.randrange(10,100)
os_ver = random.randrange(10,13) #--> OS Version
dv_typ = random.choice(['SM-S911B','SM-S908B','SM-G998B','SM-G988B','SM-G973B','SM-N986B']) #--> Device Type
bl_typ = random.choice(['PPR1','LRX21T','TP1A','RKQ1','SP1A','RP1A']) #--> Build Type
dv_ver = random.randrange(100000,250000) #--> Device Version
sd_ver = random.randrange(1,10) #--> Update Version
ch_ver = f'{a}.0.{b}.{c}' #--> Chrome Version
ua = f'Mozilla/5.0 (Linux; Android {os_ver}; {dv_typ} Build/{bl_typ}.{dv_ver}.00{sd_ver}; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/{ch_ver} Mobile Safari/537.36'
return(ua)
#--> User Agent Realme
def random_ua_realme():
a = random.randrange(112,115)
b = random.randrange(1000,10000)
c = random.randrange(10,100)
os_ver = random.randrange(10,13) #--> OS Version
dv_typ = random.choice(['RMX3686','RMX3393','RMX3081','RMX2170','RMX2061','RMX2020']) #--> Device Type
bl_typ = random.choice(['QP1A','SKQ1','TP1A','RKQ1','SP1A','RP1A']) #--> Build Type
dv_ver = random.randrange(100000,250000) #--> Device Version
sd_ver = random.randrange(1,10) #--> Update Version
ch_ver = f'{a}.0.{b}.{c}' #--> Chrome Version
ua = f'Mozilla/5.0 (Linux; Android {os_ver}; {dv_typ} Build/{bl_typ}.{dv_ver}.00{sd_ver}; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/{ch_ver} Mobile Safari/537.36'
return(ua)
#--> User Agent Custom
def random_ua_custom():
try:
_file_ = uman
if 'Android' in str(_file_):
ad_ver = 'Android ' + str(re.search(r'Android\s+(\d+)', _file_).group(1))
os_ver = 'Android ' + str(random.randrange(10,13))
ua1 = _file_.replace(ad_ver,os_ver)
else: ua1 = _file_
if 'Build' in str(_file_):
od_ver = 'Build/' + str(re.search(r'Build/([^;]+)', _file_).group(1))
bl_typ = random.choice(['QP1A','PPR1','TP1A','RKQ1','SP1A','RP1A','PKQ1'])
dv_ver = random.randrange(100000,250000)
sd_ver = random.randrange(1,10)
nw_str = 'Build/' + str('%s.%s.00%s'%(bl_typ,dv_ver,sd_ver))
ua2 = ua1.replace(od_ver,nw_str)
else: ua2 = ua1
if 'Chrome' in str(_file_):
ch_old = 'Chrome/' + str(re.search(r'Chrome/([^ ]+)', _file_).group(1))
a = random.randrange(112,115)
b = random.randrange(1000,10000)
c = random.randrange(10,100)
ch_ver = f'{a}.0.{b}.{c}'
ch_new = 'Chrome/' + str(ch_ver)
ua3 = ua2.replace(ch_old,ch_new)
else: ua3 = ua2
return(ua3)
except Exception as e:
return('Mozilla/5.0 (Linux; Android 11; vivo 1918 Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/112.0.0000.00 Mobile Safari/537.36')
#--> Convert Cookies
def cvt(st,ran):
try:
if st == 'ok': cookie = ('sb=%s;datr=%s;c_user=%s;xs=%s;fr=%s;'%(ran['sb'],ran['datr'],ran['c_user'],ran['xs'],ran['fr']))
elif st == 'cp': cookie = ('checkpoint=%s;datr=%s;fr=%s;'%(ran['checkpoint'],ran['datr'],ran['fr']))
except Exception as e : cookie = '; '.join([str(x)+"="+str(y) for x,y in ran])
return(str(cookie))
#--> Logo
def logo():
print('%s_________ __ %s________________ %s'%(P,M,P))
print('%s\_ ___ \_______ ____ _____ _/ |_ ____%s\_ ____|___ \\%s'%(P,M,P))
print('%s/ \ \/\_ __ \ __ \\\\__ \\\\ __\/ __ \%s| __) | _/%s'%(P,M,P))
print('%s\ %s0.1 %s\____| | \/ ___/ / __ \| | \ ___/%s| \ | | \\%s'%(P,M,P,M,P))
print('%s \________/|__| \_____>______/__| \____>%s|___/ |_______/%s'%(P,M,P))
print('%s\n ─────────────── %s• %sRan_Arraya %s• %s───────────────\n%s'%(A,M,P,M,A,P))
#--> Main Menu
class menu:
def __init__(self):
logo()
self.main_menu()
def main_menu(self):
print('%s[%s1%s] %sCreate Account'%(M,P,M,P))
print('%s[%s2%s] %sCheck Result'%(M,P,M,P))
print('%s[%s3%s] %sSettings'%(M,P,M,P))
print('%s[%s4%s] %sBot'%(M,P,M,P))
x = input(' %s└─ %sPilih %s: %s'%(M,P,M,P)).lower()
print('')
if x in ['1','01','001','a']: menu_create()
elif x in ['2','02','002','b']: menu_check()
elif x in ['3','03','003','c']: belum_tersedia()
elif x in ['4','04','004','d']: belum_tersedia()
else: exit('%sIsi Yang Benar!%s'%(M,P))
#--> Menu Create
class menu_create:
def __init__(self):
global kelamin, namstat, nameme, web_email, tampil, useragent, uman, passtat, password
try:os.mkdir('Akun_New')
except Exception as e :pass
print(' %s◉ %sRekomendasi %s◉ %sTidak Rekomendasi ◉ Netral'%(H,P,M,P))
print('')
kelamin = input('%s[%s•%s] %sAkun Laki/Perempuan/Random [%sl%s/%sp%s/%sr%s] : '%(M,P,M,P,H,P,H,P,M,P)).lower()
namanama = input('%s[%s•%s] %sGunakan Nama Random/Manual [%sr%s/%sm%s] : '%(M,P,M,P,M,P,H,P)).lower()
if namanama in ['m','manual','0','00']:
namstat = 'Manual'
nameme = input(' %s└─ %sNama : %s'%(M,P,M)).split(',')
else:
namstat = 'Random'
print('%s[%s•%s] %sEmail CryptoGmail/SecMail/MinuteMail'%(M,P,M,P))
web_email = input(' %s└─ %s[c/s/m] [skip=MinuteMail] : '%(M,P)).lower()
tampil = input('%s[%s•%s] %sTampilkan Akun CP [%sy%s/%st%s] : '%(M,P,M,P,M,P,H,P)).lower()
print('%s[%s•%s] %sUser Agent Vivo/Samsung/Realme/Manual'%(M,P,M,P))
useragent = input(' %s└─ %s[v/s/r/m] [skip=statis] : '%(M,P)).lower()
if useragent in ['m','manual','0','00']:
uman = input(' %s└─ %sUser Agent : %s'%(M,P,M))
if uman == '' or uman == ' ':
exit('%sIsi Yang Benar!%s'%(M,P))
else:
uman = 'Mozilla/5.0 (Linux; Android 13; RMX3686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36'
passtat = input('%s[%s•%s] %sGunakan Password Random/Manual [%sr%s/%sm%s] : '%(M,P,M,P,H,P,M,P)).lower()
if passtat in ['m','manual','b','2','02']:
password = input(' %s└─ %sPassword : %s'%(M,P,M))
if len(password) < 6:
exit('%sPassword Minimal 6 Digit!%s'%(M,P))
if password in ['akusayangkamu','123456','iloveyou','password','qwerty','sayang','anjing','bismillah']:
exit('%sGunakan Password Yang Kuat!%s'%(M,P))
else:
password = 'dapuntaloverani'
d = input('%s[%s•%s] %sBeri Delay (%sDalam Menit%s) : '%(M,P,M,P,M,P))
if d == '' or d == ' ':
d = 1
print('')
l = int(d)*60
for y in range(10000):
if key/len(auth1) == len(reco)/2: create_fb(); self.hitung(l)
else: print(reco)
def hitung(self,a):
for x in range(a+1):
print('\r[%sOK:%s%s] [%sCP:%s%s] Tunggu %s Detik '%(H,str(ok),P,M,str(cp),P,str(a)),end='');sys.stdout.flush()
a -= 1
time.sleep(1)
#--> Create Facebook Account
class create_fb:
#--> Tampung Kabeh
def __init__(self):
self.file = 'Akun_New/%s.txt'%(waktu())
self.abc = requests.Session() #--> Sesi Email
self.xyz = requests.Session() #--> Sesi Facebook
self.abc.cookies.clear()
self.xyz.cookies.clear()
if useragent in ['v','vivo','1','01','a']: self.ua = random_ua_vivo()
elif useragent in ['s','samsung','2','02','b']: self.ua = random_ua_samsung()
elif useragent in ['r','realme','3','03','c']: self.ua = random_ua_realme()
elif useragent in ['m','manual','0','00','z']: self.ua = random_ua_custom()
else : self.ua = 'Mozilla/5.0 (Linux; Android 13; RMX3686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36'
self.head_email = {'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7','Accept-Encoding':'gzip, deflate','Accept-Language':'en-US,en;q=0.9','Pragma':'akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-get-request-id,akamai-x-get-nonces,akamai-x-get-client-ip,akamai-x-feo-trace','Sec-Ch-Ua':'','Sec-Ch-Ua-Mobile':'?1','Sec-Ch-Ua-Platform':'','Sec-Fetch-Dest':'document','Sec-Fetch-Mode':'navigate','Sec-Fetch-Site':'none','Sec-Fetch-User':'?1','Upgrade-Insecure-Requests':'1','User-Agent':'Mozilla/5.0 (Linux; Android 11; vivo 1918 Build/RP1A.200720.012; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/112.0.0000.00 Mobile Safari/537.36'}
self.ua_wind = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36'
self.headers_get = {'accept' : 'text/html,application/xhtm 1+xml,application/xml;q=0.9, imag e/avif,image/webp, image/apng,*/ *;q=0.8,application/signed-exchange: v=b3;q=0.7','accept-encoding' : 'gzip, deflate','accept-language' : 'id-ID, id;q=0.9, en-US;q=0.8,en;q=0.7','cache-control' : 'max-age=0','sec-ch-prefers-color-scheme': 'light','sec-ch-ua' : '"Not: A-Brand"; v="99", "Chromium";V="112"','sec-ch-ua-full-version-list' : '"Not:A-Brand"; v "99.0.0.0", "Chromium";v="112.0.5615.137"','sec-ch-ua-mobile' : '?1','sec-ch-ua-platform' : '"Android"','sec-ch-ua-platform-version' : '"11.0.0"','sec-fetch-dest' : 'document','sec-fetch-mode' : 'navigate','sec-fetch-site' : 'none','sec-fetch-user' : '21','upgrade-insecure-requests':'1','user-agent' : self.ua}
self.generate_data()
self.scrap1()
#--> Generate Data
def generate_data(self):
self.name, soex = self.get_name().split('|')
self.nope = self.get_nope()
if web_email in ['c','cryptogmail','1','01','a']: self.email = self.get_email_cryptogmail()
elif web_email in ['s','secmail','2','02','b']: self.email = self.get_email_onesecmail()
elif web_email in ['m','minutemail','4','04','d']: self.email = self.get_email_10minutemail()
else : self.email = self.get_email_10minutemail()
if soex == 'male' : self.sex = '2'
else : self.sex = '1'
if passtat in ['m','manual','b','2','02']: self.pw = password
else: self.pw = self.get_pass()
self.ttl = {'tgl':str(random.randrange(1,29)),'bln':str(random.randrange(1,13)),'thn':str(random.randrange(1970,2001))}
self.perangkat = '; m_pixel_ratio=1.25; dpr=1.125; wd=360x780; locale=id_ID;'
#--> Generate Random Name
def get_name(self):
if kelamin in ['l','laki','1','01','a']: gder = 'male'
elif kelamin in ['p','perempuan','2','02','b']: gder = 'female'
else: gder = random.choice(['male','female'])
try:
if gder == 'male':
if namstat == 'Manual': name = random.choice(nameme)
else: name = random.choice(boys_name)
else:
if namstat == 'Manual': name = random.choice(nameme)
else: name = random.choice(girls_name)
except Exception as e:
nam1 = random.choice(['Eka','Dwi','Tri','Budi','Indah','Dewi'])
nam2 = random.choice(['Nurhayati','Handoko','Setiyani','Susanto','Permata'])
nam3 = random.choice(['Triatmaja','Siagian','Manopo','Jayaningrat','Widodo'])
name = f'{nam1} {nam2} {nam3}'
klop = f'{name}|{gder}'
return(klop)
#--> Generate Random Phone Number
def get_nope(self):
na = random.choice(['77','78','59'])
ni = str(random.randrange(1000,10000))
nu = str(random.randrange(10000,100000))
nope = '08%s%s%s'%(na,ni,nu)
return(nope)
#--> Generate Random Password
def get_pass(self):
up = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
lw = up.lower()
nb = '0123456789'
ch = up + lw + nb
pw = ''.join(random.choice(ch) for _ in range(12))
return(pw.lower())
#--> Generate Email & Code From Cryptogmail
def get_email_cryptogmail(self):
nam = self.name.lower().replace(' ','')
jam = str(datetime.now().strftime("%X")).replace(':','')
ran = str(random.randrange(1000,10000))
dom = random.choice(['fexbox.org','chitthi.in','fextemp.com','any.pink','merepost.com'])
email = f'{nam}.{jam}.{ran}@{dom}'
return(email)
def get_code_cryptogmail(self):
url = f'https://tempmail.plus/api/mails?email={self.email}'
req = self.abc.get(url,headers=self.head_email).json()
kode = re.search(r'FB-([^ ]+)',str(req)).group(1)
return(kode)
#--> Generate Email & Code From 1SecMail
def get_email_onesecmail(self):
nam = self.name.lower().replace(' ','')
jam = str(datetime.now().strftime("%X")).replace(':','')
ran = str(random.randrange(1000,10000))
dom = random.choice(['1secmail.com','1secmail.org','1secmail.net','kzccv.com','qiott.com','wuuvo.com','icznn.com'])
email = f'{nam}.{jam}.{ran}@{dom}'
return(email)
def get_code_onesecmail(self):
name, domain = self.email.split('@')
req = self.abc.get(f'https://www.1secmail.com/api/v1/?action=getMessages&login={name}&domain={domain}').json()
kode = re.search(r'FB-([^ ]+)',str(req)).group(1)
return(kode)
#--> Generate Email & Code From 10minutemail
def get_email_10minutemail(self):
req = bs(self.abc.get('https://10minutemail.net/m/?lang=id',headers=self.head_email,allow_redirects=True).content,'html.parser')
self.ses_email = re.search('sessionid="(.*?)"',str(req)).group(1)
self.tim_email = str(time.time()).replace('.','')[:13]
dat = {'new':'1','sessionid':self.ses_email,'_':self.tim_email}
pos = self.abc.post('https://10minutemail.net/address.api.php',data=dat,headers=self.head_email,allow_redirects=True).json()
email = pos['mail_get_mail']
self.cookie_email = '; '.join([str(x)+"="+str(y) for x,y in self.abc.cookies.get_dict().items()])
return(email)
def get_code_10minutemail(self):
dat = {'new':'0','sessionid':self.ses_email,'_':self.tim_email}
pos = self.abc.post('https://10minutemail.net/address.api.php',data=dat,headers=self.head_email,cookies={'cookie':self.cookie_email},allow_redirects=True).json()
kode = re.search(r'FB-([^ ]+)',str(pos)).group(1)
return(kode)
#--> Create Facebook Route
def scrap1(self): #--> Post Login Awal
req = bs(self.xyz.get('https://m.facebook.com/reg/?is_two_steps_login=0&cid=103&refsrc=deprecated&soft=hjk',headers=self.headers_get).content,'html.parser')
fom = req.find('form',{'method':'post'})
data = {
'lsd' : re.search('name="lsd" type="hidden" value="(.*?)"', str(fom)).group(1),
'jazoest' : re.search('name="jazoest" type="hidden" value="(.*?)"', str(fom)).group(1),
'fb_dtsg' : re.search('{"dtsg":{"token":"(.*?)",', str(req)).group(1),
'ccp' : re.search('name="ccp" type="hidden" value="(.*?)"', str(fom)).group(1),
'reg_instance' : re.search('name="reg_instance" type="hidden" value="(.*?)"', str(fom)).group(1),
'reg_impression_id' : re.search('name="reg_impression_id" type="hidden" value="(.*?)"', str(fom)).group(1),
'ns' : re.search('name="ns" type="hidden" value="(.*?)"', str(fom)).group(1),
'app_id' : re.search('name="app_id" type="hidden" value="(.*?)"', str(fom)).group(1),
'logger_id' : re.search('name="logger_id" type="hidden" value="(.*?)"', str(fom)).group(1),
'suma_create_event' : 'suma_redirection_click_create_account',
'field_names[0]' : 'firstname',
'field_names[1]' : 'birthday_wrapper',
'field_names[2]' : 'reg_email__',
'field_names[3]' : 'sex',
'field_names[4]' : 'reg_passwd__',
'is_birthday_confirmed' : 'confirmed',
'multi_step_form' : '1',
'skip_suma' : '0',
'shouldForceMTouch' : '1',
'ref' : 'dbl',
'firstname' : self.name,
'reg_email__' : self.nope,
'sex' : self.sex,
'reg_passwd__' : self.pw,
'birthday_day' : self.ttl['tgl'],
'birthday_month' : self.ttl['bln'],
'birthday_year' : self.ttl['thn'],
'welcome_step_completed' : True,
'submission_request' : True,
'age_step_input' : False,
'did_use_age' : False,
'custom_gender' : False,
'name_suggest_elig' : False,
'was_shown_name_suggestions' : False,
'did_use_suggested_name' : False,
'use_custom_gender' : False,
'zero_header_af_client' : '',
'helper' : '',
'guid' : '',
'pre_form_step' : '',
'korean_tos_is_present' : '',
'checkbox_privacy_policy' : '',
'checkbox_tos' : '',
'checkbox_location_policy' : ''}
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
next = 'https://m.facebook.com' + fom['action']
pos = bs(self.xyz.post(next,data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
if key/len(auth1) != len(auth1): print(rede)
else:
if pos.find('title').text == 'Konfirmasikan Akun Anda': #--> Jika Akun Sudah Dibuat
self.scrap4()
else:
rog = pos.find('form',{'method':'post'})
if 'login/device-based/update-nonce' in str(rog['action']): #--> Jika Masuk Menu Save Device
self.scrap2(rog)
elif 'conf/notifmedium/send_code' in str(rog['action']): #--> Jika Langsung Masuk Menu Minta Kode Nope
self.scrap3(rog)
elif 'checkpoint' in str(rog['action']): #--> Jika Checkpoint
self.printing('CP')
else:
print('\rTerjadi Kesalahan ',end='');sys.stdout.flush()
def scrap2(self,fom): #--> Save Device OK
print('\rLolos Tahap 1 ',end='');sys.stdout.flush()
data = {
'fb_dtsg' : re.search('name="fb_dtsg" type="hidden" value="(.*?)"',str(fom)).group(1),
'jazoest' : re.search('name="jazoest" type="hidden" value="(.*?)"',str(fom)).group(1),
'flow' : 'interstitial_nux',
'next' : '',
'nux_source' : 'dbl_nux_after_reg',
'submit' : 'OK'}
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
next = 'https://m.facebook.com' + fom['action']
pos = bs(self.xyz.post(next,data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
rog = pos.find('form',{'method':'post'})
self.scrap3(rog)
def scrap3(self,fom): #--> Minta Kode Nope
print('\rLolos Tahap 2 ',end='');sys.stdout.flush()
try:
data = {
'fb_dtsg' : re.search('name="fb_dtsg" type="hidden" value="(.*?)"',str(fom)).group(1),
'jazoest' : re.search('name="jazoest" type="hidden" value="(.*?)"',str(fom)).group(1),
'medium' : 'sms',
'submit' : 'Kirim kode'}
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
next = 'https://m.facebook.com' + fom['action']
pos = bs(self.xyz.post(next,data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
self.scrap4()
except Exception as e:
self.printing('CP')
def scrap4(self): #--> Add Email
print('\rLolos Tahap 3 ',end='');sys.stdout.flush()
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
try:
req = bs(self.xyz.get('https://m.facebook.com/changeemail/',headers=self.headers_get,cookies={'cookie':cok}).content,'html.parser')
fom = req.find('form',{'method':'post'})
data = {
'fb_dtsg' : re.search('name="fb_dtsg" type="hidden" value="(.*?)"',str(fom)).group(1),
'jazoest' : re.search('name="jazoest" type="hidden" value="(.*?)"',str(fom)).group(1),
'old_email' : re.search('name="old_email" type="hidden" value="(.*?)"',str(fom)).group(1),
'reg_instance' : re.search('name="reg_instance" type="hidden" value="(.*?)"',str(fom)).group(1),
'new' : self.email,
'next' : '',
'submit' : 'Tambahkan'}
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
next = 'https://m.facebook.com' + fom['action']
pos = bs(self.xyz.post(next,data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
tunggu_kode(30)
self.scrap5(pos)
except Exception as e:
self.printing('CP')
def scrap5(self,req): #--> Confirm Code
print('\rLolos Tahap 4 ',end='');sys.stdout.flush()
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
try:
if web_email in ['c','cryptogmail','1','01','a']: code = self.get_code_cryptogmail()
elif web_email in ['s','secmail','2','02','b']: code = self.get_code_onesecmail()
elif web_email in ['m','minutemail','4','04','d']: code = self.get_code_10minutemail()
else : code = self.get_code_10minutemail()
id = re.search('c_user=(.*?);',cok).group(1)
lsd = re.search('"LSD",\[\],{"token":"(.*?)"',str(req)).group(1)
dtsg = re.search('"dtsg":{"token":"(.*?)",',str(req)).group(1)
jazoest = re.search('"jazoest", "(.*?)",',str(req)).group(1)
data = {
'contact': self.email,
'type': 'submit',
'is_soft_cliff': False,
'medium': 'email',
'code': code,
'fb_dtsg': dtsg,
'jazoest': jazoest,
'lsd': lsd,
'__user': id}
pos = bs(self.xyz.post('https://m.facebook.com/confirmation_cliff/',data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
self.semi_final()
except Exception as e:
self.printing('CP')
def zero_optin(self): #--> Khusus Mode Data (No Wifi)
try:
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()]) + self.perangkat
req1 = bs(self.xyz.get('https://mbasic.facebook.com',headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
nek = ['https://mbasic.facebook.com'+x['href'] for x in req1.find_all('a',href=True) if 'dialtone_optin_page' in str(x['href'])][0]
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()]) + self.perangkat
req2 = bs(self.xyz.get(nek,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True).content,'html.parser')
fom = req2.find('form',{'method':'post'})
data = {
'fb_dtsg' : re.search('name="fb_dtsg" type="hidden" value="(.*?)"',str(fom)).group(1),
'jazoest' : re.search('name="jazoest" type="hidden" value="(.*?)"',str(fom)).group(1),
'submit' : 'OK, Gunakan Data'}
nuk = 'https://mbasic.facebook.com' + fom['action']
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()]) + self.perangkat
pos7 = self.xyz.post(nuk,data=data,headers=self.headers_get,cookies={'cookie':cok},allow_redirects=True)
print('\rBerhasil Skip Free Mode ',end='');sys.stdout.flush()
except Exception as e: pass
def semi_final(self): #--> Sortir
print('\rLolos Tahap 5 ',end='');sys.stdout.flush()
cok = '; '.join([str(x)+"="+str(y) for x,y in self.xyz.cookies.get_dict().items()])
cok += self.perangkat
try:
if len(reco)/2 != len(auth1): clear(); exit('Ini Orang Dibilangin Gausah Direcode, Ngeyel Amat')
else:
id = re.search('c_user=(.*?);',cok).group(1)
self.zero_optin()
jeda(10)
final = check_account(id)
if final == 'OK': self.printing('OK')
else: self.printing('CP')
except Exception as e:
self.printing('CP')
def printing(self,stat): #--> Print Hasil
global ok, cp
if stat == 'OK':
cookie = cvt('ok',self.xyz.cookies.get_dict())
id = self.xyz.cookies.get_dict()['c_user']
print('\r%sStatus : %sSuccess%s '%(P,H,P))
print('Nama : %s'%(str(self.name)))
print('ID : %s'%(str(id)))
print('Pass : %s'%(str(self.pw)))
print('Email : %s'%(str(self.email)))
print('TTL : %s %s %s'%(self.ttl['tgl'],bulan[self.ttl['bln']],self.ttl['thn']))
print('Cookie : %s\n'%(str(cookie)))
open(self.file,'a+').write('%s|%s|%s|%s\n'%(self.name,id,self.email,self.pw))
ok += 1
else:
if tampil in ['t','2','02','b']: pass
else:
print('\r%sStatus : %sCheckpoint%s '%(P,M,P))
print('Nama : %s'%(str(self.name)))
print('Nope : %s'%(str(self.nope)))
print('Pass : %s\n'%(str(self.pw)))
cp += 1
#--> Menu Checker Account
class menu_check:
def __init__(self): #--> Mengecek Ketersediaan Folder
self.xyz = requests.Session()
self.file = {}
self.isi = 0
self.ok = 0
self.cp = 0
f = 'Akun_New'
if os.path.isdir(f):
p = 0
l = os.listdir(f)
for y in l:
p += 1
self.file.update({str(p):y})
c = '%s• %s%s'%(M,P,y)
print(c)
self.sortir()
else:
print('%sMaaf, Belum Ada Hasil %s:(%s\n'%(P,M,P))
def sortir(self): #--> Memilih File
try:
d = input('\n%s[%s•%s] %sMasukkan File : '%(M,P,M,P))
if d in list(self.file.keys()): l = 'Akun_New/%s'%(self.file[d])
else: l = 'Akun_New/%s'%(d)
g = open(l,'r').read().splitlines()
print('')
for a in g:
try:
nama, id, email, pw = a.split('|')
stat = check_account(id)
if stat == 'OK': self.printing('OK',nama,id,email,pw)
else: self.printing('CP',nama,id,email,pw)
except Exception as e: pass
if self.isi == 0: print('%sTidak Ada Hasil :(\n%s'%(M,P))
else: print('%sDari %s Akun, Terdapat %s%s Akun CP %sdan %s%s Akun OK\n%s'%(P,str(self.isi),M,str(self.cp),P,H,str(self.ok),P))
except Exception as e:
print('%sError : %s'%(P,e))
print('%sTerjadi Kesalahan!\n%s'%(M,P))
def printing(self,stat,nama,id,email,pw): #--> Print Hasil Cek
if stat == 'OK':
print('\r%sStatus : %sSuccess%s '%(P,H,P))
print('Nama : %s'%(str(nama)))
print('ID : %s'%(str(id)))
print('Pass : %s'%(str(pw)))
print('Email : %s\n'%(str(email)))
self.ok += 1
else:
print('\r%sStatus : %sCheckpoint%s '%(P,M,P))
print('Nama : %s'%(str(nama)))
print('ID : %s'%(str(id)))
print('Pass : %s'%(str(pw)))
print('Email : %s\n'%(str(email)))
self.cp += 1
self.isi += 1
#--> Check Account
def check_account(id):
url = f'https://www.facebook.com/p/{id}'
r = requests.Session()
head = {'accept' : 'text/html,application/xhtm 1+xml,application/xml;q=0.9, imag e/avif,image/webp, image/apng,*/ *;q=0.8,application/signed-exchange: v=b3;q=0.7','accept-encoding' : 'gzip, deflate','accept-language' : 'id-ID, id;q=0.9, en-US;q=0.8,en;q=0.7','cache-control' : 'max-age=0','sec-ch-prefers-color-scheme': 'light','sec-ch-ua' : '"Not: A-Brand"; v="99", "Chromium";V="112"','sec-ch-ua-full-version-list' : '"Not:A-Brand"; v "99.0.0.0", "Chromium";v="112.0.5615.137"','sec-ch-ua-mobile' : '?1','sec-ch-ua-platform' : '"Android"','sec-ch-ua-platform-version' : '"11.0.0"','sec-fetch-dest' : 'document','sec-fetch-mode' : 'navigate','sec-fetch-site' : 'none','sec-fetch-user' : '21','upgrade-insecure-requests':'1','user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36'}
req = bs(r.get(url,headers=head,allow_redirects=True).content,'html.parser')
title = req.find('title').text
if title == 'Facebook': return('CP')
else: return('OK')
#--> Notice
def belum_tersedia():
print('%sMaaf, Fitur Ini %sBelum Tersedia%s'%(P,M,P))
print('%sTunggu Update Selanjutnya...'%(P))
print('%sTerima Kasih!'%(P))
print('%s- %sDapunta%s\n'%(P,H,P))
#--> Trigger
if __name__ == '__main__':
clear()
menu()