// ==UserScript==
// @name New Captcha CRACKER
// @author TryNinja The H4CK3R1337 8)
// @match https://bitcointalk.org/index.php?action=post*
// @grant none
// @version 1.1
// ==/UserScript==
(() => {
function solve(key) {
function S(a, c) {
return ((a << c) | (a >>> (32 - c))) & 4294967295;
}
function sha1(key) {
var e = new ArrayBuffer(64),
d = new DataView(e);
e = new Uint8Array(e);
e.set(key);
e[key.length] = 128;
d.setUint32(60, 8 * key.length);
var schedule = Array(80);
for (var i = 0; i < 80; i++) {
if (i < 16) {
schedule[i] = d.getUint32(4 * i);
} else {
schedule[i] = S(
schedule[i - 3] ^
schedule[i - 8] ^
schedule[i - 14] ^
schedule[i - 16],
1
);
}
}
var roundFunctions = [
function(t, v, w) {
return (t & v) | (~t & w);
},
function(t, v, w) {
return t ^ v ^ w;
},
function(t, v, w) {
return (t & v) | (t & w) | (v & w);
},
function(t, v, w) {
return t ^ v ^ w;
},
];
var hash = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
for (var i = 0; i < 80; i++) {
var f = Math.floor(i / 20);
var temp =
S(hash[0], 5) +
roundFunctions[f](hash[1], hash[2], hash[3]) +
hash[4] +
schedule[i] + [1518500249, 1859775393, 2400959708, 3395469782][f];
hash[4] = hash[3];
hash[3] = hash[2];
hash[2] = S(hash[1], 30);
hash[1] = hash[0];
hash[0] = temp & 4294967295;
}
d.setUint32(0, (1732584193 + hash[0]) & 4294967295);
d.setUint32(4, (4023233417 + hash[1]) & 4294967295);
d.setUint32(8, (2562383102 + hash[2]) & 4294967295);
d.setUint32(12, (271733878 + hash[3]) & 4294967295);
d.setUint32(16, (3285377520 + hash[4]) & 4294967295);
return e.slice(0, 20);
}
let d = [114, 117, 106, 121, 119, 106, 115, 100, 107, 101, 114, 100];
for (f = 0; 8 > f; f++) d[12 + f] = key.charCodeAt(2 + f);
let hash = sha1(d);
let answer = "";
for (f = 0; 20 > f; f++) {
const k = hash[f].toString(16).padStart(2, "0");
answer += k;
}
return answer;
}
const input = document.querySelector("input[name=h4cfb47325c1907ed]");
const captchaAnswer = solve(input.value);
input.value = captchaAnswer;
input.setAttribute("value", captchaAnswer);
document.querySelector("canvas").outerHTML = '
Captcha cracked by TryNinja The H4CK3R1337!
';
})();