1.新建一个网页xxx.html
2.加入一个div容器 id="divTest"
3.最关键的一步--赋值执行:(在上面混淆的代码中,将eval()中的内容提取出来赋值(或直接打印)给document.getElementById(‘divTest’).innerText )
原混淆后代码:
- eval(function(p,a,c,k,e,r){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–)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}(‘(5($){$.h={17:5(){3 a=$(\’.l-8-9\’).D(\’.m\’).E(\’7-6\’);3 b=$(\’.n[7-6="\’+a+\’"]\’);3 c=b.E(\’X\’);$.O(k);b.E(\’X\’,c).18(5(){$.O(o)})},19:5(){3 a=$(2).7(\’6\’);g(!$(2).Y(\’m\’)){$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).F().z(\’.n\’).G();p o}});$(2).H(\’m\’).z(\’.4\’).P(\’m\’);$.h.I(2)}},1a:5(){$(\’.l-8-9\’).A("[7-6]").D(\’.Z-10-1\’).q(\’a\’).Q(".m").r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).u();$(2).u()});$(\’.l-8-9\’).J("K-L","0")},1b:5(){3 a=$(2).q(\’.4\’).7(\’6\’);3 b=$(2).q(\’.4\’).R();g($(2).q(\’.4\’).Y(\’m\’)){g($(2).q(\’.4\’).x(\’.4\’).1c()){3 c=$(2).q(\’.4\’).x(\’.4:1d(0)\’).7(\’6\’);$(2).q(\’.4\’).x(\’.4:1d(0)\’).H(\’m\’);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==c){$(2).F().z(\’.n\’).G();p o}});3 d=11($(\’.l-8-9\’).J(\’K-L\’));g(d<0){$(\’.l-8-9\’).S({T:(d+b)+\’U\’},"V")}$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}})}g($(2).q(\’.4\’).y(\’.4\’).1c()){3 c=$(2).q(\’.4\’).y(\’.4:1e\’).7(\’6\’);$(2).q(\’.4\’).y(\’.4:1e\’).H(\’m\’);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==c){$(2).F().z(\’.n\’).G();p o}});$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}})}}M{$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}});$.h.I($(\’.4.m\’))}p o},12:5(){$("#1p-1q>1r>1s.1f").P("1f");3 a=$(2).E(\’7-6\’);g(a!=""){1t.$.1u(\’1v\’,a,{1w:"/"})}3 b=$(2).E(\’1g\’);3 c=$.1h($(2).1x());3 d=k;g(b==1y||$.1h(b).13==0){p o}$(\’.4\’).r(5(){g($(2).7(\’6\’)==b){g(!$(2).Y(\’m\’)){$(2).H(\’m\’).z(\’.4\’).P(\’m\’);$.h.I(2);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==b){$(2).F().z(\’.n\’).G();p o}})}d=o;p o}});g(d){3 e=\'<a 1g="1z:;" 14="m 4" 7-6="\’+b+\’">\’+c+\’ <i 14="1A Z-10-1"></i></a>\’;$(\’.4\’).P(\’m\’);3 f=\'<B 14="n" 6="B\’+a+\’" 1B="B\’+a+\’" 1C="R:1i%;1D:1i%;" X="\’+b+\’" 1E="0" 7-6="\’+b+\’" 1F></B>\’;$(\’.t\’).D(\’B.n\’).G();$(\’.t\’).1j(f);$.O(k);$(\’.t B:1G\’).18(5(){$.O(o)});$(\’.C .l-8-9\’).1j(e);$.h.I($(\’.4.m\’))}p o},1k:5(){3 a=1l.1m(11($(\’.l-8-9\’).J(\’K-L\’)));3 b=$.h.w($(".9-8").A().Q(".C"));3 c=$(".9-8").j(k)-b;3 d=0;g($(".l-8-9").R()<c){p o}M{3 e=$(".4:15");3 f=0;N((f+$(e).j(k))<=a){f+=$(e).j(k);e=$(e).x()}f=0;N((f+$(e).j(k))<(c)&&e.13>0){f+=$(e).j(k);e=$(e).x()}d=$.h.w($(e).W());g(d>0){$(\’.l-8-9\’).S({T:0-d+\’U\’},"V")}}},1n:5(){3 a=1l.1m(11($(\’.l-8-9\’).J(\’K-L\’)));3 b=$.h.w($(".9-8").A().Q(".C"));3 c=$(".9-8").j(k)-b;3 d=0;g($(".l-8-9").R()<c){p o}M{3 e=$(".4:15");3 f=0;N((f+$(e).j(k))<=a){f+=$(e).j(k);e=$(e).x()}f=0;g($.h.w($(e).W())>c){N((f+$(e).j(k))<(c)&&e.13>0){f+=$(e).j(k);e=$(e).y()}d=$.h.w($(e).W())}}$(\’.l-8-9\’).S({T:0-d+\’U\’},"V")},I:5(a){3 b=$.h.w($(a).W()),16=$.h.w($(a).1H());3 c=$.h.w($(".9-8").A().Q(".C"));3 d=$(".9-8").j(k)-c;3 e=0;g($(".l-8-9").j()<d){e=0}M g(16<=(d-$(a).j(k)-$(a).x().j(k))){g((d-$(a).x().j(k))>16){e=b;3 f=a;N((e-$(f).j())>($(".l-8-9").j()-d)){e-=$(f).y().j();f=$(f).y()}}}M g(b>(d-$(a).j(k)-$(a).y().j(k))){e=b-$(a).y().j(k)}$(\’.l-8-9\’).S({T:0-e+\’U\’},"V")},w:5(a){3 b=0;$(a).r(5(){b+=$(2).j(k)});p b},1o:5(){$(\’.1I\’).v(\’s\’,$.h.12);$(\’.1J\’).v(\’s\’,$.h.12);$(\’.C\’).v(\’s\’,\’.4 i\’,$.h.1b);$(\’.C\’).v(\’s\’,\’.4\’,$.h.19);$(\’.1K\’).v(\’s\’,$.h.1n);$(\’.1L\’).v(\’s\’,$.h.1k);$(\’.1M\’).v(\’s\’,$.h.17);$(\’.1N\’).v(\’s\’,5(){$(\’.l-8-9\’).D(\’.m i\’).1O("s")});$(\’.1P\’).v(\’s\’,5(){$(\’.l-8-9\’).A("[7-6]").D(\’.Z-10-1\’).r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).u();$(2).q(\’a\’).u()});$(\’.l-8-9\’).A("[7-6]:15").r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).F();$(2).H("m")});$(\’.l-8-9\’).J("K-L","0")});$(\’.1Q\’).v(\’s\’,$.h.1a)}};$(5(){$.h.1o()})})(1R);’,62,116,’||this|var|menuTab|function|id|data|tabs|content|||||||if|indextab||outerWidth|true|page|active|main_iframe|false|return|parents|each|click|mainContent|remove|on|calSumWidth|next|prev|siblings|children|iframe|menuTabs|find|attr|show|hide|addClass|scrollToTab|css|margin|left|else|while|loading|removeClass|not|width|animate|marginLeft|px|fast|prevAll|src|hasClass|ftsucai|close|parseInt|addTab|length|class|first|marginRightVal|refreshTab|load|activeTab|closeOtherTabs|closeTab|size|eq|last|open|href|trim|100|append|scrollTabRight|Math|abs|scrollTabLeft|init|header|nav|ul|li|top|cookie|nfine_currentmoduleid|path|text|undefined|javascript|ft|name|style|height|frameborder|seamless|visible|nextAll|menuItem|submenuitem|tabLeft|tabRight|tabReload|tabCloseCurrent|trigger|tabCloseAll|tabCloseOther|jQuery’.split(‘|’),0,{}))
复制代码返混淆代码:
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body>
- <div id="divTest"></div>
- </body>
- <script language="javascript">
- document.getElementById(‘divTest’).innerText=function(p,a,c,k,e,r){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–)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}(‘(5($){$.h={17:5(){3 a=$(\’.l-8-9\’).D(\’.m\’).E(\’7-6\’);3 b=$(\’.n[7-6="\’+a+\’"]\’);3 c=b.E(\’X\’);$.O(k);b.E(\’X\’,c).18(5(){$.O(o)})},19:5(){3 a=$(2).7(\’6\’);g(!$(2).Y(\’m\’)){$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).F().z(\’.n\’).G();p o}});$(2).H(\’m\’).z(\’.4\’).P(\’m\’);$.h.I(2)}},1a:5(){$(\’.l-8-9\’).A("[7-6]").D(\’.Z-10-1\’).q(\’a\’).Q(".m").r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).u();$(2).u()});$(\’.l-8-9\’).J("K-L","0")},1b:5(){3 a=$(2).q(\’.4\’).7(\’6\’);3 b=$(2).q(\’.4\’).R();g($(2).q(\’.4\’).Y(\’m\’)){g($(2).q(\’.4\’).x(\’.4\’).1c()){3 c=$(2).q(\’.4\’).x(\’.4:1d(0)\’).7(\’6\’);$(2).q(\’.4\’).x(\’.4:1d(0)\’).H(\’m\’);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==c){$(2).F().z(\’.n\’).G();p o}});3 d=11($(\’.l-8-9\’).J(\’K-L\’));g(d<0){$(\’.l-8-9\’).S({T:(d+b)+\’U\’},"V")}$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}})}g($(2).q(\’.4\’).y(\’.4\’).1c()){3 c=$(2).q(\’.4\’).y(\’.4:1e\’).7(\’6\’);$(2).q(\’.4\’).y(\’.4:1e\’).H(\’m\’);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==c){$(2).F().z(\’.n\’).G();p o}});$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}})}}M{$(2).q(\’.4\’).u();$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==a){$(2).u();p o}});$.h.I($(\’.4.m\’))}p o},12:5(){$("#1p-1q>1r>1s.1f").P("1f");3 a=$(2).E(\’7-6\’);g(a!=""){1t.$.1u(\’1v\’,a,{1w:"/"})}3 b=$(2).E(\’1g\’);3 c=$.1h($(2).1x());3 d=k;g(b==1y||$.1h(b).13==0){p o}$(\’.4\’).r(5(){g($(2).7(\’6\’)==b){g(!$(2).Y(\’m\’)){$(2).H(\’m\’).z(\’.4\’).P(\’m\’);$.h.I(2);$(\’.t .n\’).r(5(){g($(2).7(\’6\’)==b){$(2).F().z(\’.n\’).G();p o}})}d=o;p o}});g(d){3 e=\'<a 1g="1z:;" 14="m 4" 7-6="\’+b+\’">\’+c+\’ <i 14="1A Z-10-1"></i></a>\’;$(\’.4\’).P(\’m\’);3 f=\'<B 14="n" 6="B\’+a+\’" 1B="B\’+a+\’" 1C="R:1i%;1D:1i%;" X="\’+b+\’" 1E="0" 7-6="\’+b+\’" 1F></B>\’;$(\’.t\’).D(\’B.n\’).G();$(\’.t\’).1j(f);$.O(k);$(\’.t B:1G\’).18(5(){$.O(o)});$(\’.C .l-8-9\’).1j(e);$.h.I($(\’.4.m\’))}p o},1k:5(){3 a=1l.1m(11($(\’.l-8-9\’).J(\’K-L\’)));3 b=$.h.w($(".9-8").A().Q(".C"));3 c=$(".9-8").j(k)-b;3 d=0;g($(".l-8-9").R()<c){p o}M{3 e=$(".4:15");3 f=0;N((f+$(e).j(k))<=a){f+=$(e).j(k);e=$(e).x()}f=0;N((f+$(e).j(k))<(c)&&e.13>0){f+=$(e).j(k);e=$(e).x()}d=$.h.w($(e).W());g(d>0){$(\’.l-8-9\’).S({T:0-d+\’U\’},"V")}}},1n:5(){3 a=1l.1m(11($(\’.l-8-9\’).J(\’K-L\’)));3 b=$.h.w($(".9-8").A().Q(".C"));3 c=$(".9-8").j(k)-b;3 d=0;g($(".l-8-9").R()<c){p o}M{3 e=$(".4:15");3 f=0;N((f+$(e).j(k))<=a){f+=$(e).j(k);e=$(e).x()}f=0;g($.h.w($(e).W())>c){N((f+$(e).j(k))<(c)&&e.13>0){f+=$(e).j(k);e=$(e).y()}d=$.h.w($(e).W())}}$(\’.l-8-9\’).S({T:0-d+\’U\’},"V")},I:5(a){3 b=$.h.w($(a).W()),16=$.h.w($(a).1H());3 c=$.h.w($(".9-8").A().Q(".C"));3 d=$(".9-8").j(k)-c;3 e=0;g($(".l-8-9").j()<d){e=0}M g(16<=(d-$(a).j(k)-$(a).x().j(k))){g((d-$(a).x().j(k))>16){e=b;3 f=a;N((e-$(f).j())>($(".l-8-9").j()-d)){e-=$(f).y().j();f=$(f).y()}}}M g(b>(d-$(a).j(k)-$(a).y().j(k))){e=b-$(a).y().j(k)}$(\’.l-8-9\’).S({T:0-e+\’U\’},"V")},w:5(a){3 b=0;$(a).r(5(){b+=$(2).j(k)});p b},1o:5(){$(\’.1I\’).v(\’s\’,$.h.12);$(\’.1J\’).v(\’s\’,$.h.12);$(\’.C\’).v(\’s\’,\’.4 i\’,$.h.1b);$(\’.C\’).v(\’s\’,\’.4\’,$.h.19);$(\’.1K\’).v(\’s\’,$.h.1n);$(\’.1L\’).v(\’s\’,$.h.1k);$(\’.1M\’).v(\’s\’,$.h.17);$(\’.1N\’).v(\’s\’,5(){$(\’.l-8-9\’).D(\’.m i\’).1O("s")});$(\’.1P\’).v(\’s\’,5(){$(\’.l-8-9\’).A("[7-6]").D(\’.Z-10-1\’).r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).u();$(2).q(\’a\’).u()});$(\’.l-8-9\’).A("[7-6]:15").r(5(){$(\’.n[7-6="\’+$(2).7(\’6\’)+\’"]\’).F();$(2).H("m")});$(\’.l-8-9\’).J("K-L","0")});$(\’.1Q\’).v(\’s\’,$.h.1a)}};$(5(){$.h.1o()})})(1R);’,62,116,’||this|var|menuTab|function|id|data|tabs|content|||||||if|indextab||outerWidth|true|page|active|main_iframe|false|return|parents|each|click|mainContent|remove|on|calSumWidth|next|prev|siblings|children|iframe|menuTabs|find|attr|show|hide|addClass|scrollToTab|css|margin|left|else|while|loading|removeClass|not|width|animate|marginLeft|px|fast|prevAll|src|hasClass|ftsucai|close|parseInt|addTab|length|class|first|marginRightVal|refreshTab|load|activeTab|closeOtherTabs|closeTab|size|eq|last|open|href|trim|100|append|scrollTabRight|Math|abs|scrollTabLeft|init|header|nav|ul|li|top|cookie|nfine_currentmoduleid|path|text|undefined|javascript|ft|name|style|height|frameborder|seamless|visible|nextAll|menuItem|submenuitem|tabLeft|tabRight|tabReload|tabCloseCurrent|trigger|tabCloseAll|tabCloseOther|jQuery’.split(‘|’),0,{})
- </script>
- </html>
复制代码