- 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
Recaptcha
- 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: