1 个不稳定版本
0.2.0 | 2023年10月26日 |
---|
#1756 在 命令行工具
34KB
199 行
用法
模式
- 离线:对给定的 CAPTCHA 参数计算 PoW
- 在线:无 JavaScript 支持的浏览器的 CLI 替代方案
CLI tool to solve mCaptcha
Usage: mcaptcha-cli <COMMAND>
Commands:
offline Compute PoW with offline parameters
online Compute PoW by fetching parameters from CAPTCHA URL
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
离线
帮助菜单
Compute PoW with offline parameters
Usage: mcaptcha-cli offline --salt <SALT> --phrase <PHRASE> --difficulty-factor <DIFFICULTY_FACTOR>
Options:
-s, --salt <SALT> Salt with which PoW should be computed
-p, --phrase <PHRASE> Phrase over which PoW should be computed
-d, --difficulty-factor <DIFFICULTY_FACTOR> Difficulty Factor
-h, --help Print help
示例用法
13:28 atm@lab cli ±|online|→ mcaptcha-cli offline -s $(rand 32) -p $(rand 32) -d 50000
difficulty: 50000
nonce: 90507
original phrase: f351f333d44b2c6b5bf7f033b065bbb8fb5e9dd153bd402e43ed04425f5a3859
result: 340276562956196291522979356090220150471
(其中 rand 是 此 脚本)
在线
从 CAPTCHA URL 获取 CAPTCHA 参数,计算 PoW,与给定的 mCaptcha 服务器验证并返回授权令牌
帮助菜单
Compute PoW by fetching parameters from CAPTCHA URL
Usage: mcaptcha-cli online --url <URL>
Options:
-u, --url <URL> URL of the CAPTCHA. Example: https://example.org/widget?sitekey=foo
-h, --help Print help
示例用法
13:32 atm@lab cli ±|online ✗|→ mcaptcha-cli online -u https://demo.mcaptcha.org/widget?sitekey=pHy0AktWyOKuxZDzFfoaewncWecCHo23
Authorization token: 3xleN26OctBuVu3X4t6CYyUjErhaxQvz
资金
NLnet
2023年的开发是通过 NGI0 Entrust Fund,通过 NLnet 资助的。有关更多详细信息,请参阅 此处。
依赖项
~8–22MB
~367K SLoC