fathyb / carbonyl

Chromium running inside your terminal
BSD 3-Clause "New" or "Revised" License
14.73k stars 288 forks source link

Great tool! But how to make it work with Captcha's "Verify you are human" dialog #84

Closed done434 closed 1 year ago

done434 commented 1 year ago

The captcha's "Verify you are human" dialog always there and I can't make it disappear when I click somewhere of the dialog.

How to make Carbonyl to work with this? Thank you!

image

image

niutech commented 1 year ago

This is Turnstile from Cloudflare. It is used e.g. on https://chat.openai.com. Is this problem because Carbonyl is in incognito mode?

piranna commented 1 year ago

Maybe we would need some tag to identify this kind of issues, that would need to be hacked in a per-case basis... main browsers already does that too. In this case, we would need to detect captchas and replace it with another method to identify users. Probably accesibility tools or documentation can be helpful here, specially the ones for blind peoples. I'm pretty sure they can solve captchas too :-)

done434 commented 1 year ago

Thanks for your reply. But any suggestion about how to make it work?

done434 commented 1 year ago

How to check whether Carbonyl is in incognito mode?

niutech commented 1 year ago

@done434 It is defined here.

done434 commented 1 year ago

@done434 It is defined here.

How can I disable it to have a try without rebuild it? Currently I am using docker to run it.

fathyb commented 1 year ago

Incognito is disabled by default, you can use the following command to get Carbonyl to save cookies and other items in your current directory:

$ docker run -ti -v $(pwd):/carbonyl/data fathyb/carbonyl https://github.com

You can also use a volume:

$ docker volume create carbonyl
$ docker run -ti -v carbonyl:/carbonyl/data fathyb/carbonyl https://github.com
done434 commented 1 year ago

Maybe we would need some tag to identify this kind of issues, that would need to be hacked in a per-case basis... main browsers already does that too. In this case, we would need to detect captchas and replace it with another method to identify users. Probably accesibility tools or documentation can be helpful here, specially the ones for blind peoples. I'm pretty sure they can solve captchas too :-)

Any suggestion about how to solve this captchas problem? Like some manual steps, etc.

fathyb commented 1 year ago

Something you could try is:

  1. enable cookie storage using the instructions in https://github.com/fathyb/carbonyl/issues/84#issuecomment-1430663810
  2. use the new --bitmap feature in the next version to pass the captcha, see https://github.com/fathyb/carbonyl/issues/28#issuecomment-1429112191 for instructions
  3. quit and restart in text mode, the cookies should prevent the captcha from appearing in most cases
done434 commented 1 year ago

Something you could try is:

  1. enable cookie storage using the instructions in Great tool! But how to make it work with Captcha's "Verify you are human" dialog #84 (comment)
  2. use the new --bitmap feature in the next version to pass the captcha, see "sub-pixel" glyphs? #28 (comment) for instructions
  3. quit and restart in text mode, the cookies should prevent the captcha from appearing in most cases

Than you very much, fathyb @fathyb

fathyb commented 1 year ago

I'm closing as resolved, but feel free to re-open if you're still experiencing an issue!