Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Login - Error: Not logged properly #42

Open
timothymowens opened this issue Jun 1, 2019 · 7 comments
Open

Cannot Login - Error: Not logged properly #42

timothymowens opened this issue Jun 1, 2019 · 7 comments

Comments

@timothymowens
Copy link

timothymowens commented Jun 1, 2019

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
Copy link
Author

timothymowens commented Jun 1, 2019

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?

@vBm
Copy link

vBm commented Jun 1, 2019

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

@BenoitZugmeyer
Copy link
Owner

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.

@timothymowens
Copy link
Author

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.

@BenoitZugmeyer
Copy link
Owner

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.

@Abhinav1217
Copy link

Abhinav1217 commented Apr 4, 2020

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?

@JoelSjogren
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants