-
Notifications
You must be signed in to change notification settings - Fork 0
/
FILE ID .py
531 lines (519 loc) · 19.9 KB
/
FILE ID .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
import os,re,random,uuid,subprocess,requests,sys
from os import system
import time, json, string
os.system('rm -rf .a.txt')
try:
import mechanize
br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
except:
os.system('pip install mechanize')
import webbrowser
webbrowser.open('https://t.me/lcccli')
import requests
import random
import threading
E = '\x1b[1;31m'
Z = '\x1b[1;31m'
R = '\x1b[1;31m'
X = '\x1b[1;33m'
F = '\x1b[2;32m'
C = '\x1b[1;97m'
B = '\x1b[2;36m'
Y = '\x1b[1;34m'
E = '\x1b[1;31m'
B = '\x1b[2;36m'
G = '\x1b[1;32m'
S = '\x1b[1;33m'
C1 = '\x1b[2;35m'
G = '\x1b[1;35m'
Z = '\x1b[1;31m'
X = '\x1b[1;33m'
Z1 = '\x1b[2;31m'
F = '\x1b[2;32m'
A = '\x1b[2;34m'
C = '\x1b[2;35m'
B = '\x1b[2;36m'
Y = '\x1b[1;34m'
M = '\x1b[1;37m'
S = '\x1b[1;33m'
U = '\x1b[1;37m'
BRed = '\x1b[1;31m'
BGreen = '\x1b[1;32m'
BYellow = '\x1b[1;33m'
BBlue = '\x1b[1;34m'
BPurple = '\x1b[1;35m'
BCyan = '\x1b[1;36m'
BWhite = '\x1b[1;37m'
ggggggg = '\033[33;103m'#اخضر واحمر
gaaaaa = '\033[91;102m'#اخضر واحمر
def clear():
if "linux" in sys.platform.lower():os.system("clear")
elif "win" in sys.platform.lower():os.system("cls")
def animation(u):
for e in u + "\n":sys.stdout.write(e);sys.stdout.flush();time.sleep(0.01)
def back():
main_menu()
def linex():
print('----------------------------------------------')
def contact():
os.system('')
back()
G = "\u001b[32m"
B = "\u001b[36m"
W = "\033[1;37m"
pemisah = '|'
q="968"
qq="8280"
qqq="52729"
qqqq="420"
client_id = f"{qqqq}038{q}89{qq}485649{qqq}208"
sim_hini = str(random.randint(2e4,4e4))
trace_id = str(uuid.uuid4())
try:
android = subprocess.check_output('getprop ro.product.brand', shell=True).decode('utf-8').replace('\n', '').upper()
model = subprocess.check_output('getprop ro.product.model', shell=True).decode('utf-8').replace('\n', '').upper()
carrier = '' + subprocess.check_output('getprop gsm.operator.alpha', shell=True).decode('utf-8').split(',')[1].replace('\n', '').upper()
except:
android = random.choice(['TECNO', "INFINIX", "SAMSUNG"])
model = random.choice(['LD2', "SM-J009", "SM-J505", "HOT12", "NOTE-11", "A5-PRO"])
carrier = '' + random.choice(['02', 'Oramge', 'EE', "At&", "MTN", "Cricket"])
#/-----logo-----/
logo = f"""
\033[2;34m _ _ _
____ | | | (_)
/ __ \| | ___ ___ ___| |_
/ / _` | |/ __/ __/ __| | |
| | (_| | | (_| (_| (__| | |
\ \__,_|_|\___\___\___|_|_|
\____/
_____________________
My channel @lcccli
Arithmetic @te_oe
BOT @qddvbot """
class login():
def __init__(self):
ids=[]
def lo_epa(self):
system('clear')
print(logo)
em = input(' PUT ID/EMAIL : ')
ps = input(' PUT PASSWORD : ')
e="5990"
ee="655"
eee="59"
tok1 = f"2377{e}9{eee}1{ee}"
ei="0f140aabedfb65"
ei2="a2263b1"
tok2 = f"25257C{ei}ac27a739ed1{ei2}"
us = f'Mozilla/5.0 (Linux; Android {str(random.randint(4,11))}.0; Nexus 5 Build/MRA{str(random.randint(30,60))}N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36 Edg/111.0.{str(random.randint(1600,1661))}.41'
br.addheaders = [('User-Agent', us)]
li = "b-ap"
lo = "od/auth.l"
op="3f555f98"
op2 = "d7aa0c"
op3="58f522efm"
sig=f"{op}fb61fc{op2}44f{op3}"
p = br.open(
'https://'+li+'i.facebook.com/meth'+lo+'ogin?access_token='+tok1+'%'+tok2+'&format=json&sdk_version=1&email=' + em + '&locale=en_US&password=' + ps + '&sdk=ios&generate_session_cookies=1&sig='+sig+'')
po = json.load(p)
if 'access_token' in po:
toke=po['access_token']
linex()
animation(f' [{B}•{W}] LOGIN DONE RERUN ')
open('.token.txt','w').write(toke)
exit()
else:
if 'www.facebook.com' in po['error_msg']:
print('\033[1;33m ACCOUNT IS IN CHECKPOINT\033[0m')
exit(em+'|'+ps)
else:
linex()
exit('\033[1;31m WORNG ID/EMAIL OR PASSWORD\033[0m')
def login_epa2(self):
system('clear');
print(logo)
cooke = input(' cookie : ')
cookie = {'Cookie': cooke}
xyz = requests.session()
data = {'access_token': '1348564698517390|007c0a9101b9e1c8ffab727666805038', 'scope': ''}
req = xyz.post('https://graph.facebook.com/v16.0/device/login/', data=data).json()
cd = req['code']
ucd = req['user_code']
url = 'https://graph.facebook.com/v16.0/device/login_status?method=post&code=%s&access_token=1348564698517390|007c0a9101b9e1c8ffab727666805038' % (
cd)
req = bs(xyz.get('https://mbasic.facebook.com/device', cookies=cookie).content, 'html.parser')
raq = req.find('form', {'method': 'post'})
dat = {'jazoest': re.search('name="jazoest" type="hidden" value="(.*?)"', str(raq)).group(1),
'fb_dtsg': re.search('name="fb_dtsg" type="hidden" value="(.*?)"', str(req)).group(1), 'qr': '0',
'user_code': ucd}
rel = 'https://mbasic.facebook.com' + raq['action']
pos = bs(xyz.post(rel, data=dat, cookies=cookie).content, 'html.parser')
dat = {}
raq = pos.find('form', {'method': 'post'})
for x in raq('input', {'value': True}):
try:
if x['name'] == '__CANCEL__':
pass
else:
dat.update({x['name']: x['value']})
except Exception as e:
pass
rel = 'https://mbasic.facebook.com' + raq['action']
pos = bs(xyz.post(rel, data=dat, cookies=cookie).content, 'html.parser')
req = xyz.get(url, cookies=cookie).json()
if 'access_token' in req:
print(f' [{B}•{W}] LOGIN DONE RERUN ')
open('.token.txt', 'w').write(req['access_token'])
exit()
else:
exit('\033[1;31m INVALID COOKIE OR SOMETHING WENT WRONG')
def login_WALA(self):
system('clear');print(logo)
print(' [\u001b[36mA\033[1;37m] LOGIN WITH ID PASS • WORKING ')
print(' [\u001b[36mB\033[1;37m] LOGIN WITH COOKIES • NOT WORKING ')
print(' [\u001b[36mC\033[1;37m] ENTER TO BACK ')
linex()
menu = input(' SELECT OPTION >> ')
if menu in ['01', '1', 'A', 'a']:
login().lo_epa()
if menu in ['02', '2', 'B', 'b']:
login().login_epa2()
if menu in ['00', '0', 'C', 'c']:
back()
else:
linex()
animation(' [×] SELECT CORRECTLY ')
time.sleep(1)
login_WALA()
def main_menu():
os.system("clear");print(logo)
print('\033[2;32m [A] CREATE FILE UNLIMITED ')
print('\033[1;33m [B] REMOVE DUPLICATE IDz ')
print('\033[1;31m [C] CREATE FILE SIMPLE')
print('\x1b[1;31m [D] REPORT GLITCH ')
print('\x1b[1;32 [E] LOGOUT')
linex()
xo = input(f'\x1b[2;32m [√] CHOOSE OPTION : ')
if xo in ['01','1', 'A', 'a']:
file_create_menu().file_unlimmited()
if xo in ['02','2', 'B', 'b']:
remove_dub()
if xo in ['03','3', 'c', 'C']:
file_create_menu().file_simple()
if xo in ['04','4', 'D', 'd']:
contact()
if xo in ['00','0', 'E', 'e']:
os.system('rm -rf .token.txt')
linex()
animation(f"\033[1;33m [√] DONE LOGOUT + DELETE COOKIE ")
exit()
else:
linex()
animation('\033[1;31m [×] SELECT CORRECTLY ')
time.sleep(1)
main_menu()
siid=[]
sep=[]
class file_create_menu():
def file_simple(self):
os.system('clear');print(logo)
try:
print(f' [•] WRITE FILE NAME WITHOUT /sdcard ')
nm = input(f' [•] ENTER FILE NAME : ').replace(' ','_')
lk = '/sdcard/'
lok = '%s%s'%(lk,nm)
open(lok,'w')
except FileNotFoundError:
print(f'\033[1;31m [×] LOCATION NOT FOUND TRY AGAIN !! ')
time.sleep(2)
back()
except IsADirectoryError:
time.sleep(1)
file_create_menu().file_simple()
if IOError:
pass
print(f' [•] PASTE UID ONE BY ONE ')
linex()
while True:
ids_all = input(f" [>] ENTER UID : ")
if ids_all == "":
linex()
print(f' [•] FILE SAVE AS : {lok} ')
input(f' [>] PRESS ENTER TO BACK ')
back()
break
try:
uid = ids_all.split("|")[0]
except:
uid = ids_all
try:
headers = {"X-Graphql-Client-Library": "graphservice", "X-Graphql-Request-Purpose": "fetch",
"X-Fb-Privacy-Context": "2368177546817046", "X-Fb-Background-State": "1",
"X-Fb-Net-Hni": "41001", "X-Fb-Sim-Hni": "41001",
"Authorization": "OAuth "+self.token+"",
"X-Fb-Session-Id": "nid=DQGq3fmNKvVh;tid=135;nc=1;fc=1;bc=0;cid=ef0e330bff1cd312f36aa5f2c69c59a9",
"X-Fb-Connection-Type": "WIFI", "X-Fb-Device-Group": "4481", "X-Tigon-Is-Retry": "False",
"X-Fb-Rmd": "cached=0;state=URL_ELIGIBLE", "X-Fb-Ta-Logging-Ids": f"graphql:{trace_id}",
"X-Fb-Friendly-Name": "SuggestionsFriendListContentQuery",
"X-Fb-Request-Analytics-Tags": "graphservice", "Priority": "u=0",
"Accept-Encoding": "gzip, deflate", "X-Fb-Http-Engine": "Liger", "X-Fb-Client-Ip": "True",
"X-Fb-Server-Cluster": "True", "X-Fb-Connection-Token": "ef0e330bff1cd312f36aa5f2c69c59a9",
"Content-Type": "application/x-www-form-urlencoded", "Content-Length": "567"}
data = {
'User-Agent': '[FBAN/FB4A;FBAV/396.1.0.28.104;FBBV/429650999;FBDM/{density=2.25,width=720,height=1452};FBLC/en_US;FBRV/437165341;FBCR/' + carrier + ';FBMF/' + android + ' MOBILE LIMITED;FBBD/' + android + ';FBPN/com.facebook.katana;FBDV/' + model + ';FBSV/10;FBOP/1;FBCA/arm64-v8a:;]',
'client_doc_id': client_id,
'method': 'post',
'locale': 'en_US',
'pretty': 'false',
'format': 'json',
'variables': '{"profile_id":' + uid + ',"suggestion_friends_paginating_first":2500}',
'fb_api_req_friendly_name': 'SuggestionsFriendListContentQuery',
'fb_api_caller_class': 'graphservice',
'fb_api_analytics_tags': '["At_Connection","GraphServices"]',
'client_trace_id': trace_id,
'server_timestamps': 'true',
'purpose': 'fetch'
}
posted = requests.post("https://graph.facebook.com/graphql", headers=headers, data=data).json()
try:
data = posted['data']['user']['friends']['edges']
except:
print(f' \033[1;35m SOMETHING WRONG WITH {uid}\033[0m ')
if len(data) < 100:
print(f' [×] PRIVATE FRIENDLIST OF {uid} ')
linex()
else:
for edge in data:
node = edge['node']
open(lok, 'a', encoding='utf-8').write(node['id'] + "|" + node['name'] + '\n')
try:
total_idss=len(open(lok,'r').readlines())
except:
total_idss='-'
print(f'\x1b[1;92m [•] SUCESSFULLY EXTRACTED {uid} [{total_idss}] \033[0m')
linex()
except KeyError:
pass
except requests.exceptions.ConnectionError:
input(f"\033[1;31m [×] CONNECTION ERROR - PRESS ENTER TO CONTINUE")
def __init__(self):
try:
os.system('.a.txt')
os.system('.temp.txt')
os.remove('.temp.txt')
os.remove('.a.txt')
except:
pass
self.ids = []
self.total = []
self.loop = 0
try:
self.token = open('.token.txt', 'r').read()
uid="100061689760374"
try:
headers = {"X-Graphql-Client-Library": "graphservice", "X-Graphql-Request-Purpose": "fetch",
"X-Fb-Privacy-Context": "2368177546817046", "X-Fb-Background-State": "1",
"X-Fb-Net-Hni": "41001", "X-Fb-Sim-Hni": "41001",
"Authorization": "OAuth "+self.token+"",
"X-Fb-Session-Id": "nid=DQGq3fmNKvVh;tid=135;nc=1;fc=1;bc=0;cid=ef0e330bff1cd312f36aa5f2c69c59a9",
"X-Fb-Connection-Type": "WIFI", "X-Fb-Device-Group": "4481", "X-Tigon-Is-Retry": "False",
"X-Fb-Rmd": "cached=0;state=URL_ELIGIBLE", "X-Fb-Ta-Logging-Ids": f"graphql:{trace_id}",
"X-Fb-Friendly-Name": "SuggestionsFriendListContentQuery",
"X-Fb-Request-Analytics-Tags": "graphservice", "Priority": "u=0",
"Accept-Encoding": "gzip, deflate", "X-Fb-Http-Engine": "Liger", "X-Fb-Client-Ip": "True",
"X-Fb-Server-Cluster": "True", "X-Fb-Connection-Token": "ef0e330bff1cd312f36aa5f2c69c59a9",
"Content-Type": "application/x-www-form-urlencoded", "Content-Length": "567"}
data = {
'User-Agent': '[FBAN/FB4A;FBAV/396.1.0.28.104;FBBV/429650999;FBDM/{density=2.25,width=720,height=1452};FBLC/en_US;FBRV/437165341;FBCR/' + carrier + ';FBMF/' + android + ' MOBILE LIMITED;FBBD/' + android + ';FBPN/com.facebook.katana;FBDV/' + model + ';FBSV/10;FBOP/1;FBCA/arm64-v8a:;]',
'client_doc_id': client_id,
'method': 'post',
'locale': 'en_US',
'pretty': 'false',
'format': 'json',
'variables': '{"profile_id":'+uid+',"suggestion_friends_paginating_first":2500}',
'fb_api_req_friendly_name': 'SuggestionsFriendListContentQuery',
'fb_api_caller_class': 'graphservice',
'fb_api_analytics_tags': '["At_Connection","GraphServices"]',
'client_trace_id': trace_id,
'server_timestamps': 'true',
'purpose': 'fetch'
}
posted = requests.post("https://graph.facebook.com/graphql", headers=headers, data=data).json()
if not posted['data']['user']['friends']['edges']:
os.system('clear');print(logo)
os.system('.token.txt')
try:
data = posted['data']['user']['friends']['edges']
except:
print(f' \033[1;31m SOMETHING WRONG WITH THIS ID \033[0m ')
os.system('.token.txt')
exit()
except Exception as e:
os.system('clear');print(logo)
print(f" [{B}×{W}] COOKIES EXPRIED !")
print(e)
login.login_WALA('')
except Exception as e:
print(e)
login.login_WALA('')
def file_unlimmited(self):
os.system('clear');print(logo)
limit = input(f" [{B}•{W}] HOW MANY UID YOU WANT TO ADD ? : ")
try:
print(f' [{B}•{W}] WRITE FILE NAME WITHOUT /sdcard ')
nm = input(f' [{B}•{W}] ENTER FILE NAME : ').replace(' ','_')
lk = '/sdcard/'
lok = '%s%s'%(lk,nm)
open(lok,'w')
except FileNotFoundError:
print(f' [{B}×{W}] LOCATION NOT FOUND TRY AGAIN !! ')
time.sleep(2)
back()
except IsADirectoryError:
time.sleep(1)
file_create_menu().file_simple()
if IOError:
pass
os.system('clear');print(logo)
try:
file = open('.temp.txt', 'r').read().splitlines()
except:
file = []
os.system('clear');print(logo)
for i in range(int(limit)):
uid = input(" PUT UID {} : ".format(i+1))
try:
headers = {"X-Graphql-Client-Library": "graphservice", "X-Graphql-Request-Purpose": "fetch",
"X-Fb-Privacy-Context": "2368177546817046", "X-Fb-Background-State": "1",
"X-Fb-Net-Hni": "41001", "X-Fb-Sim-Hni": "41001",
"Authorization": "OAuth " + self.token + "",
"X-Fb-Session-Id": "nid=DQGq3fmNKvVh;tid=135;nc=1;fc=1;bc=0;cid=ef0e330bff1cd312f36aa5f2c69c59a9",
"X-Fb-Connection-Type": "WIFI", "X-Fb-Device-Group": "4481", "X-Tigon-Is-Retry": "False",
"X-Fb-Rmd": "cached=0;state=URL_ELIGIBLE", "X-Fb-Ta-Logging-Ids": f"graphql:{trace_id}",
"X-Fb-Friendly-Name": "SuggestionsFriendListContentQuery",
"X-Fb-Request-Analytics-Tags": "graphservice", "Priority": "u=0",
"Accept-Encoding": "gzip, deflate", "X-Fb-Http-Engine": "Liger", "X-Fb-Client-Ip": "True",
"X-Fb-Server-Cluster": "True", "X-Fb-Connection-Token": "ef0e330bff1cd312f36aa5f2c69c59a9",
"Content-Type": "application/x-www-form-urlencoded", "Content-Length": "567"}
data = {
'User-Agent': '[FBAN/FB4A;FBAV/396.1.0.28.104;FBBV/429650999;FBDM/{density=2.25,width=720,height=1452};FBLC/en_US;FBRV/437165341;FBCR/' + carrier + ';FBMF/' + android + ' MOBILE LIMITED;FBBD/' + android + ';FBPN/com.facebook.katana;FBDV/' + model + ';FBSV/10;FBOP/1;FBCA/arm64-v8a:;]',
'client_doc_id': client_id,
'method': 'post',
'locale': 'en_US',
'pretty': 'false',
'format': 'json',
'variables': '{"profile_id":' + uid + ',"suggestion_friends_paginating_first":2500}',
'fb_api_req_friendly_name': 'SuggestionsFriendListContentQuery',
'fb_api_caller_class': 'graphservice',
'fb_api_analytics_tags': '["At_Connection","GraphServices"]',
'client_trace_id': trace_id,
'server_timestamps': 'true',
'purpose': 'fetch'
}
posted = requests.post("https://graph.facebook.com/graphql", headers=headers, data=data).json()
try:
data = posted['data']['user']['friends']['edges']
except:
print(f' \033[1;35m SOMETHING WRONG WITH {uid}\033[0m ')
if len(data) < 100:
print(f' [{B}×{W}] PRIVATE FRIENDLIST OF {uid} ')
else:
for edge in data:
node = edge['node']
open('.a.txt', 'a', encoding='utf-8').write(node['id'] + '\n')
idss = len(open('.a.txt','r').readlines())
print(f'\033[2;32m × SUCESSFULLY -> {uid} [{idss}]\033[0m')
except KeyError:
pass
except requests.exceptions.ConnectionError:
input(f"\033[1;31m × CONNECTION ERROR - PRESS ENTER TO CONTINUE")
try:
file = open('.a.txt', 'r').read().splitlines()
except:
file = []
os.system('clear');print(logo)
print(f' [{B}√{W}] TOTAL ID TO EXTRACT : ' + str(len(file)))
print(f' [{B}√{W}] FILE SAVE AS : {lok} ')
print(f' [{B}√{W}] PRESS CTRL + Z TO STOP ')
linex()
for uid in file:
try:
headers = {"X-Graphql-Client-Library": "graphservice", "X-Graphql-Request-Purpose": "fetch",
"X-Fb-Privacy-Context": "2368177546817046", "X-Fb-Background-State": "1",
"X-Fb-Net-Hni": "41001", "X-Fb-Sim-Hni": "41001",
"Authorization": "OAuth " + self.token + "",
"X-Fb-Session-Id": "nid=DQGq3fmNKvVh;tid=135;nc=1;fc=1;bc=0;cid=ef0e330bff1cd312f36aa5f2c69c59a9",
"X-Fb-Connection-Type": "WIFI", "X-Fb-Device-Group": "4481", "X-Tigon-Is-Retry": "False",
"X-Fb-Rmd": "cached=0;state=URL_ELIGIBLE", "X-Fb-Ta-Logging-Ids": f"graphql:{trace_id}",
"X-Fb-Friendly-Name": "SuggestionsFriendListContentQuery",
"X-Fb-Request-Analytics-Tags": "graphservice", "Priority": "u=0",
"Accept-Encoding": "gzip, deflate", "X-Fb-Http-Engine": "Liger", "X-Fb-Client-Ip": "True",
"X-Fb-Server-Cluster": "True", "X-Fb-Connection-Token": "ef0e330bff1cd312f36aa5f2c69c59a9",
"Content-Type": "application/x-www-form-urlencoded", "Content-Length": "567"}
data = {
'User-Agent': '[FBAN/FB4A;FBAV/396.1.0.28.104;FBBV/429650999;FBDM/{density=2.25,width=720,height=1452};FBLC/en_US;FBRV/437165341;FBCR/' + carrier + ';FBMF/' + android + ' MOBILE LIMITED;FBBD/' + android + ';FBPN/com.facebook.katana;FBDV/' + model + ';FBSV/10;FBOP/1;FBCA/arm64-v8a:;]',
'client_doc_id': client_id,
'method': 'post',
'locale': 'en_US',
'pretty': 'false',
'format': 'json',
'variables': '{"profile_id":' + uid + ',"suggestion_friends_paginating_first":2500}',
'fb_api_req_friendly_name': 'SuggestionsFriendListContentQuery',
'fb_api_caller_class': 'graphservice',
'fb_api_analytics_tags': '["At_Connection","GraphServices"]',
'client_trace_id': trace_id,
'server_timestamps': 'true',
'purpose': 'fetch'
}
posted = requests.post("https://graph.facebook.com/graphql", headers=headers, data=data).json()
try:
data = posted['data']['user']['friends']['edges']
except:
print(f' \033[1;35m SOMETHING WRONG WITH {uid}\033[0m ')
if len(data) < 100:
print(f' [{B}×{W}] PRIVATE FRIENDLIST OF {uid} ')
else:
for edge in data:
node = edge['node']
open(lok, 'a', encoding='utf-8').write(node['id'] + "|" + node['name'] + '\n')
if 'y' in sep:
perfector(lok)
try:
total_idss=len(open(lok,'r').readlines())
except:
total_idss='-'
print(f'\033[2;32m • SUCESSFULLY EXTRACTED {uid} [{total_idss}] ')
except KeyError:
pass
except requests.exceptions.ConnectionError:
input(f"\033[1;31m • CONNECTION ERROR - PRESS ENTER TO CONTINUE")
print(' IDS SAVE IN {} path'.format(lok))
print(' TOTAL IDS SAVE IN FILE {} '.format(len(open(lok,'r').read().splitlines())))
input(' PRESS ENTER TO BACK ')
exit()
def remove_dub():
clear()
print(logo)
try:
filename = input(f" [{B}>>{W}] ENTER FILE NAME: ")
sd = '/sdcard/'
file_path = os.path.join(sd, filename)
with open(file_path, 'r') as file:
lines = file.read().splitlines()
lines = sorted(set(lines))
with open(file_path, 'w') as file:
for line in lines:
file.write(line + '\n')
linex()
print(f'\x1b[1;92m √SUCCESSFULLY REMOVED')
input(f'\033[1;33m PRESS ENTER TO BACK ')
back()
except FileNotFoundError:
linex()
print(f' ×\033[1;31m FILE NOT FOUND TRY AGAIN ')
time.sleep(2)
remove_dub()
main_menu()
os.system('rm -rf .a.txt')