diff --git a/Registration-with-captcha.md b/Registration-with-captcha.md index 3c2dff0..91e1b9d 100644 --- a/Registration-with-captcha.md +++ b/Registration-with-captcha.md @@ -18,41 +18,8 @@ To get the token, go to https://signalcaptchas.org/registration/generate.html After filling the captcha, the site doesn't show the token but redirects to a `signalcaptcha://` url that contains the token. How to see the captcha token depends on whether one of the official apps (Desktop/iOS/Android) is installed. Because in that case the `signalcaptcha://` url scheme is handled by the apps and the captcha cannot be seen directly. - -### No official app installed -Firefox -To see the URL you can open the browser developer tools (F12) before completing the captcha. -Hint: Enable the option "Persist Logs" in the "Console Settings" to prevent clearing the console each time navigating to a new page. - -Check the console in the developer tools for a redirect starting with `signalcaptcha://` -Everything after `signalcaptcha://` is the captcha token (INCLUDING the `signal-recaptcha-v2.6LfBXs0bAAAAAAjkDyyI1Lk5gBAUWfhI_bIyox5W.registration` part). -![image](https://user-images.githubusercontent.com/2340865/173323641-0712b258-0a3b-4814-940e-b23b1ce8bd5c.png) - -### Get token from network request - -To see the URL you can open the browser developer tools (F12) before completing the captcha and navigate to the network tab. -The request which includes the captcha token (upon successful completion of the captcha challenge) is a POST with the following path: https://www.google.com/recaptcha/enterprise/userverify. The response includes just the captcha token in the json under key "1". The request includes the 40 character site key for signalcaptchas.org which is 6LfBXs0bAAAAAAjkDyyI1Lk5gBAUWfhI_bIyox5W. See screenshots below. - -To get a complete captcha token, prepend `signal-recaptcha-v2.6LfBXs0bAAAAAAjkDyyI1Lk5gBAUWfhI_bIyox5W.registration.` to the token from the request (`03AG...motOQ`) - -![image](https://user-images.githubusercontent.com/2340865/173322145-9533cbb1-f7d8-4984-8134-c02787f515db.png) - -![image](https://user-images.githubusercontent.com/2340865/173324677-7943803b-3fad-41a0-baff-ab5ac5cb0383.png) - -### Register custom protocol handler - -See [#701](https://github.com/AsamK/signal-cli/issues/701) or [#724](https://github.com/AsamK/signal-cli/issues/724) for some suggestions. - -### If you already have the official desktop app installed - Brave -* Go to: https://signalcaptchas.org/registration/generate.html press F12 -* Click on the "Network Tab" -* Within the Network tab, sort on tab: "Name". -* Complete the captcha and click on Verify. If the browser asks: "Open link with" don't do anything with that, just ignore it. -* After clicking "Verify", you should see an entry that starts with:`signal-recaptcha-v2...`. Click on that entry. -If there are multiple, select the lowest/latest one (assuming sort A-Z from top to bottom). -* In the right pane, below headers, it should now show the captcha token that you should enter in the CLI. -![signal_obf](https://user-images.githubusercontent.com/34750068/178279145-d0af56b4-8147-49d9-927e-e921075d3dd9.png) - -* Get the token by right clicking on it and clicking: `copy value`. You can paste that directly into: +* There is a link appearing underneath the captcha called "Open Signal". +* Get the token by right clicking on it and clicking: `copy url`. You can paste that directly into: ``` signal-cli -u $PHONE_NR register --captcha what_you_copied ```