<!DOCTYPE html>
<!-- saved from url=(0082)http://mix.webafang.com/mobile.php?act=module&id=245&name=smashegg&do=index&weid=2 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<!-- Mobile Devices Support @begin -->
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Mobile Devices Support @end -->
</head>
<body onselectstart="return true;" οndragstart="return false;"><section id="dialoger"><div class="dialogCover"></div></section>
<script>
a=62;
function encode() {
var code = document.getElementById('code').value;
code = code.replace(/[ ]+/g, '');
code = code.replace(/'/g, "\'");
var tmp = code.match(/(w+)/g);
tmp.sort();
var dict = [];
var i, t = '';
for(var i=0; i<tmp.length; i++) {
if(tmp[i] != t) dict.push(t = tmp[i]);
}
var len = dict.length;
var ch;
for(i=0; i<len; i++) {
ch = num(i);
code = code.replace(new RegExp('\b'+dict[i]+'\b','g'), ch);
if(ch == dict[i]) dict[i] = '';
}
document.getElementById('code').value = "eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}("
+ "'"+code+"',"+a+","+len+",'"+ dict.join('|')+"'.split('|'),0,{}))";
}
function num(c) {
return(c<a?'':num(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36));
}
function run() {
eval(document.getElementById('code').value);
}
function decode() {
var code = document.getElementById('code').value;
code2 = code.replace(/^eval/, '');
//alert(code);
document.getElementById('code').value = eval(code2);
}
</script>
<textarea id=code cols=80 rows=20>
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('f o=(2(){f h=2(){f 4=0;4.8=b;4.3=b;4.6=b;4.1=9;4.5={1:d,i:("x"A z)?"u":"w"}};h.v={m:2(a){0.8="t"===l(a)?g.H(a):a;0.3=0.8.J;0.6=0.3.6;0.m=2(){c 0};0.e(d);c 0},k:2(){7(0.5.1){0.5.1=9;0.e(9)};0.1=!0.1;7(d==0.1){0.3.6=0.6;0.3.k()}s{0.3.y();0.3.6=b};7("2"==l(0.j)){0.j.E(0)}},D:2(p){7(p.C==0.8){c};0.k()},e:2(r){7(r||0.5.1){g.q.I(0.5.i,0,9)}s{g.q.F(0.5.i,0,9)}}};c B h()})();o.j=2(){0.8.G=0.1?"n 1":"n"}',46,46,'this|on|function|player|that|autoPlayFix|src|if|box|false|box_ele|null|return|true|autoPlayEvt|var|document|_playbox|evtName|play_fn|play|typeof|init|btn_music|playbox|evt|body|important|else|string|touchend|prototype|click|ontouchstart|pause|window|in|new|target|handleEvent|call|removeEventListener|className|getElementById|addEventListener|nextSibling'.split('|'),0,{}))
</textarea>
<input type=button οnclick=encode() value=编码>
<input type=button οnclick=run() value=执行>
<input type=button οnclick=decode() value=解码>
</body></html>
js密文处理
最新推荐文章于 2024-04-10 18:31:03 发布