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

Actual captha implementation, without 3rd party services #130

Open
samip5 opened this issue Dec 9, 2019 · 12 comments
Open

Actual captha implementation, without 3rd party services #130

samip5 opened this issue Dec 9, 2019 · 12 comments

Comments

@samip5
Copy link
Contributor

samip5 commented Dec 9, 2019

I would like to ask why is there no actual captha implementation that does not rely on on the wierd anime avatar thing or recaptha?
I don't want to use recaptha, so I'll be implementing or trying to an actual captha.

@samip5 samip5 changed the title Actual recaptha implementation, without 3rd party services Actual captha implementation, without 3rd party services Dec 9, 2019
@DangerOnTheRanger
Copy link
Owner

reCAPTCHA and captchouli (at least for now) have no widespread automated solvers out there, and writing/maintaining a solid, readable CAPTCHA from scratch just honestly wasn't something I was/am personally interested in. I'd accept a PR for this, but I'm curious why you wouldn't want to go with captchouli.

@samip5
Copy link
Contributor Author

samip5 commented Dec 9, 2019 via email

@DangerOnTheRanger
Copy link
Owner

Fair enough - for the record, captchouli lets you configure what characters to use, in case that helps; docs on how to pass flags to Dockerized captchouli are available here.

@samip5
Copy link
Contributor Author

samip5 commented Dec 9, 2019

Goal is something like this:
captcha3

Which captchouli cannot give me.

@samip5
Copy link
Contributor Author

samip5 commented Dec 10, 2019

Basically the problem lies with the lack of knowledge on anime, period.

@samip5 samip5 mentioned this issue Dec 10, 2019
2 tasks
@DangerOnTheRanger
Copy link
Owner

@samip5 I'm still interested in merging this if you're still interested in working on it - if you have any questions about Maniwani's codebase/architecture I'll do my best to help out.

@samip5
Copy link
Contributor Author

samip5 commented May 1, 2020

@DangerOnTheRanger I'm still interested in doing this, but as i have drafted in the pull request, I still need to find a library to help me out with it. The problem lies with the fact that Flask has very little library's for Captcha.

Do you know if we can use C++ native extension for it?
https://gitgud.io/LynxChan/NativeIM https://gitgud.io/LynxChan/LynxChan/-/tree/master/src/be/native

@DangerOnTheRanger
Copy link
Owner

@samip5 Using C++ would be fine with me, though I am slightly concerned about how many more steps it would add to the build process (installing a C/C++ compiler, installing the necessary libraries, etc.). Docker would hide most of that complexity, though.

Reading the source code for LynxChan, it looks like its captcha code calls out to ImageMagick to write text on an image and then adds some boxes/circles, some distortion and blur, and so on. That should be possible in about as many lines of pure Python via Pillow, I think, so that's another option.

@samip5
Copy link
Contributor Author

samip5 commented May 5, 2020

It appears that the maintainer of LynxChan is not a fan of Python so they will most likely not help in any way at least in the implementation. Do you happen to be in the Python Discord server? (https://pythondiscord.com/)

https://balkanchan.ga/lynx/res/480.html

@DangerOnTheRanger
Copy link
Owner

I'm in it now, same username as here. I'm also on #maniwani on rizon.net at most US times of the day if IRC is more convenient.

@samip5
Copy link
Contributor Author

samip5 commented Jun 28, 2020

I have been quite busy at the moment so that's why there's been no progress on this.

@DangerOnTheRanger
Copy link
Owner

No worries, we're not operating under deadlines - it's a hobby project after all ;)

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

Successfully merging a pull request may close this issue.

2 participants