-
Notifications
You must be signed in to change notification settings - Fork 0
/
x.js
53 lines (50 loc) · 3.24 KB
/
x.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function extractb2(string, start, end) {
const startPos = string.indexOf(start);
if (startPos === -1) {
return '';
}
const endPos = string.indexOf(end, startPos + start.length);
if (endPos === -1) {
return '';
}
return string.substring(startPos + start.length, endPos);
}
async function gettoken() {
const url = 'https://www.google.com/recaptcha/api2/anchor?ar=1&k=6LeMZbsmAAAAAN5_OZdFZtB3UKcE_xGy4wSzc4u9&co=aHR0cHM6Ly9jb29yZG9ubmUuY29tOjQ0Mw..&hl=en&v=SglpK98hSCn2CroR0bKRSJl5&size=invisible&cb=3av9gsxbeqae';
try {
const response = await fetch(url);
const body = await response.text();
const token = extractb2(body, 'type="hidden" id="recaptcha-token" value="', '"');
return token;
} catch (error) {
console.error(error);
}
}
async function bypassrecaptcha() {
const token = await gettoken();
if (!token) {
console.error("token could not be received");
return;
}
const url = 'https://www.google.com/recaptcha/api2/reload?k=6LeMZbsmAAAAAN5_OZdFZtB3UKcE_xGy4wSzc4u9';
const formData = new URLSearchParams();
formData.append('v', '');
formData.append('reason', 'q');
formData.append('c', token);
formData.append('k', '03AL8dmw8qW3adUjXnh5LsRW4k8TWaI2Alk_IpI0KLqAFUJ8fcSi1Tfeb6AOIkT6VrbxY8qR6jy7lBf7DYr7kMQPrf9GXrDzYimk8ALLwx1EdULAdKzShuXZ_seD5CrGs_2e6e6WFTEAiG2O3CU1mmOWkua_rXM0MFH6c7CnorLTIlZp-YfvnDMaLmPvUQBoWslfqzFUigNyP_gpWoeOq0e94jPIm2N8bZGdnUHApnIlgSEXygQAVDqcBwwFhOV9lIafJeJqAiRPtN6N_kZdbigg4KB5pMgkuRpARR_YqJ_XyYgrTdoQcJsIplja-8OYyF3lqnLbHTcW2zte_nE4nX2Ij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9fAjdZi7OoVrjwOE7n22BNvF2z9cbEXqmtgez7oznwEoTq319vaCJYMA7vTPI93WUkFUG1XljBhJp0kK6B4PIFilppdQ_zjZZ0NB3jSdW2so_q3rY6zPwZfHTHrjixMRCk12xccZnSMa59PGiROZBPi_0w');
try {
const response = await fetch(url, {
method: 'POST',
body: formData,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
}
});
const body = await response.text();
const bypass = extractb2(body, '["rresp","', '"');
console.log("g-recaptcha-response -> ", bypass);
} catch (error) {
console.error(error);
}
}
bypassrecaptcha();