hartherbert / InstabotJS

NodeJS Instagram-Bot made with 🖤 Without Instagram-API, only login and password is needed.
MIT License
67 stars 24 forks source link

BOT INIT FAILED Could not login with your username and password... Try again. #4

Open giladfuchs opened 4 years ago

giladfuchs commented 4 years ago

also many people complain about it on youtube comment.

I try to run it locally on Ubuntu . and I sign in to instagram on my chrome browser.

kh-3379 commented 4 years ago

plz answer @hobbydevs

joserealdev commented 4 years ago

I've been doing some research and looks like ig has changed the way you send credentials. Now is encoded instead of plain text

cjconnor24 commented 4 years ago

Yeah I'm also seeing this issue. @joserealdev any idea what the encoding needs to be?

joserealdev commented 4 years ago

@cjconnor24 To be honest, no idea. But if you want to use it anyway, you can just login in the web and get your password encoded, then put it in the config file and change the key password to enc_password in the login form at http.service.js

cjconnor24 commented 4 years ago

@cjconnor24 To be honest, no idea. But if you want to use it anyway, you can just login in the web and get your password encoded, then put it in the config file and change the key password to enc_password in the login form at http.service.js

Good call, thanks 👍

R1D3 commented 3 years ago

how can we get encoded password from web please ?

joserealdev commented 3 years ago

how can we get encoded password from web please ?

Just login and get the password encoded from the ajax call

ardasnturk commented 3 years ago

in /services/http.service.js replace the password part password: credentials.password, with the following:
enc_password: '#PWD_INSTAGRAM_BROWSER:0:{time}:'+credentials.password, Insta changed the login methods

jakeau commented 3 years ago

@ArdaSenturk is this still working I have had no luck with it. Cheers

Edit:

Magically tried again 30 minutes later and it worked cheers.

ghost commented 3 years ago

Can verify what @ArdaSenturk said.

/services/http.service.js

const formdata = this.getFormData({
    username: credentials.username,
    enc_password: '#PWD_INSTAGRAM_BROWSER:0:{time}:' + credentials.password,
});
inquietto commented 3 years ago

How to get de encode password from web? I don't found the method with ajax