diff --git a/Registration-with-captcha.md b/Registration-with-captcha.md index f7fd0c0..4670910 100644 --- a/Registration-with-captcha.md +++ b/Registration-with-captcha.md @@ -11,6 +11,22 @@ Check the console in the developer tools for a redirect starting with `signalcap Everything after `signalcaptcha://` is the captcha token. ![](https://user-images.githubusercontent.com/292790/113993106-a8cd5280-9886-11eb-9380-4afe7b71482f.png) +Using Linux with Firefox, you are prompted what program to open the link with. You can create the following python file, browse to it in Firefox, and select it. This scirpt will output the captcha link to /tmp/captcha.txt + +``` +#!/usr/bin/python3 +from sys import argv + +def write_file(content,file): + fh = open(file,'w') + fh.write(content) + fh.close() + +write_file(str(argv[1]), "/tmp/captcha.txt") + +``` + + Then execute the `register` command again with the `--captcha` argument (https://github.com/AsamK/signal-cli/blob/master/man/signal-cli.1.adoc#register) ```