How to solve Hcaptcha with anycaptcha

lips2

New member
#1
I'm trying to using 2captcha to solve a Hcaptcha callback function in glearn. I was received string token like "PO_xxxxx" fastly but i don't know how to find the callback function to submit this website. Help me please! Thanks a lot!
1631521836281.png
 
#2
Here bro

string token= "";//token by anycaptcha
string script = "var fcName = '';var elements = document.getElementsByClassName('hcaptcha ng-scope ng-isolate-scope')[0]; var mt = Object.getOwnPropertyNames(elements); for(var i=0;i<mt.length;i++){if(mt.includes('jQuery')){fcName = mt; break;}} if(fcName!=''){elements[fcName].$scope.challengeCompleted('"+token+ "')}";
(JavascriptExecutor)driver).executeScript(script);