forked from DingZaiHub/ob-decrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.js
140 lines (140 loc) · 4.87 KB
/
code.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// atob函数,后面可能会判断其是否存在,勿删!
!(function () {
var _0x421970 = function () {
var _0x156f0f;
try {
_0x156f0f = Function("return (function() " + "{}.constructor(\"return this\")( )" + ");")();
} catch (_0x3da786) {
_0x156f0f = window;
}
return _0x156f0f;
};
var _0x2fdc10 = _0x421970();
var _0x5b0441 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
_0x2fdc10.atob || (_0x2fdc10.atob = function (_0x32e3d3) {
var _0x37f0d8 = String(_0x32e3d3).replace(/=+$/, "");
var _0x1dc53f = "";
for (var _0x3cf0be = 0x0, _0x42233f, _0x11d839, _0x1a56d1 = 0x0; _0x11d839 = _0x37f0d8.charAt(_0x1a56d1++); ~_0x11d839 && (_0x42233f = _0x3cf0be % 0x4 ? _0x42233f * 0x40 + _0x11d839 : _0x11d839, _0x3cf0be++ % 0x4) ? _0x1dc53f += String.fromCharCode(0xff & _0x42233f >> (-0x2 * _0x3cf0be & 0x6)) : 0x0) {
_0x11d839 = _0x5b0441.indexOf(_0x11d839);
}
return _0x1dc53f;
});
})();
function hi() {
var _0x55e58f = function () {
var _0x5d69d2 = true;
return function (_0x309259, _0x4ce86b) {
if (_0x5d69d2) {
var _0x46e4b5 = function () {
if (_0x4ce86b) {
var _0x20e226 = _0x4ce86b.apply(_0x309259, arguments);
_0x4ce86b = null;
return _0x20e226;
}
};
} else {
var _0x46e4b5 = function () {};
}
_0x5d69d2 = false;
return _0x46e4b5;
};
}();
(function () {
_0x55e58f(this, function () {
var _0x413f97 = new RegExp("function *\\( *\\)");
var _0x1596f6 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", "i");
var _0x4a5908 = oOADE("init");
if (!_0x413f97.test(_0x4a5908 + "chain") || !_0x1596f6.test(_0x4a5908 + "input")) {
_0x4a5908("0");
} else {
oOADE();
}
})();
})();
var _0x2cba31 = function () {
var _0x105a32 = true;
return function (_0xc1eb21, _0x59ff7c) {
if (_0x105a32) {
var _0x3ff6e2 = function () {
if (_0x59ff7c) {
var _0x4e0551 = _0x59ff7c.apply(_0xc1eb21, arguments);
_0x59ff7c = null;
return _0x4e0551;
}
};
} else {
var _0x3ff6e2 = function () {};
}
_0x105a32 = false;
return _0x3ff6e2;
};
}();
var _0x4f7790 = _0x2cba31(this, function () {
var _0x4a204c = function () {};
var _0x20e852 = function () {
var _0x3fed8b;
try {
_0x3fed8b = Function("return (function() {}.constructor(\"return this\")( ));")();
} catch (_0x493e48) {
_0x3fed8b = window;
}
return _0x3fed8b;
};
var _0x1c3dec = _0x20e852();
if (!_0x1c3dec.console) {
_0x1c3dec.console = function (_0x4455af) {
var _0x239123 = {
"log": _0x4455af,
"warn": _0x4455af,
"debug": _0x4455af,
"info": _0x4455af,
"error": _0x4455af,
"exception": _0x4455af,
"table": _0x4455af,
"trace": _0x4455af
};
return _0x239123;
}(_0x4a204c);
} else {
_0x1c3dec.console.log = _0x4a204c;
_0x1c3dec.console.warn = _0x4a204c;
_0x1c3dec.console.debug = _0x4a204c;
_0x1c3dec.console.info = _0x4a204c;
_0x1c3dec.console.error = _0x4a204c;
_0x1c3dec.console.exception = _0x4a204c;
_0x1c3dec.console.table = _0x4a204c;
_0x1c3dec.console.trace = _0x4a204c;
}
});
_0x4f7790();
console.log("Hello World!");
}
hi();
setInterval(function () {
oOADE();
}, 4000);
function oOADE(_0x47fbbc) {
function _0xa7e155(_0x5859f0) {
if (typeof _0x5859f0 === "string") {
return function (_0x139440) {}.constructor("while (true) {}").apply("counter");
} else {
if (("" + _0x5859f0 / _0x5859f0).length !== 1 || _0x5859f0 % 20 === 0) {
(function () {
return true;
}).constructor("debugger").call("action");
} else {
(function () {
return false;
}).constructor("debugger").apply("stateObject");
}
}
_0xa7e155(++_0x5859f0);
}
try {
if (_0x47fbbc) {
return _0xa7e155;
} else {
_0xa7e155(0);
}
} catch (_0x4ea382) {}
}