Recognize ReCaptcha

Table of contents


Description

Allows you to be verified on sites with installed protection against bots. The method is only suitable for captchas: reCAPTCHA v2, reCAPTCHA v2 Invisible and reCAPTCHA v3 .


How to add an action to a project?

Via context menu Add ActionTabsRecognize ReCaptcha

Or use smart search .


What is it used for?

  • Passing registrations

  • Parsing sites and search engines

  • Performing bulk actions


How to work with an action?

Main settings

  1. Selecting a module for captcha recognition. Select the desired captcha recognition service from the drop-down list (you must first specify its API key in the settings ).

  2. Service captcha settings .

  3. Installing CapMonster.Cloud as the default service

  4. Registration of an account in CapMonster.Cloud. All ZennoPoster license holders receive $ 5 free of charge on the balance of the service for solving captchas.


Recognizing reCaptcha v2 in tab

Recognition takes place directly in the browser window.

Recognition method

Select the appropriate function (Recognition reCaptcha v2) and the recognition method (In tab)

Use proxy from project

The current proxy of the project will be sent to the recognition service along with the captcha.

Use project cookies

The current project cookies will be sent to the recognition service along with the captcha.

Tab:

a) Active - the tab that you have in front of your eyes at the moment.
b) First - is the first window on the left.
c) By name - indicate the name of the tab or variable considering the case of letters.
d) By number - set the tab number. The numbering goes from left to right starting from 0. If you need to close the very first tab, then specify zero in the field, the subsequent tabs are 1, 2, 3….

Enable autosubmit
If the page does not have a button for submitting a form with a recognized recaptcha, you need to enable this option to perform an autosubmit.
Save task ID to variable
Variable for the task ID.


ReCaptcha v2 recognition via sitekey

The process takes place without loading the browser.

Recognition method

Select the appropriate function (Recognition reCaptcha v2) and the recognition method (Via SiteKey)

Use proxy from project

The current proxy of the project will be sent to the recognition service along with the captcha.

Use project cookies

The current project cookies will be sent to the recognition service along with the captcha.

SiteKey

Recaptcha site key.

Sitekey parameter is individual for each site

URL

Full URL of the page on which Recaptcha is recognized.

data-s

Not necessary

An additional parameter that is not found on all sites, so its transmission is optional.

At least this parameter is found in Google search and on its services.

Save task ID to variable

Variable for the job ID.

Put to variable

The response from the recognition service will be saved to the variable specified here - the token of the resolved Recaptcha.

Token sending examples

After receiving the token, you must substitute it in the appropriate field.

Below we will see how to call the field in the browser.

Call the Element Tree through the context menu and find the ( textarea ) field for entering inside the captcha

Call the context menu with the right mouse button and click In the action designer

  1. Selecting the style attribute

  2. Set the value to display: block

Using the Test button, you can check whether the function will work in the browser or not. Next, add the action to the project.

Under the captcha itself, a field will appear where you need to enter the token. This can be done with the action Setting the value .

After successfully recognition the captcha, the response containing the token will be placed in the variable to be sent to the server. It must be substituted into the request, most often it is the g-recaptcha-response argument.

An example of a website request can always be viewed in the traffic window


Recognizing reCaptcha v3 in a tab

Recognition takes place directly in the browser window.

Recognition method

Select the appropriate function (Recognition reCaptcha v3) and the recognition method (In tab)

Use proxy from project

The current proxy of the project will be sent to the recognition service along with the captcha.

Use project cookies

The current project cookies will be sent to the recognition service along with the captcha.

Tab:

a) Active - the tab that you have in front of your eyes at the moment.
b) First is the first window on the left.
c) By name - indicate the name of the tab or variable considering the case of letters.
d) By number - set the tab number. The numbering goes from left to right starting from 0.

Action

The parameter that must be found in the source code of the site.

It is located in the page code in the grecaptcha.execute function call

Individual for each site!

Min score

User rating at which the check will be considered successful, range from 0.1 to 0.9.

Most often, a value of 0.3 is sufficient, but for each site it is necessary to check it individually.

Save task ID to variable

Variable for the job ID.

Put to variable

The response from the recognition service will be saved to the variable specified here - the token of the resolved Recaptcha.


ReCaptcha v3 recognition via sitekey

The process of recognition occurs without loading the browser.

Recognition method

Select the appropriate function (Recognition reCaptcha v2) and the recognition method (Via SiteKey)

Use proxy from project

The current proxy of the project will be sent to the recognition service along with the captcha.

Use project cookies

The current project cookies will be sent to the recognition service along with the captcha.

SiteKey

Recaptcha site key.

Sitekey parameter is individual for each site

  • In the source code of the DOM page

 

Click on the request and go to the Parameters tab

The parameter can be named k or key

URL

Full URL of the page on which Recaptcha is recognized.

data-s

Not necessary

An additional parameter that is not found on all sites, so its transmission is optional.

At least this parameter is found in Google search and on its services.

Action

The parameter that must be found in the source code of the site.

It is located in the page code in the grecaptcha.execute function call

Individual for each site!

Min score

User rating at which the check will be considered successful, range from 0.1 to 0.9.

Most often, a value of 0.3 is sufficient, but for each site it is necessary to check it individually.

Save task ID to variable

Variable for the job ID.

Put to variable

The response from the recognition service will be saved to the variable specified here - the token of the resolved Recaptcha.


A note on reCaptcha v3

When loading a page in the traffic window, it is very important to pay attention to the request

  • If the request occurs when the page is loaded, then we select the recognition of reCaptcha v3 via sitekey.

  • When the request is made after submitting the form to the site, then reCaptcha v3 recognition in the tab.

  • Parameters: SiteKey, Action, Score, Url can be set through variables.

Token spoofing occurs before the request is sent

An example of sending a reCaptcha v3 token when solving in a tab

The token is sent in the browser by substituting it. The tab method is only suitable when the request to Google will occur after the form has been submitted

Consider the example of a site https://lessons.zennolab.com/captchas/recaptcha/v3.php?level=beta

During the loading of the site, there was no request for the captcha, which means that the method of recognition in the tab suits us.

Setting up a cube for solving ReCaptcha v3

We receive the token. Next, using the C# snippet, we send it to the site:

var sitekey = project.Variables["sitekey"].Value; var newToken = project.Variables["token"].Value; var replaceRegex = @"(?<=\[""rresp"","")[^""]+"; instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k="+sitekey, new List<string> {replaceRegex}, new List<string> {newToken}, false);

The use of SiteKey in the snippet is optional. But keep in mind that without using SiteKey, requests from all captchas, including ReCaptcha2, will be intercepted.

If this is not a problem, you can use this version of the snippet:

var newToken = project.Variables["token"].Value; var replaceRegex = @"(?<=\[""rresp"","")[^""]+"; instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k=", new List<string> {replaceRegex}, new List<string> {newToken}, false);

We send the form on the site.

In the traffic window, you can make sure that the substitution of the token for the required one has occurred

An example of sending a reCaptcha v3 token when recognition via SiteKey

If in the traffic window we see that the request is being executed along with the loading of the site page, then the procedure differs from recognition in the Tab

First, we set up the cube for solving the captcha and get the token

We receive the token. Next, using the C# snippet, we send it to the site:

var sitekey = project.Variables["sitekey"].Value; var newToken = project.Variables["token"].Value; var replaceRegex = @"(?<=\[""rresp"","")[^""]+"; instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k="+sitekey, new List<string> {replaceRegex}, new List<string> {newToken}, false);

The use of SiteKey in the snippet is optional. But keep in mind that without using SiteKey, requests from all captchas, including ReCaptcha2, will be intercepted.

If this is not a problem, you can use this version of the snippet:

var newToken = project.Variables["token"].Value; var replaceRegex = @"(?<=\[""rresp"","")[^""]+"; instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k=", new List<string> {replaceRegex}, new List<string> {newToken}, false);

Only after that we load the page with ReCaptcha v3 and perform the necessary actions


Bug report

Allows you to return funds in case of an unsuccessful attempt to recognition the captcha.

Task ID specified by a static value or a variable.


Success report

We inform the service about the successful solving of the captcha.

Task ID specified by a static value or a variable.


Usage example

When you enter the antibot page, the system asks you to confirm that you are not a robot.

  1. You go to the page.

  2. Add an action to recognize reCaptcha to the project.

  3. Setting up the cube.

  4. You pass the site check.

Today, many resources are protected by Google. It helps sites to suppress mass actions or identify bots, but thanks to the Zennoposter functionality, it will not be difficult to pass such checks.


Useful links

  1. Traffic window

  2. Variable window

  3. Data

  4. CapMonster Cloud