Discussions » Creation Requests

Looking for script get result "google captcha" from 127.0.0.1:5000

§
Posted: 2017-02-07
Edited: 2017-02-07

Looking for script get result "google captcha" from 127.0.0.1:5000

I need any script automatic click on "I'm not a robot" then click on "Get an audio challenger" button , then get url for "audio.mp3" and send url to "127.0.0.1:5000/captcha?web=[current web name google,yahoo,imgur]&url=[audio.mp3 : google.com/recaptcha/api2/demo]" get result and put in red dailog

I want this script work on every web page have captcha "I'm not a robot"

Example: https://www.youtube.com/watch?v=AvbS6ey6bHM

Thanks Best regard

§
Posted: 2017-02-08

This does exactly what you're looking for: https://github.com/Tackyou/RecaptchaSolver

§
Posted: 2017-02-09

Thanks alot, I edited some function for run in my project

(function() { 'use strict';

var dlLink = null;
var lohost = null;
var curweb = null;
var urlloc = null;
var result = null;

if(location.href.indexOf('frame')>-1){
    console.log('[RC] FRAME');
    var audio = setInterval(function(){
        if(document.querySelector('.rc-audiochallenge-download-link') !== null){
            console.log('[RC] AUDIO FOUND');
            clearInterval(audio);
            setInterval(function(){
                var newLink = document.querySelector('.rc-audiochallenge-download-link').href;
                if(newLink.length>0 && newLink != dlLink){
                    dlLink = newLink;
                    lohost = window.location.host.replace("http://www.","").replace("www.","");
                    lohost = lohost.substr(0, lohost.lastIndexOf(".")); 
                    curweb = lohost;
                    urlloc = ('http://127.0.0.1:5000/captcha?' + 'web=' + (curweb) + '&' + 'url=' + (dlLink));
                    console.log('[RC] SENDING AUDIO');
                    console.log('[RC] LINK : ' + (urlloc));
                    var source = GM_xmlhttpRequest({
                        method: "GET",
                        url: urlloc,
                        onload: function(voices) {
                        result = voices.responseText;
                            if(result != null){
                                var json = null;
                                try {
                                    json = result;
                                } catch (e) {
                                }
                                if(json.indexOf('sorry') <= 0){
                                //  if(json !== null){
                                    document.getElementById('audio-response').value = json;
                                    //document.getElementById('recaptcha-verify-button').click();
                                    console.log('[RC] JSON : ' + (json));
                                }else{
                                    document.getElementById('audio-response').value = '???';
                                    console.log('[RC] JSON : ' + (json));
                                }                           
                            }
                        //  sentback(result);
                        }
                    });
                    //  function sentback(x){
                    //      alert(x);
                    //  }                       
                    //  var request = new XMLHttpRequest();
                    //  request.open('POST', urlloc, true);
                    //  request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
                    //  request.onreadystatechange = function() {
                    //      if(request.readyState == 4 && request.status == 200) {
                    //          console.log('[RC] audio result received');
                    //          var result = request.responseText;
                    //          if(result.length>0){
                    //              var json = null;
                    //              try {
                    //                  json = JSON.parse(result);
                    //              } catch (e) {
                    //              }
                    //              if(json !== null && json.confidence > 0.7){
                    //                  document.getElementById('audio-response').value = json.result;
                    //                  //document.getElementById('recaptcha-verify-button').click();
                    //              }else{
                    //                  document.getElementById('audio-response').value = '???';
                    //              }
                    //          }
                    //      }
                    //  };
                    //  request.send('audiocaptcha='+encodeURIComponent(dlLink).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+'));
                }
            }, 6000);
        }
    }, 1000);
}
/*
function click(x, y)
{
    var myLayer = document.createElement('div');
    myLayer.style.position = 'absolute';
    myLayer.style.left = x+'px';
    myLayer.style.top = y+'px';
    myLayer.style.width = '2px';
    myLayer.style.height = '2px';
    myLayer.style.background = 'red';
    myLayer.style.zIndex = '9999999';
    myLayer.style.border = '3px double #FFF';
    myLayer.style.borderRadius = '10px';
    myLayer.style.pointerEvents = 'none';
    document.body.appendChild(myLayer);

    var ev = new MouseEvent('click', {
        'view': window,
        'bubbles': true,
        'cancelable': true,
        'screenX': x,
        'screenY': y
    });
    var el = document.elementFromPoint(x, y);
    el.dispatchEvent(ev);

    myLayer.click();

    myLayer.dispatchEvent(ev);

    console.log('click x:'+x+' y:'+y);
}*/

})();

§
Posted: 2017-02-10

How far are you able to automatically solves captchas?

§
Posted: 2017-02-11

yes it working fine

§
Posted: 2017-02-11

Could you share your PHP file?

§
Posted: 2017-02-13

it not working on php , I will share . Can you contact me via email or anyway private ?

Message : https://greasyfork.org/en/forum/messages/add/DarKWinGTM

§
Posted: 2017-02-13
it not working on php , I will share . Can you contact me via email or anyway private ?

Message : https://greasyfork.org/en/forum/messages/add/DarKWinGTM

Sent you a PM

Post reply

Sign in to post a reply.