mathdroid / igdm-cli

💻💬 Instagram Direct Messages in your terminal
129 stars 28 forks source link

Checkpoint Challenge Required #3

Open drepram opened 6 years ago

drepram commented 6 years ago

So I was accessing instagram on the web and I wanted to view my DM's through igdm, but somehow, I can't log in.

Is this a bug?

screen shot 2018-04-22 at 17 54 52

Logging in on igdm-cli

screen shot 2018-04-22 at 17 54 53

Ended up fucking my web session.

mathdroid commented 6 years ago

This is expected, Instagram actually uses several safety mechanisms, including this challenge. This CLI doesn't handle the errors properly (yet) hence the console.error("can't login").

Known safety mechanisms:

  1. Auth challenge from a logged in session => we should inform users to open a logged in session elsewhere
  2. Secret code, sent to email => we can let the user input the code through the CLI

For now, PRs are welcome

marjanovicsteva commented 6 years ago

I'm open to try to fix this. Is it okay for me to format other errors too (wrong username, password)?

mathdroid commented 6 years ago

Yes, feel free to include them either in the same PR or different ones 😇 On Sun, 7 Oct 2018 at 19.59 Stevan Marjanovic notifications@github.com wrote:

I'm open to try to fix this. Is it okay for me to format other errors too (wrong username, password)?

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/mathdroid/igdm-cli/issues/3#issuecomment-427651495, or mute the thread https://github.com/notifications/unsubscribe-auth/ADkzMoxoCW8izudqiFVM8C0KcVF2e1lqks5uifqTgaJpZM4Te0aU .

marjanovicsteva commented 6 years ago

Known safety mechanisms:

  1. Secret code, sent to email => we can let the user input the code through the CLI

Right now on my fork, there is a fix for wrong username/password. I also managed to send the user the verification code (via email). But when I try to verify it over code() function (defined in challenge.js:194) I get error that the function is not defined at all...

I'm sorry for the inconvenience, but are you aware of the problem or should I issue it on instagram-private-api?

Pr0ph3ta commented 6 years ago

Any update regarding this issue? I'm currently facing the same. Already tried @marjanovicsteva fork and i wasn't able to also find a good solution

marjanovicsteva commented 6 years ago

Any update regarding this issue? I'm currently facing the same. Already tried @marjanovicsteva fork and i wasn't able to also find a good solution

Hey @Pr0ph3ta , I recently contacted a guy that created igdm, a project that successfully resolves the challenge issue. He replied with the following snippet.

Client.Web.Challenge.resolve(error, 'email').then((challenge) => challenge.code('123456'))

But for some super strange reason, this promise doesn't return anything (so neither .then() or .catch() functions are called). There is no situation that is supposed to just skip promises. I mean, they promised...

If you're down to check all this together, so I could send you everything I've collected regarding this, feel free to contact me :)

amacfie commented 5 years ago

btw the script https://github.com/nemanjan00/instagram-chat does login without generating the "this was me/this wasn't me" thing

joecabezas commented 5 years ago

any updates on this?, I am getting the challenge URL, and solve it in a web browser, but after that still requires another challenge in igdm-cli, how can I login then?

isakal commented 4 years ago

Just stumbled on same exact issue, same error output. After i visit the challenge link i was given in the output, it logs me into the browser but not into the CLI.