[SOLVED]recaptchaV2 capmonster not working

[SOLVED] if you don’t want read all, is it:

Step to step capmonster settings:

In config RL select “CUSTOM TWO CAPTCHA”
fill with your private key, host: api.capmonster.cloud and port 80

No needed to edit windows hosts file

Hi everyone,
I already read this guide: How to insert a reCaptcha v2 solution

But it’s my first time using a recaptcha service, and I will have this new experience with OB2.

Reading about 2Captcha demo
We have a two API endpoints

* `http://2captcha.com/in.php` is used to submit a captcha
* `http://2captcha.com/res.php` is used to get the captcha solution

steps to use the service is:
1- get api key
2- submit http post to in.php
3- 20 seconds timeout
4- http get to solved captcha

But looking into Recaptcha V2 block we have 2 inputs

siteKey = "6LfW6wATAAAAAHLqO2pb8bDBahxlMxNdo9g947u9"
siteUrl = "https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php"

Where goes 2captcha in.php and res.php in RecaptchaV2 block?
Any help?

PS: I am just asking before try make it because I need choose and pay a Recaptchav2 service so I am looking for 2captcha and capmonster, I also accept suggestions

Thanks

Edit:

Following this guide 2captcha API I do this:

BLOCK:SolveRecaptchaV2
DISABLED
  siteKey = "6Lca8-wUAAAAAF9TZlquhJN6AsZaiRmxC1jZAyTx"
  siteUrl = "https://targeturl/search/"
  => CAP @solveRecaptchaV2Output
ENDBLOCK

BLOCK:HttpRequest
  url = "https://2captcha.com/"
  method = POST
  customHeaders = {}
  TYPE:STANDARD
  $"in.php?key=5fbefff5e12d58fcbe1b4ae8b6acb05c&method=userrecaptcha&googlekey=6Lca8-wUAAAAAF9TZlquhJN6AsZaiRmxC1jZAyTx&pageurl=https://targeturl/search/"
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
LABEL:Parse ID Captcha
  input = $"data.RESPONSECODE"
  leftDelim = "OK|"
  MODE:LR
  => CAP @parseidcaptcha
ENDBLOCK

BLOCK:HttpRequest
  url = "http://2captcha.com/res.php"
  customHeaders = {}
  TYPE:STANDARD
  $"key=5fbefff5e12d58fcbe1b4ae8b6acb05c&action=get&id=<input.parseidcaptcha>"
  "application/x-www-form-urlencoded"
ENDBLOCK

BLOCK:Parse
LABEL:Parse Solution
  input = @data.RESPONSECODE
  MODE:LR
  => CAP @solution
ENDBLOCK

BLOCK:PuppeteerExecuteJs
  expression = $"document.getElementById(\"g-recaptcha-response\").innerHTML=\"<input.solution>\";"
  => VAR @puppeteerExecuteJsOutput
ENDBLOCK

BLOCK:PuppeteerSubmit
ENDBLOCK

It will work?

Do not tested because don’t have a key yet, need buy bitcoins and acquiring them is increasingly bureaucratic despite having money to pay.
I still don’t understand how the recaptcha block works since there is only space to define the URL and the google key, where does the 2captcha key go?

Hi,

If you have read Ruri’s post, i think you should only use these 2 blocks for recaptcha:

BLOCK:SolveRecaptchaV2
  siteKey = "Key"
  siteUrl = "URL"
  => VAR @SOLUTION
ENDBLOCK

BLOCK:PuppeteerExecuteJs
  expression = $"document.getElementById('g-recaptcha-response').innerHTML = '<SOLUTION>';"
  => VAR @puppeteerExecuteJsOutput
ENDBLOCK

other BLOCKS

OB2 takes care of the rest, of course you have to wait until you have a key to test …
When you have a key you have to configure it in RL settings and it will work

2 Likes

Just select 2captcha as your captcha provider in the RL settings section, OB2 takes care of everything, you just need site key and site url.

1 Like

Oh shit, i’ve forgot the config on RL settings
Now all makes sense now, understood
thanks guys

Hi,
Already bought capmonster
I selected capmonster from the list

I filled the input as that:
api.capmonster.cloud (host)
80 (port)

No input field to put my captcha key
When try run I get this error:

BadAuthenticationException

ERROR_KEY_DOES_NOT_EXIST

Where can i put the key if inside the recaptchav2 block i just have the option to put the target url key + url and in RL settings doesn’t have an input for key?

EDIT:

I carefully followed the guide:
https://zennolab.atlassian.net/wiki/spaces/APIS/pages/105349123/How+do+I+connect+CapMonster.cloud+to+a+program#Set-up-in-other-Software

In RL settings I’ve selected 2captcha and the key missing error goes out
But I get this error now:

Solve Recaptcha V2 (SolveRecaptchaV2)

Executing block Solve Recaptcha V2] JsonSerializationException: Error converting value 4 to type ‘CaptchaSharp.Services.TwoCaptcha.Response’. Path ‘’, line 1, position 1.

BOT ENDED AFTER 22160 ms WITH STATUS: ERROR

I bought the capmonster because it was cheaper, I’m so sorry about that :sleepy: probably with 2captcha I would be ready to test my script

EDIT 2: (SOLVED)

Step to step capmonster settings:

In config RL select “CUSTOM TWO CAPTCHA”
fill with your private key, host: api.capmonster.cloud and port 80

No needed to edit windows hosts file

Maybe can help someone in further
title updated for better search results

1 Like

Yeah I’ve had people report problems with the capmonster option but custom 2captcha seems to work fine. I will look into it, maybe post an issue on the CaptchaSharp repository, but I would need access to capmonster to debug this issue since I don’t have it ^^

1 Like

If you need, just PM me I provide you my key so u can develop it, no problem.
Surely this is caused by missing input key in RL config, if you add will solve the problem

Capmonster need 3 values to work: API key + host + port
And there are 2 inputs for fill with values: host + port, missing the key
But probably this custom option works with any captcha solve, as they usually ask for this 3 values maybe should change from “custom twocaptcha” to custom captchasolve avoiding confusing new users

Please take it as only a suggestion, you are THE MAN.

Is that capmonster cloud? Because I remember regular capmonster not needing the API key.

yes it is capmonster cloud

Please open an issue on this repository and I will make the change

1 Like

I am using capmonster too. I am not using the key API but in RL setting: i select capmonster and use 127.0.0.3 and 80. It works fine.

are you using for free?

No, a paid version but if you use a trial version it must be the same