eval(function(p,a,c,k,e,r) 解密

eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[a-hj-t]'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";h j=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,q,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function decode(e){h k,f,a,b;h i,d,c;d=e.length;i=0;c="";l(i<d){m{k=j[e.n(i++)&o]}l(i<d&&k==-1);g(k==-1)p;m{f=j[e.n(i++)&o]}l(i<d&&f==-1);g(f==-1)p;c+=r.s((k<<2)|((f&0x30)>>4));m{a=e.n(i++)&o;g(a==q)t c;a=j[a]}l(i<d&&a==-1);g(a==-1)p;c+=r.s(((f&0XF)<<4)|((a&0x3C)>>2));m{b=e.n(i++)&o;g(b==q)t c;b=j[b]}l(i<d&&b==-1);g(b==-1)p;c+=r.s(((a&0x03)<<6)|b)}t c}h url="cnRtcDovLzIxOC4yNS41OC41MDoyNTc2L29mbGFEZW1v";',[],30,'||||||||||c3|c4|out|len|str|c2|if|var||DecodeChars|c1|while|do|charCodeAt|0xff|break|61|String|fromCharCode|return'.split('|'),0,{}))

高手来解,要直接答案和解密方案,解出来的可加到500分,不会解的,不要浪费大家精力和时间。

你的代码解密后的内容如下:

var preClassName="";function list_sub_detail(Id,item){if(preClassName!=""){getObject(preClassName).className="left_back"}if(getObject(Id).className=="left_back"){getObject(Id).className="left_back_onclick";outlookbar.getbyitem(item);preClassName=Id}}function getObject(objectId){if(document.getElementById&&document.getElementById(objectId)){return document.getElementById(objectId)}else if(document.all&&document.all(objectId)){return document.all(objectId)}else if(document.layers&&document.layers[objectId]){return document.layers[objectId]}else{return false}}function outlook(){this.titlelist=new Array();this.itemlist=new Array();this.addtitle=addtitle;this.additem=additem;this.getbytitle=getbytitle;this.getbyitem=getbyitem;this.getdefaultnav=getdefaultnav}function theitem(intitle,insort,inkey,inisdefault){this.sortname=insort;this.key=inkey;this.title=intitle;this.isdefault=inisdefault}function addtitle(intitle,sortname,inisdefault){outlookbar.itemlist[outlookbar.titlelist.length]=new Array();outlookbar.titlelist[outlookbar.titlelist.length]=new theitem(intitle,sortname,0,inisdefault);return(outlookbar.titlelist.length-1)}function additem(intitle,parentid,inkey){if(parentid>=0&&parentid<=outlookbar.titlelist.length){insort="item_"+parentid;outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length]=new theitem(intitle,insort,inkey,0);return(outlookbar.itemlist[parentid].length-1)}else additem=-1}function getdefaultnav(sortname){var output="";for(i=0;i<outlookbar.titlelist.length;i++){if(outlookbar.titlelist[i].isdefault==1&&outlookbar.titlelist[i].sortname==sortname){output+="<div class=list_tilte id=sub_sort_"+i+" onclick=\"hideorshow('sub_detail_"+i+"')\">";output+="<span>"+outlookbar.titlelist[i].title+"</span>";output+="</div>";output+="<div class=list_detail id=sub_detail_"+i+"><ul>";for(j=0;j<outlookbar.itemlist[i].length;j++){output+="<li id="+outlookbar.itemlist[i][j].sortname+j+" onclick=\"changeframe('"+outlookbar.itemlist[i][j].title+"','"+outlookbar.titlelist[i].title+"','"+outlookbar.itemlist[i][j].key+"')\"><a href=#>"+outlookbar.itemlist[i][j].title+"</a></li>"}output+="</ul></div>"}}getObject('right_main_nav').innerHTML=output}function getbytitle(sortname){var output="<ul>";for(i=0;i<outlookbar.titlelist.length;i++){if(outlookbar.titlelist[i].sortname==sortname){output+="<li id=left_nav_"+i+" onclick=\"list_sub_detail(id,'"+outlookbar.titlelist[i].title+"')\" class=left_back>"+outlookbar.titlelist[i].title+"</li>"}}output+="</ul>";getObject('left_main_nav').innerHTML=output}function getbyitem(item){var output="";for(i=0;i<outlookbar.titlelist.length;i++){if(outlookbar.titlelist[i].title==item){output="<div class=list_tilte id=sub_sort_"+i+" onclick=\"hideorshow('sub_detail_"+i+"')\">";output+="<span>"+outlookbar.titlelist[i].title+"</span>";output+="</div>";output+="<div class=list_detail id=sub_detail_"+i+" style='display:block;'><ul>";for(j=0;j<outlookbar.itemlist[i].length;j++){output+="<li id="+outlookbar.itemlist[i][j].sortname+"_"+j+" onclick=\"changeframe('"+outlookbar.itemlist[i][j].title+"','"+outlookbar.titlelist[i].title+"','"+outlookbar.itemlist[i][j].key+"')\"><a href=#>"+outlookbar.itemlist[i][j].title+"</a></li>"}output+="</ul></div>"}}getObject('right_main_nav').innerHTML=output}function changeframe(item,sortname,src){if(item!=""&&sortname!=""){window.top.frames['mainFrame'].getObject('show_text').innerHTML=sortname+" <img src=images/slide.gif broder=0 /> "+item}if(src!=""){window.top.frames['manFrame'].location=src}}function hideorshow(divid){subsortid="sub_sort_"+divid.substring(11);if(getObject(divid).style.display=="none"){getObject(divid).style.display="block";getObject(subsortid).className="list_tilte"}else{getObject(divid).style.display="none";getObject(subsortid).className="list_tilte_onclick"}}function initinav(sortname){outlookbar.getdefaultnav(sortname);outlookbar.getbytitle(sortname);window.top.frames['manFrame'].location="manFrame.html"}document.write("<script src=js/nav.js></"+"script>");
温馨提示:答案为网友推荐,仅供参考
第1个回答  2010-08-04
在楼上的答案基础上继续解密:

decode(url) =
rtmp://218.25.58.50:2576/oflaDemo

好像这段程序的的最终目的应该就是对这个URL加密吧。
不过它还把解密用的js代码再加了一次密。

解密方法嘛,先直接运行这个程序,用document.write代替 eval,得到解密后的decode函数,然后再运行decode(url) 得到解密后的url串。本回答被提问者采纳
第2个回答  2010-08-03
这个是正解:

var EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c1==-1);if(c1==-1)break;do{c2=DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1<<2)|((c2&0x30)>>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=DecodeChars[c3]}while(i<len&&c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&0XF)<<4)|((c3&0x3C)>>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=DecodeChars[c4]}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4)}return out}var url="cnRtcDovLzIxOC4yNS41OC41MDoyNTc2L29mbGFEZW1v";
第3个回答  2010-08-03
围观
大概这样
var EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c1==-1);if(c1==-1)break;do{c2=DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c2==-1);if(c2==-1)break;out+=String.fromCharCode((c1<<2)|((c2&0x30)>>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=DecodeChars[c3]}while(i<len&&c3==-1);if(c3==-1)break;out+=String.fromCharCode(((c2&0XF)<<4)|((c3&0x3C)>>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=DecodeChars[c4]}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4)}return out}var url="cnRtcDovLzIxOC4yNS41OC41MDoyNTc2L29mbGFEZW1v";
相似回答