本文目录一览:
js代码解密
像这样的混淆代码, 最终都会调用eval来运行加密的代码
观察你给的这一段, 发现\u0065\u0076\u0061\u006c, 刚好就代表了eval函数
把它删去再运行这一段得到
var _token = "jmm8qvq";
後面还有一段很长的, 同理删去eval函数就能得到原始代码
计算机代码Js解密
window["\x65\x76\x61\x6c"]( .... )
// 即window['eval'], 把括号里的文字作为代码执行
(function(EhFnhw1,tovOUpsAX2,MsHiKK3,RtpVa4,UT5,YbVn6){UT5=function(MsHiKK3){return(MsHiKK3tovOUpsAX2?"":UT5(window["\x70\x61\x72\x73\x65\x49\x6e\x74"](MsHiKK3/tovOUpsAX2)))+((MsHiKK3=MsHiKK3%tovOUpsAX2)35?window["\x53\x74\x72\x69\x6e\x67"]["\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65"](MsHiKK3+29):MsHiKK3["\x74\x6f\x53\x74\x72\x69\x6e\x67"](36))};if(!''["\x72\x65\x70\x6c\x61\x63\x65"](/^/,window["\x53\x74\x72\x69\x6e\x67"])){while(MsHiKK3--)YbVn6[UT5(MsHiKK3)]=RtpVa4[MsHiKK3]||UT5(MsHiKK3);RtpVa4=[function(UT5){return YbVn6[UT5]}];UT5=function(){return'\\\x77\x2b'};MsHiKK3=1;};while(MsHiKK3--)if(RtpVa4[MsHiKK3])EhFnhw1=EhFnhw1["\x72\x65\x70\x6c\x61\x63\x65"](new window["\x52\x65\x67\x45\x78\x70"]('\\\x62'+UT5(MsHiKK3)+'\\\x62','\x67'),RtpVa4[MsHiKK3]);return EhFnhw1;}('\x32\x28\x31\x28\x29\x7b\x30\x2e\x33\x3d\x22\x36\x3a\x35\x22\x7d\x2c\x34\x29\x3b',7,7,'\x64\x6f\x63\x75\x6d\x65\x6e\x74\x7c\x66\x75\x6e\x63\x74\x69\x6f\x6e\x7c\x73\x65\x74\x49\x6e\x74\x65\x72\x76\x61\x6c\x7c\x74\x69\x74\x6c\x65\x7c\x32\x30\x30\x30\x7c\x61\x77\x65\x73\x6f\x6d\x65\x7c\x61\x6e\x73\x77\x65\x72'["\x73\x70\x6c\x69\x74"]('\x7c'),0,{}))
// 这一大串的结果是
"setInterval(function(){document.title="answer:awesome"},2000);"
// 即设置一个时钟, 每2秒把标题修改为answer:awesome
JS代码解密
(function(E, B) {
function ka(a, b, d) {
if (d === B a.nodeType === 1) {
d = a.getAttribute("data-" + b);
if (typeof d === "string") {
try {
d = d === "true" ? true: d === "false" ? false: d === "null" ? null: !c.isNaN(d) ? parseFloat(d) : Ja.test(d) ? c.parseJSON(d) : d
} catch(e) {}
c.data(a, b, d)
} else d = B
}
return d
}
function U() {
return false
}
function ca() {
return true
}
function la(a, b, d) {
d[0].type = a;
return c.event.handle.apply(b, d)
}
function Ka(a) {
var b, d, e, f, h, l, k, o, x, r, A, C = [];
f = [];
h = c.data(this, this.nodeType ? "events": "__events__");
if (typeof h === "function") h = h.events;
if (! (a.liveFired === this || !h || !h.live || a.button a.type === "click")) {
if (a.namespace) A = RegExp("(^|\\.)" + a.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
a.liveFired = this;
var J = h.live.slice(0);
for (k = 0; k J.length; k++) {
h = J[k];
h.origType.replace(X, "") === a.type ? f.push(h.selector) : J.splice(k--, 1)
}
f = c(a.target).closest(f, a.currentTarget);
o = 0;
for (x = f.length; o x; o++) {
r = f[o];
for (k = 0; k J.length; k++) {
h = J[k];
if (r.selector === h.selector (!A || A.test(h.namespace))) {
l = r.elem;
e = null;
if (h.preType === "mouseenter" || h.preType === "mouseleave") {
a.type = h.preType;
e = c(a.relatedTarget).closest(h.selector)[0]
}
if (!e || e !== l) C.push({
elem: l,
handleObj: h,
level: r.level
})
}
}
}
o = 0;
for (x = C.length; o x; o++) {
f = C[o];
if (d f.level d)
JS代码解密?
没法解密 一个是这种根本没法逆向,(如果是开发者的话,如果是打包的js文件,会有个map,可以还原回去,但是这种