addic7ed-cli icon indicating copy to clipboard operation
addic7ed-cli copied to clipboard

Cannot Login - Error: Not logged properly

Open timothymowens opened this issue 6 years ago • 7 comments

Whenever I try to login using the same credentials I use for the addic7ed.com website, I get the following error:

Error: Not logged properly

Command I'm running, per instructions/help:

addic7ed login

I've verified that I'm entering my credentials in properly, yet logging in fails. I've tried on 3 different machines using addic7ed-cli, same issue on all 3 machines.

I tried running in verbose mode, but there was no difference in the output. I'm running the following version:

$ addic7ed -V
addic7ed version 1.4.5

$ python --version
Python 2.7.15rc1

I also tried reinstalling, the following packages were reinstalled, issue still exists:

Successfully installed addic7ed-cli-1.4.5 certifi-2019.3.9 chardet-3.0.4 cssselect-1.0.3 idna-2.8 lxml-4.3.3 pyquery-1.4.0 requests-2.22.0 urllib3-1.25.3

Edit: I just tried using Python 3.6.7 and still have the same issue.

timothymowens avatar Jun 01 '19 05:06 timothymowens

For now, I just logged into the addic7ed.com website, then ran the following in the browser debugging console:

alert(document.cookie.match(/PHPSESSID=[^;]+/));

Then copied the session ID from the java alert into my ~/.config/addic7ed file below [session].

To test, I downloaded a sub with addic7ed-cli with my session ID stored, then checked my profile on the website to see if it recognized the download. Sure enough, it logged the download; so the session I added to my addic7ed-cli config works for now.

I'm not sure why addic7ed-cli isn't able to post to /dologin.php properly. It looks like the correct form fields are being used in the post (username, password).

Does it have anything to do with the site using https?

timothymowens avatar Jun 01 '19 06:06 timothymowens

They have added captcha on their login page (it's random) so maybe that's the issue.

vBm avatar Jun 01 '19 21:06 vBm

Indeed, it seems they have put a silent captcha. Looks like it'll be hard to bypass. Sorry guys, I don't think we'll be able to login anymore.

BenoitZugmeyer avatar Jun 03 '19 18:06 BenoitZugmeyer

Perhaps you could leave the session functionality in place, remove the login/logout for now and provide instructions for manually capturing the session ID and adding it to the .config/addic7ed file. That worked perfectly for me.

timothymowens avatar Jun 03 '19 18:06 timothymowens

Ah, yes. I'll think about it. I could do something like displaying the instructions, and then a prompt for the session id instead of a prompt for username/password.

BenoitZugmeyer avatar Jun 03 '19 18:06 BenoitZugmeyer

Same issue, I can't login because of reCAPTCHA

abhinav@abhinav-sol ~/.config $ addic7ed login
User: Abhinav1217
Password: 
Error: Make sure to reCHAPTCHA Try again

For the time being, I tried the solution mention above for using alert(document.cookie.match(/PHPSESSID=[^;]+/));. Is there any permanent solution to this?

Abhinav1217 avatar Apr 04 '20 19:04 Abhinav1217

Here's a relevant thread: http://www.sub-talk.net/topic/7806-api-for-software-usage

JoelSjogren avatar Apr 04 '20 21:04 JoelSjogren