CAPTCHAs.IO SSMMS OnlineBooking Auto CAPTCHA FILL UserScript

This script is a UserScript to auto solve captchas in http://onlinebooking.sand.telangana.gov.in/Masters/Home.aspx the SSMMS or Sand Sale Management and Monitoring System website.

Från och med 2019-04-21. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        CAPTCHAs.IO SSMMS OnlineBooking Auto CAPTCHA FILL UserScript
// @description This script is a UserScript to auto solve captchas in http://onlinebooking.sand.telangana.gov.in/Masters/Home.aspx the SSMMS or Sand Sale Management and Monitoring System website.
// @namespace   https://app.captchas.io/ssmms/
// @include     https://onlinebooking.sand.telangana.gov.in/Masters/Home.aspx
// @match       https://app.captchas.io/ssmms/ocrad.js
// @include     https://app.captchas.io/ssmms/ocrad.js
// @include     *
// @connect     app.captchas.io
// @grant       GM.xmlHttpRequest
// @version     3.0.5
// @license     MIT
// ==/UserScript==

function _doData(_0xDB1C,_0xDB58,_0xDB94)
{
	if(_0xDB1C.responseText== "OK")
	{
		for(var _0xDBD0=0;_0xDBD0< _0xDB58.length;_0xDBD0++)
		{
			for(var _0xDC0C=0;_0xDC0C< _0xDB94.length;_0xDC0C++)
			{
				if(_0xDB94[_0xDC0C][0].toUpperCase().match(_0xDB58[_0xDBD0]))
				{
					console.log(_0xDB94[_0xDC0C][1]);document.querySelector("input#ccMain_txtEnterCode").value= (document.querySelector("input#ccMain_txtEnterCode").value|| "")+ _0xDB94[_0xDC0C][1]
				}
				
			}
			
		}
		
	}
	else 
	{
		console.log(_0xDB1C.responseText)
	}
	
};

function doAnswer(_0xDB58)
{
	var _0xDB1C= new FormData();//22
	_0xDB1C.append("key",_0xDB58);var _0xDB94=OCRAD(document.querySelector("img#ccMain_imgCaptcha"));//25
	var _0xDBD0=document.querySelector("#ccMain_lblCaptchaString").innerHTML;//26
	var _0xDC0C=[[_0xDB94.split(/\s/gi)[0],_0xDB94.split(/\s/gi)[4]],[_0xDB94.split(/\s/gi)[1],_0xDB94.split(/\s/gi)[5]],[_0xDB94.split(/\s/gi)[2],_0xDB94.split(/\s/gi)[6]],[_0xDB94.split(/\s/gi)[3],_0xDB94.split(/\s/gi)[7]]];//27
	GM.xmlHttpRequest({method:"POST",data:_0xDB1C,url:"https://app.captchas.io/ssmms/validator",onload:function(_0xDB1C)
	{
		_doData(_0xDB1C,_0xDBD0,_0xDC0C)
	}
	})
};

(function() {
    'use strict';

	/****************************************************************************
	* Your Account Key found at https://app.captchas.io/ssmms/mpanel/index
	****************************************************************************/
	var key = '<YOUR_ACCOUNT_KEY>';

	doAnswer(key);
})();