Skip to content

Solution for Xcaptcha (tampermonkey) #40

@Leisurelybear

Description

@Leisurelybear

create a tampermonkey script and enable it.

// default settings...
// ...
// @match        http://202.38.93.111:10047/xcaptcha
// ...

(function() {
    'use strict';

    // Your code here...
    let btn = document.getElementById("submit")
    
    // calsulate the first one
    let nums = document.querySelector("body > div > form > div:nth-child(1) > label").innerHTML.split(" ")[0].split("+")
    let sum = (BigInt(nums[0])+BigInt(nums[1])).toString()
    document.querySelector("#captcha1").value=sum

    // second
    nums = document.querySelector("body > div > form > div:nth-child(2) > label").innerHTML.split(" ")[0].split("+")
    sum = (BigInt(nums[0])+BigInt(nums[1])).toString()
    document.querySelector("#captcha2").value=sum

    // third
    nums = document.querySelector("body > div > form > div:nth-child(3) > label").innerHTML.split(" ")[0].split("+")
    sum = (BigInt(nums[0])+BigInt(nums[1])).toString()
    document.querySelector("#captcha3").value=sum

    btn.click()

})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions