Zavavilyliar333
New member
Im a complete noob with JS coding and need to assistance to resolve hCaptcha.
Currently the site in question is coinhunt.cc, there are two Captcha, reCaptcha that i can resolve, however with hCaptcha i have no clue to get this resolved.
The current code can resolve the reCaptcha (I receive the token from 2Captcha and have a code that replaces the myjs with the token code):
According to 2Captcha i require to to enter the return in both h-captcha-response and g-captcha-response, currently i am able to do this with the following:
However when i try to run this script i am greeted with the error:
I dont know if the callback is correct or where to get the correct callback for hcaptcha from this site as said, im a noob and just starting to learn JS.
Currently the site in question is coinhunt.cc, there are two Captcha, reCaptcha that i can resolve, however with hCaptcha i have no clue to get this resolved.
The current code can resolve the reCaptcha (I receive the token from 2Captcha and have a code that replaces the myjs with the token code):
Code:
document.getElementById("g-recaptcha-response").value="myjs"
function excuteCallback(obj, name) {
ret = null;
if (Object.hasOwnProperty(obj, name)) {
ret = Object.getOwnPropertyDescriptor(obj, name).value;
}
if (ret != null) {
return ret;
}
for (var objName in obj) {
var o=obj[objName];
if (o.hasOwnProperty(name)) {
ret = Object.getOwnPropertyDescriptor(o, name).value;
}
if (ret != null) {
return ret;
}
excuteCallback(o, name);
}
}
excuteCallback(window.___grecaptcha_cfg.clients[0], "callback")("myjs");
According to 2Captcha i require to to enter the return in both h-captcha-response and g-captcha-response, currently i am able to do this with the following:
Code:
document.getElementsByName("h-captcha-response").value="myjs"
document.getElementsByName("g-recaptcha-response").value="myjs"
However when i try to run this script i am greeted with the error:
javascript error: Cannot read property 'clients' of underfined
I dont know if the callback is correct or where to get the correct callback for hcaptcha from this site as said, im a noob and just starting to learn JS.