热搜词
发表于 2007-11-27 12:59:55 | 显示全部楼层 |阅读模式
<>&lt;script&gt; <BR>a=62; <BR>function encode() { <BR>&nbsp;var code = document.getElementById(&#39;code&#39;).value; <BR>&nbsp;code = code.replace(/[&#92;r&#92;n]+/g, &#39;&#39;); <BR>&nbsp;code = code.replace(/&#39;/g, "<A target=_blank href="file://&#92;&#92;&#39;">&#92;&#92;&#39;</A>"); <BR>&nbsp;var tmp = code.match(/&#92;b(&#92;w+)&#92;b/g); <BR>&nbsp;tmp.sort(); <BR>&nbsp;var dict = []; <BR>&nbsp;var i, t = &#39;&#39;; <BR>&nbsp;for(var i=0; i&lt;tmp.length; i++) { <BR>&nbsp;&nbsp; if(tmp<i> != t) dict.push(t = tmp<i>); <BR>&nbsp;} <BR>&nbsp;var len = dict.length; <BR>&nbsp;var ch; <BR>&nbsp;for(i=0; i&lt;len; i++) { <BR>&nbsp;&nbsp; ch = num(i); <BR>&nbsp;&nbsp; code = code.replace(new RegExp(&#39;&#92;&#92;b&#39;+dict<i>+&#39;&#92;&#92;b&#39;,&#39;g&#39;), ch); <BR>&nbsp;&nbsp; if(ch == dict<i>) dict<i> = &#39;&#39;; <BR>&nbsp;} <BR>&nbsp;document.getElementById(&#39;code&#39;).value = "eval(function(p,a,c,k,e,d){e=function(c){return(c&lt;a?&#39;&#39;:e(parseInt(c/a)))+((c=c%a)&gt;35?String.fromCharCode(c+29):c.toString(36))};if(!&#39;&#39;.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return&#39;&#92;&#92;&#92;&#92;w+&#39;};c=1};while(c--)if(k[c])p=p.replace(new RegExp(&#39;&#92;&#92;&#92;&#92;b&#39;+e(c)+&#39;&#92;&#92;&#92;&#92;b&#39;,&#39;g&#39;),k[c]);return p}(" <BR>&nbsp;&nbsp; + "&#39;"+code+"&#39;,"+a+","+len+",&#39;"+ dict.join(&#39;|&#39;)+"&#39;.split(&#39;|&#39;),0,{}))"; <BR>} </P><>function num(c) { <BR>&nbsp;return(c&lt;a?&#39;&#39;:num(parseInt(c/a)))+((c=c%a)&gt;35?String.fromCharCode(c+29):c.toString(36)); <BR>} </P><>function run() { <BR>&nbsp;eval(document.getElementById(&#39;code&#39;).value); <BR>} </P><>function decode() { <BR>&nbsp;var code = document.getElementById(&#39;code&#39;).value; <BR>&nbsp;code = code.replace(/^eval/, &#39;&#39;); <BR>&nbsp;document.getElementById(&#39;code&#39;).value = eval(code); <BR>} <BR>&lt;/script&gt; </P><><BR>&lt;textarea id=code cols=80 rows=20&gt; </P><>&lt;/textarea&gt;<BR>&nbsp;<BR>&lt;input type=button onclick=encode() value=编码&gt; <BR>&lt;input type=button onclick=run() value=执行&gt; <BR>&lt;input type=button onclick=decode() value=解码&gt; </P><>复制上面代码放入html的body区域,另存为网页文件,再打开网页,复制粘贴需要被解码的代码即可!</P>
全部评论0
回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|管理员之家 ( 苏ICP备2023053177号-2 )

GMT+8, 2025-1-16 04:52 , Processed in 0.145090 second(s), 22 queries .

Powered by Discuz! X3.5

Cpoyright © 2001-2025 Discuz! Team