Skip to content

Commit

Permalink
add params for Amazon WAF captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-duboyski committed Jun 25, 2024
1 parent 4d1287d commit 230757f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/structs/2captcha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export interface paramsAmazonWAF {
sitekey: string,
iv: string
context: string,
challenge_script?: string,
captcha_script?: string,
header_acao?: boolean,
pingback?: string,
soft_id?: number,
Expand Down Expand Up @@ -821,11 +823,13 @@ export class Solver {
*
* [Read more about "Amazon WAF" captcha](https://2captcha.com/2captcha-api#amazon-waf).
*
* @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.
* @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.
* @param {string} params.pageurl Is the full `URL` of page where you were challenged by the captcha.
* @param {string} params.sitekey Is a value of `key` parameter in the page source.
* @param {string} params.iv Is a value of `iv` parameter in the page source.
* @param {string} params.context Is a value of `context` parameter in the page source.
* @param {string} params.challenge_script The source URL of `challenge.js` script on the page.
* @param {string} params.captcha_script The source URL of `captcha.js` script on the page.
* @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).
* @param {string} params.proxy Format: `login:[email protected]:3128` You can find more info about proxies [here](https://2captcha.com/2captcha-api#proxies).
* @param {string} params.proxytype Type of your proxy: `HTTP`, `HTTPS`, `SOCKS4`, `SOCKS5`.
Expand Down

0 comments on commit 230757f

Please sign in to comment.