-
Notifications
You must be signed in to change notification settings - Fork 0
/
utility.js
38 lines (38 loc) · 2.32 KB
/
utility.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
const _0x2012 = ['\x27.removeDuplicates(proxies)\x27:\x20\x22proxies\x22\x20is\x20not\x20an\x20Array.', 'isHTML', 'request', 'filterProxies', 'replace', 'replaceAll', 'match', '$$$$', 'toString', 'indexOf', 'isProxy', '\x27.filterProxies(text)\x27:\x20\x22text\x22\x20is\x20not\x20an\x20String.', 'filter', 'removeDuplicates', '\x5c$&', 'string', 'test', 'prototype', 'object', 'exports'];
(function (_0xd15d55, _0x2012dc) {
const _0x132b82 = function (_0x2cbe44) {
while (--_0x2cbe44) {
_0xd15d55['push'](_0xd15d55['shift']());
}
};
_0x132b82(++_0x2012dc);
}(_0x2012, 0x9a));
const _0x132b = function (_0xd15d55, _0x2012dc) {
_0xd15d55 = _0xd15d55 - 0x0;
let _0x132b82 = _0x2012[_0xd15d55];
return _0x132b82;
};
const request = require(_0x132b('0x8')),
util = class proxy_scraper {
constructor() {} [_0x132b('0x13')](_0x532cab) {
if (typeof _0x532cab == _0x132b('0x4')) return _0x532cab[_0x132b('0x12')](function (_0x370cc6, _0xace02d, _0x4d6841) {
return _0x4d6841[_0x132b('0xf')](_0x370cc6) == _0xace02d;
});
else throw new Error(_0x132b('0x6'));
} [_0x132b('0x7')](_0x35e913) {
return typeof _0x35e913 == _0x132b('0x1') ? /<("[^"]*"|'[^']*'|[^'">])*>/img [_0x132b('0x2')](_0x35e913) ? !![] : ![] : ![];
} [_0x132b('0x10')](_0x3742e3, _0x1faf25) {
return _0x1faf25[_0x132b('0x2')]('' + _0x3742e3[_0x132b('0xe')]()) ? !![] : ![];
} [_0x132b('0x9')](_0x2a0252, _0x574318) {
if (typeof _0x2a0252 == _0x132b('0x1')) {
let _0x1d5e0f = _0x2a0252,
_0x5cd61a = _0x574318;
return _0x1d5e0f[_0x132b('0xc')](_0x5cd61a);
} else throw new Error(_0x132b('0x11'));
} [_0x132b('0xb')](_0x35b860, _0x7a78b, _0x41c102) {
String[_0x132b('0x3')][_0x132b('0xb')] = function (_0x19b6ac, _0x34487a, _0x3c6710) {
return this[_0x132b('0xa')](new RegExp(_0x19b6ac[_0x132b('0xa')](/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g, _0x132b('0x0')), _0x3c6710 ? 'gi' : 'g'), typeof _0x34487a == _0x132b('0x1') ? _0x34487a['replace'](/\$/g, _0x132b('0xd')) : _0x34487a);
}, _0x35b860[_0x132b('0xb')](_0x7a78b, _0x41c102);
}
};
module[_0x132b('0x5')] = new util();