js密文处理

<!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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值