Update 9Hits Viewer 2.4.0 and 9Hits Bot 1.2.4

daniel

Administrator
Staff member
VIP
Joined
Feb 23, 2018
Messages
225
Reaction score
35
Achievement
Hi guys, a new update has just released with the following changes:
- Support Anti-Captcha in macros.
- Fixed the annoyance of running in the hidden mode (windows). You can run the viewer without annoying now.
- Improve macros and performance.
You may take the download link on the 9hits panel.

Let take a look at the anti-captcha function
You may wanna see the demo and the usage.

Image captcha
JavaScript:
//https://www.phpcaptcha.org/try-securimage/

await WaitForLoading();
var AcKey = "ef1bd148819abdf28037c7d7320f5450";
var image = await GetImageByXpath('//*[@id="captcha_one"]');
if(image)
{
    var result = await ACSolve({
        "clientKey":AcKey,
        "task":
        {
            "type":"ImageToTextTask",
            "body":image,
            "phrase":false,
            "case":false,
            "numeric":false,
            "math":0,
            "minLength":0,
            "maxLength":0
        }
    }, 150);
  
    //success without error
    if(result && result.errorId == 0)
    {
        SetByXpath(GenerateXpath("input", "name", "ct_captcha0"), "value", result.solution.text);
        await Delay(1000);
        await ClickByXpath(GenerateXpath("input", "type", "submit"));
     

        //check the result is correct or not
        await WaitForLoading();
        if(await EvaluateScript('document.body.innerText.includes("Sorry, the code entered was incorrect.")'))
        {
            Alert("Incorect");
            ACReportIncorrectImage(AcKey, result.taskId);
        }
        else Alert("Success");
    }
}

Recaptcha
JavaScript:
//https://www.google.com/recaptcha/api2/demo


await WaitForLoading();
var AcKey = "ef1bd148819abdf28037c7d7320f5450";
var siteKey = await EvaluateScript('document.getElementById("recaptcha-demo").getAttribute("data-sitekey")');
var pageUrl = await EvaluateScript('window.location.href');


var result = await ACSolve({
    "clientKey": AcKey,
    "task":
    {
        "type":"NoCaptchaTaskProxyless",
        "websiteURL":pageUrl,
        "websiteKey":siteKey
    }
}, 600);


//success without error
if(result && result.errorId == 0)
{
    SetById("g-recaptcha-response", "text", result.solution.gRecaptchaResponse);
    await Delay(1000);
    await ClickById("recaptcha-demo-submit");

    //check the result is correct or not
    await WaitForLoading();
    if(await EvaluateScript('document.body.innerText.includes("Verification Success")'))
        Alert("Success");
    else
    {
        Alert("Incorect");
        ACReportIncorrectRecaptcha(AcKey, result.taskId);
    }
}
 
Last edited:
  • Like
Reactions: fithung

wernerk93

New Member
Rule The Galaxy
Joined
Mar 1, 2018
Messages
15
Reaction score
0
Achievement
i love it. keep it up bro.
Thanks for your work!
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu