/
如何找到 reCaptcha 需要的各项参数

如何找到 reCaptcha 需要的各项参数

每个网站都不一样,如果以下方式都不能解决问题,烦请您自己多研究研究,您可以的。

 

第一种:通过浏览器控制台Network发送的请求获取参数

打开包含的网页,按F12->Network,

1、搜索关键词anchor

websiteKey:可以在URL中找到,例如以下链接中k值为6LfW6wATAAAAAHLqO2pb8bDBahxlMxNdo9g947u9

https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LfW6wATAAAAAHLqO2pb8bDBahxlMxNdo9g947u9&co=aHR0cHM6Ly9yZWNhcHRjaGEtZGVtby5hcHBzcG90LmNvbTo0NDM.&hl=en&v=qljbK_DTcvY1PzbR7IG69z1r&size=normal&cb=3gteobhlohbk

websiteURL:这个URL请求中的referer值:一般就是目标网站的域名

referer: https://recaptcha-demo.appspot.com/

2、获取 pageAction 值

reCaptcha v3 需要action值,而且必须正确,通过网页源代码中搜索关键词 grecaptcha

pageAction值:其中action: xxxxx 就是我们要的值,例如:

grecaptcha.ready(function() { grecaptcha.execute('6LdpS-gUAAAAAL3Qr2yP7rkrQjkKBVvEY_48JS5l', {action: 'login'}).then(function(token) { }); });

如果网页中搜索不到,则可能是js被混肴、加密了,需要尝试其他方式:

请参照这个单独的教程:如何找reCaptchaV3的action值

 

第三种:通过自动识别函数获取参数

打开出现验证码的网页,按F12键,进入console,

输入自定义函数findRecaptchaClients()执行

不会操作的,下面有张图

然后在consolse执行这个函数findRecaptchaClients() 即可找到出对应的信息

如下图

 

 

Related content

RecaptchaV3TaskProxyless: reCaptcha V3 协议接口
RecaptchaV3TaskProxyless: reCaptcha V3 协议接口
More like this
如何通过API来通过 reCaptcha
如何通过API来通过 reCaptcha
More like this
NoCaptchaTaskProxyless : reCaptcha V2 协议接口
NoCaptchaTaskProxyless : reCaptcha V2 协议接口
More like this
如何查找 reCaptcha 系列的回调函数
如何查找 reCaptcha 系列的回调函数
More like this
如何判断 reCaptcha 是什么版本
如何判断 reCaptcha 是什么版本
Read with this
How to find the necessary parameters for Google reCaptcha
How to find the necessary parameters for Google reCaptcha
More like this