JS eval(function(p,a,c,k,e,r){e=function(c)*****解密
2012-10-05 13:37
381 查看
在网上下载源代码时,很可能发现代码里的JS脚本看不懂,这是由于JS加密造成的。如果你发现JS是以eval(function(p,a,c,k,e,r){e=function(c)开头的,看到这个页面你就可以解决他。
步骤:1.新建html页面,把以下代码考进去,运行。
2.把加密的代码粘进文本域,点击解密,OK!
步骤:1.新建html页面,把以下代码考进去,运行。
2.把加密的代码粘进文本域,点击解密,OK!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>JS解密</title> </head> <body> <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> </textarea> <input type=button onclick=encode() value=编码> <input type=button onclick=run() value=执行> <input type=button onclick=decode() value=解码> </body> </html>
相关文章推荐
- JS eval(function(p,a,c,k,e,r){e=function(c)*****解密
- eval(function(p,a,c,k,e,d)系列解密javascript程序
- js(eval)解密工具
- eval(function(p,a,c,k,e,d)系列解密
- eval(function(p,a,c,k,e,r)解密程序
- eval(function(p,a,c,k,e,d))系列解密javascript程序
- 关于js eval 的解密方法
- eval解析JSON中的注意点 在JS中将JSON的字符串解析成JSON数据格式,一般有两种方式: 1.一种为使用eval()函数。 2. 使用Function对象来进行返回解析。 使用eval
- eval(function(p,a,c,k,e,d)系列加解密javascript程序
- 关于js eval 的解密方法 二
- eval(function(p,a,c,k,e,d)系列解密javascript程序
- eval(function(p,a,c,k,e,d)系列解密javascript程序
- 解密eval(function(p,a,c,k,e,d)的代码
- eval(function(p,a,c,k,e,d)系列javascript脚本的解密程序
- js简单解密(eval解密)
- javascript(js)使用eval方法加密过的函数解密方法
- 如何解析被压缩过的Js文件?eval(function(p,a,c,k,e,d){.....,{}))
- js简单解密(eval解密)
- js java 密码的rsa加密解密配合
- node.js开发错误——TypeError: req.flash is not a function