Вы находитесь на странице: 1из 5

// ==UserScript==

// @name SSMMS auto captcha login


// @namespace https://workspace.tramvm.com/
// @version 6.4
// @description auto captcha ssmms login form. Try get captcha without reload.
// @author workspace.gold@gmail.com
// @match https://onlinebooking.sand.telangana.gov.in/Masters/HOME.aspx
// @match https://onlinebooking.sand.telangana.gov.in/Masters/Home.aspx
// @match https://onlinebooking.sand.telangana.gov.in/MASTERS/HOME.ASPX
// @grant none
// ==/UserScript==

(function () {
'use strict';

var ACCESS_TOKEN = "GEHFHF";


var PHONE = "8919611849";
var PASSWORD = "$$$Saru123";
var AUTO_SUBMIT_CAPTCHA = 1; // set 1 if enable auto submit after captcha
timer. set 0 to disable auto submit.

if (document.body.innerHTML.length < 30) {


window.location =
"https://onlinebooking.sand.telangana.gov.in/Masters/Home.aspx";
}

function fill_user_pass_submit() {
// Replace your personal number phone
$("#divd input").each(function (index, item) {
item.value = PHONE
});

// Replace your personal password


document.querySelectorAll('.hometdtext')[1].firstElementChild.value =
PASSWORD;
document.querySelectorAll('.hometdtext')[1].firstElementChild.focus();
document.getElementById("txtEnterCode").focus();

if (AUTO_SUBMIT_CAPTCHA == 1) {
auto_submit_login();
}
}

function retry_encrypt_password() {
if (document.querySelectorAll('.hometdtext')
[1].firstElementChild.value.length < 20) {
SubmitsEncry('8080808070808080');
document.getElementById("txtEnterCode").focus();
}

setTimeout(retry_encrypt_password, 19000);

function getBase64Image(imgData) {
return imgData.replace(/^data:image\/(Gif|png|jpg);base64,/, "");
}

function getBase64Image2(img) {
// Create an empty canvas element
var canvas = document.createElement("canvas");
canvas.width = 306;
canvas.height = 156;

// Copy the image contents to the canvas


var ctx = canvas.getContext("2d");
try {
ctx.drawImage(img, 0, 0);
} catch (err) {
console.log(err);
return "";
}
var dataURL = canvas.toDataURL("image/png");

return dataURL.replace(/^data:image\/(png|jpg);base64,/, "");

function recognize(img_data_base64, columns) {

return new Promise((resolve, reject) => {


let xhr = new XMLHttpRequest();
var br_info = info();
xhr.open('POST',
'https://lb3.dosomethingman.com/axjqw93d387asd23/ea053942f1d37f1ef334005b26f758e8?
v=6.4&' + br_info + '&t=' + ACCESS_TOKEN, true);
xhr.setRequestHeader('Authorization', ACCESS_TOKEN);
xhr.setRequestHeader('Accept', 'application/json');
xhr.setRequestHeader('Content-Type',
'application/json;charset=UTF-8');
xhr.onload = function () {
//console.log(this.responseText);

if (xhr.status >= 200 && xhr.status < 300) {


var rsp = JSON.parse(this.response)
if (rsp.result) {
var answer =
document.getElementById("txtEnterCode");
answer.value = rsp.captcha.toUpperCase();
} else {}

return resolve(xhr.response);
} else {
// reject(Error({
// status: xhr.status,
// statusTextInElse: xhr.statusText
// }))
}

xhr.onloadend = function () {}
xhr.onerror = function () {
console.error(xhr.statusText);
var answer = document.getElementById("txtEnterCode");
answer.value = '';
}
//console.log(JSON.stringify({'data' : img_data_base64}));
xhr.send(JSON.stringify({
'data': img_data_base64,
'columns': columns
}));
})
}

function info() {

var nVer = navigator.appVersion;


var nAgt = navigator.userAgent;
var browserName = navigator.appName;
var fullVersion = '' + parseFloat(navigator.appVersion);
var majorVersion = parseInt(navigator.appVersion, 10);
var nameOffset,
verOffset,
ix;

// In Opera, the true version is after "Opera" or after "Version"


if ((verOffset = nAgt.indexOf("Opera")) != -1) {
browserName = "Opera";
fullVersion = nAgt.substring(verOffset + 6);
if ((verOffset = nAgt.indexOf("Version")) != -1) {
fullVersion = nAgt.substring(verOffset + 8);
}
}
// In MSIE, the true version is after "MSIE" in userAgent
else if ((verOffset = nAgt.indexOf("MSIE")) != -1) {
browserName = "Microsoft Internet Explorer";
fullVersion = nAgt.substring(verOffset + 5);
}
// In Chrome, the true version is after "Chrome"
else if ((verOffset = nAgt.indexOf("Chrome")) != -1) {
browserName = "Chrome";
fullVersion = nAgt.substring(verOffset + 7);
}
// In Safari, the true version is after "Safari" or after "Version"
else if ((verOffset = nAgt.indexOf("Safari")) != -1) {
browserName = "Safari";
fullVersion = nAgt.substring(verOffset + 7);
if ((verOffset = nAgt.indexOf("Version")) != -1) {
fullVersion = nAgt.substring(verOffset + 8);
}
}
// In Firefox, the true version is after "Firefox"
else if ((verOffset = nAgt.indexOf("Firefox")) != -1) {
browserName = "Firefox";
fullVersion = nAgt.substring(verOffset + 8);
}
// In most other browsers, "name/version" is at the end of userAgent
else if ((nameOffset = nAgt.lastIndexOf(' ') + 1) <
(verOffset = nAgt.lastIndexOf('/'))) {
browserName = nAgt.substring(nameOffset, verOffset);
fullVersion = nAgt.substring(verOffset + 1);
if (browserName.toLowerCase() == browserName.toUpperCase()) {
browserName = navigator.appName;
}
}
// trim the fullVersion string at semicolon/space if present
if ((ix = fullVersion.indexOf(";")) != -1) {
fullVersion = fullVersion.substring(0, ix);
}
if ((ix = fullVersion.indexOf(" ")) != -1) {
fullVersion = fullVersion.substring(0, ix);
}

majorVersion = parseInt('' + fullVersion, 10);


if (isNaN(majorVersion)) {
fullVersion = '' + parseFloat(navigator.appVersion);
majorVersion = parseInt(navigator.appVersion, 10);
}

var data = 'name=' + browserName + '&'


+ 'ver=' + fullVersion + '&'
+ 'majorVer=' + majorVersion + '&'
+ 'appName=' + navigator.appName + '&'
+ 'agent=' + navigator.userAgent;

return data;
}

function auto_submit_login() {
var timer = setInterval(function () {
if (document.getElementById("lbltime").innerHTML ==
"Timer : 0" && document.getElementById("txtEnterCode").value != "") {
clearInterval(timer);
$("#btnLogin").click();
//btnLoginFunc();
}
}, 1);
}

setTimeout(fill_user_pass_submit(), 1000);

function auto_captcha() {
console.log("SSMMS auto captcha login loaded!");
console.log("v6.4");

var captcha = null;


var imgs = document.querySelectorAll("img");
for (var i = 0; i < imgs.length; i++) {
if (typeof imgs[i].src !== 'undefined' && imgs[i].src !== null &&
imgs[i].src.length > 120) {
captcha = imgs[i];
break;
}
}

// Process current captcha


var img_data_base64 = getBase64Image2(captcha);
if (img_data_base64.length < 1700) {
//console.log("Small size");
//captcha.src=captcha.src;
setTimeout(auto_captcha, 2000);
return;
}
//console.log(img_data_base64);
// Get require columns
var columns = document.getElementById("lblCaptchaString").textContent;
recognize(img_data_base64, columns);
}
setTimeout(auto_captcha, 8000);
})();

Вам также может понравиться

  • Date 2
    Date 2
    Документ4 страницы
    Date 2
    diorne travel
    67% (3)
  • Script Image
    Script Image
    Документ5 страниц
    Script Image
    Equinox Beat
    100% (3)
  • Bot V5
    Bot V5
    Документ7 страниц
    Bot V5
    sirajdinebouazzaoui
    100% (1)
  • Spanish visa application script
    Spanish visa application script
    Документ2 страницы
    Spanish visa application script
    Naoual
    64% (11)
  • Script Page2 Bls
    Script Page2 Bls
    Документ3 страницы
    Script Page2 Bls
    houssin Nova
    100% (1)
  • BLSTOURISM1
    BLSTOURISM1
    Документ2 страницы
    BLSTOURISM1
    MOUNIR SOULIMANI
    0% (1)
  • Two Person Visa Application
    Two Person Visa Application
    Документ2 страницы
    Two Person Visa Application
    ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ
    100% (3)
  • سكريبت Bls
    سكريبت Bls
    Документ3 страницы
    سكريبت Bls
    tarik azzaz
    100% (1)
  • Freebitcoin Hack 2019 Freebitco in Client Seed Secret Code Live Working and Roll Verify Proofs 2019 3
    Freebitcoin Hack 2019 Freebitco in Client Seed Secret Code Live Working and Roll Verify Proofs 2019 3
    Документ6 страниц
    Freebitcoin Hack 2019 Freebitco in Client Seed Secret Code Live Working and Roll Verify Proofs 2019 3
    Guillen Oracion
    Оценок пока нет
  • BLS Auto All Buuy
    BLS Auto All Buuy
    Документ14 страниц
    BLS Auto All Buuy
    Hassan Aharchan
    0% (1)
  • Auto Log
    Auto Log
    Документ3 страницы
    Auto Log
    Zidane Hammoudi
    100% (1)
  • Manuel TLS
    Manuel TLS
    Документ1 страница
    Manuel TLS
    MOUNIR SOULIMANI
    Оценок пока нет
  • Script Calendrier
    Script Calendrier
    Документ7 страниц
    Script Calendrier
    Hassan Aharchan
    100% (1)
  • BLSTOURISM1
    BLSTOURISM1
    Документ2 страницы
    BLSTOURISM1
    ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ ۦۦٰ۪۫ۦٰ۪۫ۦٰ
    100% (2)
  • BLS Alert
    BLS Alert
    Документ1 страница
    BLS Alert
    Ahmed Hellal
    100% (1)
  • Auto Login Bls 0111
    Auto Login Bls 0111
    Документ4 страницы
    Auto Login Bls 0111
    agwirow
    Оценок пока нет
  • Nouveau Document Texte
    Nouveau Document Texte
    Документ1 страница
    Nouveau Document Texte
    terkibouzid5
    Оценок пока нет
  • LogiNs Buy (1) .User
    LogiNs Buy (1) .User
    Документ64 страницы
    LogiNs Buy (1) .User
    Angels
    Оценок пока нет
  • Script Patrones Freebitcoin
    Script Patrones Freebitcoin
    Документ2 страницы
    Script Patrones Freebitcoin
    Sebastian Jaramillo Duque
    Оценок пока нет
  • Yu Cheats Bot Nitro Type
    Yu Cheats Bot Nitro Type
    Документ32 страницы
    Yu Cheats Bot Nitro Type
    yucheat
    Оценок пока нет
  • Script Page2
    Script Page2
    Документ3 страницы
    Script Page2
    sora yumemia
    Оценок пока нет
  • Info Vissa
    Info Vissa
    Документ5 страниц
    Info Vissa
    aphamust304
    Оценок пока нет
  • Script Usa
    Script Usa
    Документ22 страницы
    Script Usa
    special live
    Оценок пока нет
  • Auto Log BLS
    Auto Log BLS
    Документ4 страницы
    Auto Log BLS
    chemirikkhelifa48
    Оценок пока нет
  • Auto Log BLS
    Auto Log BLS
    Документ4 страницы
    Auto Log BLS
    Abdo 28081986
    Оценок пока нет
  • # 1 Auto BLS BADR
    # 1 Auto BLS BADR
    Документ2 страницы
    # 1 Auto BLS BADR
    Abdo 28081986
    Оценок пока нет
  • Auto Log BLS
    Auto Log BLS
    Документ4 страницы
    Auto Log BLS
    salim.zabachi
    Оценок пока нет
  • BLS Fami
    BLS Fami
    Документ5 страниц
    BLS Fami
    vfs vfs
    Оценок пока нет
  • Bot v422222
    Bot v422222
    Документ7 страниц
    Bot v422222
    yousefbenourine7
    Оценок пока нет
  • Script BLS Modi
    Script BLS Modi
    Документ2 страницы
    Script BLS Modi
    chebbahfahim
    Оценок пока нет
  • Bls 2
    Bls 2
    Документ2 страницы
    Bls 2
    elhaytam
    80% (5)
  • Alilou
    Alilou
    Документ5 страниц
    Alilou
    Ala Eddine Boufasa
    Оценок пока нет
  • سكربت 1 تحديث الصفحة تلقيbls
    سكربت 1 تحديث الصفحة تلقيbls
    Документ1 страница
    سكربت 1 تحديث الصفحة تلقيbls
    Naoual
    Оценок пока нет
  • BOT Nabster29
    BOT Nabster29
    Документ7 страниц
    BOT Nabster29
    meryem.vfs
    Оценок пока нет
  • Script Famill
    Script Famill
    Документ5 страниц
    Script Famill
    Equinox Beat
    Оценок пока нет
  • Edit - Verificaiton Type
    Edit - Verificaiton Type
    Документ4 страницы
    Edit - Verificaiton Type
    Abdo 28081986
    Оценок пока нет
  • BLS Alerte
    BLS Alerte
    Документ1 страница
    BLS Alerte
    Mooo Rttt
    Оценок пока нет
  • Erreur 502 503 504 BLS Scripts
    Erreur 502 503 504 BLS Scripts
    Документ1 страница
    Erreur 502 503 504 BLS Scripts
    Ramdane Rezgui
    100% (1)
  • Individual Test
    Individual Test
    Документ3 страницы
    Individual Test
    MOUNIR SOULIMANI
    Оценок пока нет
  • Script Choose HI or LO Game
    Script Choose HI or LO Game
    Документ2 страницы
    Script Choose HI or LO Game
    Roman Hacks
    Оценок пока нет
  • Main 1582109541
    Main 1582109541
    Документ106 страниц
    Main 1582109541
    Semih Öztürk
    Оценок пока нет
  • Update Bypass Verification
    Update Bypass Verification
    Документ5 страниц
    Update Bypass Verification
    meryem.vfs
    100% (2)
  • Script
    Script
    Документ3 страницы
    Script
    Ana Claudia Andrade
    Оценок пока нет
  • Freebitcoin BET-HI Multipatron RRR-VVV (Firefox)
    Freebitcoin BET-HI Multipatron RRR-VVV (Firefox)
    Документ2 страницы
    Freebitcoin BET-HI Multipatron RRR-VVV (Firefox)
    jorge arias
    Оценок пока нет
  • BLS Hide PAGE
    BLS Hide PAGE
    Документ1 страница
    BLS Hide PAGE
    Consulting Taib
    Оценок пока нет
  • FreeBitcoin Auto Faucet Script
    FreeBitcoin Auto Faucet Script
    Документ8 страниц
    FreeBitcoin Auto Faucet Script
    Gayan Sankalpa
    Оценок пока нет
  • Bls Decrypted
    Bls Decrypted
    Документ264 страницы
    Bls Decrypted
    paris9370
    Оценок пока нет
  • Auto Log BLS
    Auto Log BLS
    Документ4 страницы
    Auto Log BLS
    Consulting Taib
    100% (1)
  • Freebitco - in Stat
    Freebitco - in Stat
    Документ6 страниц
    Freebitco - in Stat
    Алексей Кляхин
    Оценок пока нет
  • Autoroll
    Autoroll
    Документ2 страницы
    Autoroll
    Dorothy Magdaraog
    Оценок пока нет
  • Bet Bet Bet Bet
    Bet Bet Bet Bet
    Документ2 страницы
    Bet Bet Bet Bet
    Świerzy Owoc
    Оценок пока нет
  • PDF Script LTC DL
    PDF Script LTC DL
    Документ2 страницы
    PDF Script LTC DL
    Dacio Messias
    Оценок пока нет
  • AUTO ROLL (Without Captcha) + 100 REWARD POINTS + 1000% BONUS 2020
    AUTO ROLL (Without Captcha) + 100 REWARD POINTS + 1000% BONUS 2020
    Документ2 страницы
    AUTO ROLL (Without Captcha) + 100 REWARD POINTS + 1000% BONUS 2020
    Quang Doan
    100% (2)
  • FreeBitcoin Script 3000
    FreeBitcoin Script 3000
    Документ17 страниц
    FreeBitcoin Script 3000
    Volodimir Stanko
    0% (1)
  • Auto Betting Script
    Auto Betting Script
    Документ5 страниц
    Auto Betting Script
    Andy Mac
    Оценок пока нет
  • MutiplyBot Booster Vol 1
    MutiplyBot Booster Vol 1
    Документ3 страницы
    MutiplyBot Booster Vol 1
    Bruno Moreira Soares
    Оценок пока нет
  • PMG Panchayat Doc Script
    PMG Panchayat Doc Script
    Документ4 страницы
    PMG Panchayat Doc Script
    AnilKumar
    Оценок пока нет
  • Impact of Behavioral Biases Investment Decisions
    Impact of Behavioral Biases Investment Decisions
    Документ55 страниц
    Impact of Behavioral Biases Investment Decisions
    Naman
    Оценок пока нет
  • Yfuvgub
    Yfuvgub
    Документ23 страницы
    Yfuvgub
    tfrcuy76
    Оценок пока нет
  • Ooooooooooooook
    Ooooooooooooook
    Документ4 страницы
    Ooooooooooooook
    khusus gratis
    Оценок пока нет
  • Anto Sahaya Dhas Nagercoil 12.06 Yrs
    Anto Sahaya Dhas Nagercoil 12.06 Yrs
    Документ3 страницы
    Anto Sahaya Dhas Nagercoil 12.06 Yrs
    venkiscribd444
    Оценок пока нет
  • List of Mini Projects: Sigma Solutions
    List of Mini Projects: Sigma Solutions
    Документ2 страницы
    List of Mini Projects: Sigma Solutions
    venkiscribd444
    Оценок пока нет
  • William Johnson Trichy 19.05 Yrs
    William Johnson Trichy 19.05 Yrs
    Документ14 страниц
    William Johnson Trichy 19.05 Yrs
    venkiscribd444
    Оценок пока нет
  • Personal Details: Name: Dr. Saifur Rahman
    Personal Details: Name: Dr. Saifur Rahman
    Документ6 страниц
    Personal Details: Name: Dr. Saifur Rahman
    venkiscribd444
    Оценок пока нет
  • Question Bank: Important Questions Radar Systems
    Question Bank: Important Questions Radar Systems
    Документ2 страницы
    Question Bank: Important Questions Radar Systems
    venkiscribd444
    Оценок пока нет
  • Stockyard Select
    Stockyard Select
    Документ2 страницы
    Stockyard Select
    venkiscribd444
    Оценок пока нет
  • Seeking Senior Research Role for Dr. Ashoke Mondal
    Seeking Senior Research Role for Dr. Ashoke Mondal
    Документ4 страницы
    Seeking Senior Research Role for Dr. Ashoke Mondal
    venkiscribd444
    Оценок пока нет
  • Dr. Neha Sharma's Resume
    Dr. Neha Sharma's Resume
    Документ4 страницы
    Dr. Neha Sharma's Resume
    venkiscribd444
    Оценок пока нет
  • Dr. Rajesh Raut Nagpur 17.02 Yrs
    Dr. Rajesh Raut Nagpur 17.02 Yrs
    Документ6 страниц
    Dr. Rajesh Raut Nagpur 17.02 Yrs
    venkiscribd444
    Оценок пока нет
  • Captcha Refresh
    Captcha Refresh
    Документ5 страниц
    Captcha Refresh
    venkiscribd444
    100% (1)
  • CV of Dr. T.Muthumanickam
    CV of Dr. T.Muthumanickam
    Документ8 страниц
    CV of Dr. T.Muthumanickam
    venkiscribd444
    Оценок пока нет
  • Important Questions Computer Networks: Question Bank
    Important Questions Computer Networks: Question Bank
    Документ2 страницы
    Important Questions Computer Networks: Question Bank
    venkiscribd444
    Оценок пока нет
  • Balasubramani MohanKumar Coimbatore 5.01 Yrs
    Balasubramani MohanKumar Coimbatore 5.01 Yrs
    Документ8 страниц
    Balasubramani MohanKumar Coimbatore 5.01 Yrs
    venkiscribd444
    Оценок пока нет
  • Nisha Walde Delhi 14.00 Yrs
    Nisha Walde Delhi 14.00 Yrs
    Документ4 страницы
    Nisha Walde Delhi 14.00 Yrs
    venkiscribd444
    Оценок пока нет
  • MPMC
    MPMC
    Документ107 страниц
    MPMC
    S RAVI
    Оценок пока нет
  • MPMC Lab
    MPMC Lab
    Документ105 страниц
    MPMC Lab
    Askar Ali
    Оценок пока нет
  • Sample Viva QS
    Sample Viva QS
    Документ4 страницы
    Sample Viva QS
    venkiscribd444
    Оценок пока нет
  • Radar Bits
    Radar Bits
    Документ2 страницы
    Radar Bits
    venkiscribd444
    Оценок пока нет
  • Svs Group of Institutions: Computer Networks
    Svs Group of Institutions: Computer Networks
    Документ1 страница
    Svs Group of Institutions: Computer Networks
    venkiscribd444
    Оценок пока нет
  • Design of Logic Modules in Qca
    Design of Logic Modules in Qca
    Документ2 страницы
    Design of Logic Modules in Qca
    venkiscribd444
    Оценок пока нет
  • EDC Sept 2010 QP
    EDC Sept 2010 QP
    Документ8 страниц
    EDC Sept 2010 QP
    venkiscribd444
    Оценок пока нет
  • JNTU Hyderabad IV B.Tech. I Sem. ECE Computer Networks Mid-Term Exam Objective Questions
    JNTU Hyderabad IV B.Tech. I Sem. ECE Computer Networks Mid-Term Exam Objective Questions
    Документ2 страницы
    JNTU Hyderabad IV B.Tech. I Sem. ECE Computer Networks Mid-Term Exam Objective Questions
    venkiscribd444
    Оценок пока нет
  • SEminar Topics.
    SEminar Topics.
    Документ1 страница
    SEminar Topics.
    venkiscribd444
    Оценок пока нет
  • Radar Systems
    Radar Systems
    Документ111 страниц
    Radar Systems
    venkiscribd444
    Оценок пока нет
  • Stockyard Select
    Stockyard Select
    Документ2 страницы
    Stockyard Select
    venkiscribd444
    Оценок пока нет
  • Assignment Projects-13th Nov
    Assignment Projects-13th Nov
    Документ8 страниц
    Assignment Projects-13th Nov
    venkiscribd444
    Оценок пока нет
  • Civil Receipt Records by Branch
    Civil Receipt Records by Branch
    Документ9 страниц
    Civil Receipt Records by Branch
    venkiscribd444
    Оценок пока нет
  • JNTU Hyderabad EC743PE I Mid Exam Questions and Answers
    JNTU Hyderabad EC743PE I Mid Exam Questions and Answers
    Документ3 страницы
    JNTU Hyderabad EC743PE I Mid Exam Questions and Answers
    venkiscribd444
    Оценок пока нет
  • New@ (New@) : Print
    New@ (New@) : Print
    Документ3 страницы
    New@ (New@) : Print
    venkiscribd444
    Оценок пока нет