Skip to content

Commit 230757f

Browse files
add params for Amazon WAF captcha
1 parent 4d1287d commit 230757f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/structs/2captcha.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ export interface paramsAmazonWAF {
140140
sitekey: string,
141141
iv: string
142142
context: string,
143+
challenge_script?: string,
144+
captcha_script?: string,
143145
header_acao?: boolean,
144146
pingback?: string,
145147
soft_id?: number,
@@ -821,11 +823,13 @@ export class Solver {
821823
*
822824
* [Read more about "Amazon WAF" captcha](https://2captcha.com/2captcha-api#amazon-waf).
823825
*
824-
* @param {{ pageurl, sitekey, iv, context, pingback, proxy, proxytype}} params The `amazonWaf` method takes arguments as an object. Thus, the `pageurl`, `sitekey`, `iv`, `context` fields in the passed object are mandatory.
826+
* @param {{ pageurl, sitekey, iv, context, challenge_script, captcha_script, pingback, proxy, proxytype}} params The `amazonWaf` method takes arguments as an object. Thus, the `pageurl`, `sitekey`, `iv`, `context` fields in the passed object are mandatory.
825827
* @param {string} params.pageurl Is the full `URL` of page where you were challenged by the captcha.
826828
* @param {string} params.sitekey Is a value of `key` parameter in the page source.
827829
* @param {string} params.iv Is a value of `iv` parameter in the page source.
828830
* @param {string} params.context Is a value of `context` parameter in the page source.
831+
* @param {string} params.challenge_script The source URL of `challenge.js` script on the page.
832+
* @param {string} params.captcha_script The source URL of `captcha.js` script on the page.
829833
* @param {string} params.pingback URL for pingback (callback) response that will be sent when captcha is solved. URL should be registered on the server. [More info here](https://2captcha.com/2captcha-api#pingback).
830834
* @param {string} params.proxy Format: `login:password@123.123.123.123:3128` You can find more info about proxies [here](https://2captcha.com/2captcha-api#proxies).
831835
* @param {string} params.proxytype Type of your proxy: `HTTP`, `HTTPS`, `SOCKS4`, `SOCKS5`.

0 commit comments

Comments
 (0)