加速乐反爬虫技术初探
2017-8-31 10:23:0 Author: guage.cool(查看原文) 阅读量:3 收藏

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
54
55
56
57
58
59
60
61
62
63
var l = function() {
while (window._phantom || window.__phantomas) {};
var cd, dc = '__jsl_clearance=1496825590.658|0|';
var f = [function(x) {
return x
}, function(x) {
return x;
}, function(x) {
return eval('String.fromCharCode(' + x + ')')
}, function(x) {
for (var i = 0; i < x.length; i++) {
x[i] = parseInt(x[i]).toString(36)
};
return x.join('')
}];
cd = ['Ek', [
[7] + (-~(((-~![] << -~![])) * [(-~![] << -~![])]) + [] + [])
],
[3 - ~(((-~![] << -~![])) * [(-~![] << -~![])])],
[
[-~![] - ~![]] + [3 - ~(((-~![] << -~![])) * [(-~![] << -~![])])]
],
[
[3 - ~(((-~![] << -~![])) * [(-~![] << -~![])])] + (2 + 2 + [
[], (+!+[])
][~~![]]), [(-~![] - ~![] ^ -~[])] + [7]
], '2', [
[
[2] * ((-~![] - ~![] ^ -~[]))
] + [
[2] * ((-~![] - ~![] ^ -~[]))
]
], 'X', (-~(((-~![] << -~![])) * [(-~![] << -~![])]) + [] + []) + [{} + [] + []][0].charAt((-~[] << 3)), '26l3', [
[-~![] - ~![]] + [
[2] * ((-~![] - ~![] ^ -~[]))
]
], 'q', [
[3 - ~(((-~![] << -~![])) * [(-~![] << -~![])])] + [~~[]]
], '7', [((-~![] << -~![])) * [(-~![] << -~![])] + ([-~-~~~[]] + ~~[] >> -~-~~~[])], '5CMN', [
[
[2] * ((-~![] - ~![] ^ -~[]))
] + [7]
], '1y', [~~[]], '%3D'
];
for (var i = 0; i < cd.length; i++) {
cd[i] = f[[1, 2, 0, 3, 2, 1, 2, 1, 0, 1, 3, 1, 2, 1, 0, 1, 2, 1, 0, 1][i]](cd[i])
};
cd = cd.join('');
dc += cd;
setTimeout('location.href=location.href.replace(/[\?|&]captcha-challenge/,\'\')', 1500);
document.cookie = (dc + ';Expires=Wed, 07-Jun-17 09:53:10 GMT;Path=/;');
};
if ((function() {
try {
return !!window.addEventListener;
} catch (e) {
return false;
}
})()) {
document.addEventListener('DOMContentLoaded', l, false);
} else {
document.attachEvent('onreadystatechange', l);
}

进一步分析while (window._phantom || window.__phantomas) {}; 当发现是_phantom或者__phantomas后就直接进入死循环了。

setTimeout('location.href=location.href.replace(/[\?|&]captcha-challenge/,\'\')', 1500);

通过控制变量法,尝试清除每一个seebug的cookies,发现当没有__jsl_clearance或__jsluid这两个cookies的时候就会出现521状态码


文章来源: https://guage.cool/anti-yunaq.html
如有侵权请联系:admin#unsafe.sh