Problem with invisible ReCaptcha v2 callback function at Mail.com Sign-up page

#21
EDIT: Now it's working, I managed to execute: window.grecaptcha.execute() after setting my captcha response and it bypassed the captcha!

Thanks Mark for your support and fast reply!
 
#22
No idea unless you provide a link to the website :)
Hey Mark, I'm having a similar issue and would like to ask for your assistance. I'm executing ___grecaptcha_cfg.clients[0]J.J.callback(TOKEN) on Spotify's registration page but it's now saying "javascript error: Cannot read property 'J' of undefined" in my code. Yet, when I go to the registration page and load the console I'm able to find the callback with ___grecaptcha_cfg.clients[0]J.J.callback. Note, this code worked earlier yesterday and the object is still the same on the targeted site.. Do you know why I'm getting this error all of a sudden or what I can do to bypass this? Thanks you so much!
 
#25
Hi guys!
Try to use this code to identify captchas on the page and find callbacks
https://gist.github.com/2captcha/2ee70fa1130e756e1693a5d4be4d8c70
I tried:
__grecaptcha_cfg.clients[0].$.$.callback()
__grecaptcha_cfg.clients[0].$.$.recaptchaCallback()
__grecaptcha_cfg.clients[0].$.$.callback.recaptchaCallback()
Everything "is not a function". I don't know what I'm doing wrong.

1592442432985.png

This is when I put recaptchaCallback in console

1592444116191.png

And this is just endless if I try to go down the tree. If I click the button next to the g() it goes to this function

JavaScript:
function ka(a){var d;a.has("csrfmiddlewaretoken")&&(d=a.get("csrfmiddlewaretoken"));return void 0!==d?d:void 0};function la(a){function d(c,g){g=String(g.getAttribute("data-callback"));"null"!==g&&(window[g]=function(){c.R=!0;c.o()})}var b={name:"",a:"",B:"",P:!1,v:!1,h:!1,O:!1,u:!0,fa:!1,F:!1,na:"",R:!1,N:a,D:function(){b.B=String(a.tagName.toLowerCase());var c=b.da();b.name=null!==c?c:"";b.a=b.name;if("captcha"===a.getAttribute("data-type"))b.F=!0,d(b,a);else{var g=String(a.getAttribute("id")).split("_"),f=g[g.length-1];var e=["day","month","year"];c=!1;if(-1<e.indexOf(f))for(g.pop(),g=g.join("_"),c=!0,e=r(e),f=e.next();!f.done;f=e.next())null===document.querySelector("#"+(g+"_"+f.value))&&(c=!1);c&&(b.fa=!0,c=String(a.getAttribute("id")).split("_"),c.shift(),c.pop(),b.a=c.join("_"))}c=String(a.getAttribute("type"));"checkbox"===c?b.v=!0:"hidden"===c?b.h=!0:"select"===b.B&&"select-multiple"===a.type&&(b.P=!0);b.O=null!==a.getAttribute("disabled");b.M()&&(b.u=!1)},da:function(){if("captcha"===a.getAttribute("data-type")){var c=String(a.getAttribute("id")).split("_");c.shift();c=c.join("_")}else c=a.getAttribute("name");return c},ma:function(){if(!b.h&&!b.F){var c=document.querySelector("#"+b.a+"_spinner");null!==c&&c.classList.remove("formvalidate_hidden")}},ea:function(){var c=document.querySelector("#"+b.a+"_spinner");null!==c&&c.classList.add("formvalidate_hidden")},ca:function(){return String(a.getAttribute("id"))},s:function(){return b.v?a.checked?"on":"":a.value},K:function(){b.u=!1},M:function(){if(b.h)return!1;var c=document.querySelector("."+b.a+"_error");return null!==c&&"none"!==c.style.display?!0:!1},V:function(c,g){b.h||(!0===g&&(b.u=!1),!1===b.u&&(document.querySelector("."+b.a+"_error .error_msg").appendChild(document.createTextNode(c)),c=document.querySelector("."+b.a+"_error"),c.style.display="tr"===String(c.tagName.toLowerCase())?"table-row":"block",c=document.querySelector("."+b.a+"_label"),null!==c&&c.classList.add("formvalidate_error")))},o:function(){if(!b.h){for(var c=document.querySelector("."+b.a+"_error .error_msg");null!==c.firstChild;)c.removeChild(c.firstChild);document.querySelector("."+b.a+"_error").style.display="none";c=document.querySelector("."+b.a+"_label");null!==c&&c.classList.remove("formvalidate_error")}}};b.D();return b}
 
Last edited:

Mark Miller

2Captcha Engineer
#26
I tried:
__grecaptcha_cfg.clients[0].$.$.callback()
__grecaptcha_cfg.clients[0].$.$.recaptchaCallback()
__grecaptcha_cfg.clients[0].$.$.callback.recaptchaCallback()
Everything "is not a function". I don't know what I'm doing wrong.

View attachment 54

This is when I put recaptchaCallback in console

View attachment 55

And this is just endless if I try to go down the tree. If I click the button next to the g() it goes to this function
In your case it is just:
recaptchaCallback('TOKEN')