求大神看下JS混淆怎么破?


求大神看下JS混淆怎么破?
想的腦袋大了!
var _0xc250=["\x63\x6C\x69\x63\x6B","\x23\x62\x74\x6E\x5F\x76\x69\x65\x77","\x2E\x63\x6F\x6C\x6F\x72\x62\x61\x72","\x76\x61\x6C","\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x6B\x65\x79\x77\x6F\x72\x64\x73\x22\x5D","\x73\x65\x6C\x65\x63\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x73\x6F\x72\x74\x22\x5D","\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x73\x69\x7A\x65\x22\x5D","\x67\x65\x74\x47\x6F\x6F\x64\x73\x4C\x69\x73\x74","\x23\x73\x65\x61\x72\x63\x68\x42\x74\x6E","\x79\x79\x79\x79\x2D\x4D\x4D\x2D\x64\x64\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x25\x79\x2D\x25\x4D\x2D\x25\x64\x20\x25\x48\x3A\x25\x6D\x3A\x25\x73","\x6C\x69\x76\x65","\x2E\x64\x61\x74\x65\x74\x69\x6D\x65","\x73\x6C\x69\x64\x65\x54\x6F\x67\x67\x6C\x65","\x2E\x73\x74\x65\x70\x32","\x2E\x73\x68\x6F\x77\x68\x69\x64\x67\x6F\x6F\x64\x73\x6C\x69\x73\x74\x42\x74\x6E","\x73\x75\x63\x63\x65\x73\x73","\x61\x74\x74\x72","\x23\x63\x6F\x70\x79\x63\x6F\x64\x65","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u8BF7\u9009\u70B9\u51FB\u9884\u89C8\u6309\u94AE\u518D\u751F\u6210\u4EE3\u7801\x3C\x2F\x73\x70\x61\x6E\x3E","\x74\x69\x70\x73","\x64\x69\x61\x6C\x6F\x67","\x2F\x6D\x6F\x62\x61\x6E\x2F\x6F\x6E\x6C\x69\x6E\x65\x5F\x73\x68\x6F\x77\x63\x6F\x64\x65\x2E\x70\x68\x70","\u5982\u679C\x20\x5B\x20\u590D\u5236\u4EE3\u7801\x20\x5D\x20\u6309\u94AE\u4E0D\u80FD\u7528\x2C\u8BF7\u624B\u52A8\u9009\u4E2D\u4EE3\u7801\u590D\u5236\x21","\x6F\x70\x65\x6E","\x23\x63\x6F\x70\x79","\x63\x68\x61\x6E\x67\x65","\x2F\x6D\x65\x6D\x62\x65\x72\x2F\x63\x68\x72\x6F\x6D\x65\x5F\x67\x6F\x6F\x64\x73\x5F\x73\x79\x6E\x63\x2E\x70\x68\x70\x3F\x61\x63\x74\x69\x6F\x6E\x3D\x6C\x6F\x67\x6F\x75\x74","\x67\x65\x74","\x6A\x73\x6F\x6E","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E","\x6D\x73\x67","\x3C\x2F\x73\x70\x61\x6E\x3E","\x68\x72\x65\x66","\u7F51\u7EDC\u7E41\u5FD9\x2C\u8BF7\u7A0D\u540E\x2E\x2E\x2E\x3C\x2F\x73\x70\x61\x6E\x3E","\x61\x6A\x61\x78","\x2E\x6C\x6F\x67\x6F\x75\x74\x5F\x67\x6F\x6F\x64\x73","\x68\x74\x6D\x6C","\x23\x64\x69\x61\x6C\x6F\x67\x5F\x61\x64","","\x3C\x62\x72\x2F\x3E","\x2F\x6A\x73\x6F\x6E\x2F\x61\x6A\x61\x78\x5F\x66\x72\x6F\x6D\x5F\x63\x68\x72\x6F\x6D\x65\x2E\x70\x68\x70","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u6B63\u5728\u83B7\u53D6\u5B9D\u8D1D\u4FE1\u606F\x2E\x2E\x2E\x3C\x2F\x73\x70\x61\x6E\x3E","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u5B9D\u8D1D\u52A0\u8F7D\u6210\u529F\x3C\x2F\x73\x70\x61\x6E\x3E","\x67\x6F\x6F\x64\x73\x6C\x69\x73\x74","\x6C\x65\x6E\x67\x74\x68","\x23\x65\x64\x69\x74\x74\x61\x62\x6C\x65\x20\x74\x72\x5B\x69\x64\x3D\x22","\x67\x6F\x6F\x64\x73\x5F\x69\x64","\x22\x5D","\x73\x74\x79\x6C\x65\x3D\x22\x62\x6F\x72\x64\x65\x72\x2D\x63\x6F\x6C\x6F\x72\x3A\x72\x65\x64\x22\x20\x73\x65\x6C\x65\x63\x74\x65\x64\x3D\x22\x74\x72\x75\x65\x22","\x3C\x6C\x69\x20\x64\x61\x74\x61\x2D\x69\x74\x65\x6D\x69\x64\x3D\x22","\x22\x20\x64\x61\x74\x61\x2D\x73\x6F\x6C\x64\x3D\x22","\x6E\x75\x6D","\x22\x20","\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x69\x6D\x67\x22\x3E\x3C\x69\x6D\x67\x20\x73\x72\x63\x3D\x22","\x70\x69\x63\x5F\x75\x72\x6C","\x22\x3E\x3C\x2F\x64\x69\x76\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x74\x6C\x65\x22\x3E","\x74\x69\x74\x6C\x65","\x3C\x2F\x64\x69\x76\x3E\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x70\x72\x69\x63\x65\x22\x3E\xA5\x3C\x73\x70\x61\x6E\x3E","\x70\x72\x69\x63\x65","\x3C\x2F\x73\x70\x61\x6E\x3E\x3C\x2F\x64\x69\x76\x3E\x3C\x2F\x6C\x69\x3E","\x65\x61\x63\x68","\x2E\x67\x6F\x6F\x64\x73\x6C\x69\x73\x74","\x70\x61\x67\x65\x73","\x23\x70\x61\x67\x65\x5F\x74\x75\x72\x6E","\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x73\x68\x6F\x70\x75\x72\x6C\x22\x5D","\x72\x65\x6D\x6F\x76\x65","\x6C\x69\x6D\x69\x74","\x23\x65\x64\x69\x74\x74\x61\x62\x6C\x65\x20\x74\x72","\x73\x65\x6C\x65\x63\x74\x65\x64","\x72\x65\x6D\x6F\x76\x65\x41\x74\x74\x72","\x6C\x69\x5B\x64\x61\x74\x61\x2D\x69\x74\x65\x6D\x69\x64\x3D\x22","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x62\x6F\x72\x64\x65\x72\x2D\x63\x6F\x6C\x6F\x72","\x23\x30\x30\x30","\x63\x73\x73","\u8FD8\u9700\u8981\u9009\u62E9","\u4E2A\u5B9D\u8D1D\x3C\x2F\x73\x70\x61\x6E\x3E","\x73\x6C\x69\x64\x65\x44\x6F\x77\x6E","\x63\x6F\x6C\x6F\x72","\x2F\x6A\x73\x6F\x6E\x2F\x61\x6A\x61\x78\x5F\x6F\x6E\x6C\x69\x6E\x65\x2E\x70\x68\x70\x3F\x61\x63\x74\x69\x6F\x6E\x3D\x63\x72\x65\x61\x74\x65\x43\x6F\x64\x65\x26\x64\x69\x79\x63\x6F\x6C\x6F\x72\x3D","\x70\x6F\x73\x74","\x73\x65\x72\x69\x61\x6C\x69\x7A\x65","\x23\x66\x6F\x72\x6D\x31","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u6B63\u5728\u751F\u6210\x2E\x2E\x2E\x3C\x2F\x73\x70\x61\x6E\x3E","\x73\x75\x62\x73\x74\x72","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u5DF2\u7ECF\u4E0B\u67B6\x3C\x2F\x73\x70\x61\x6E\x3E","\x31","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u5E97\u94FA\u5730\u5740\u4E0D\u6B63\u786E\x2C\u652F\u6301\u6DD8\u5B9D\u548C\u5929\u732B\x3C\x2F\x73\x70\x61\x6E\x3E","\x32","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\x5B\x20","\x20\x5D\u662F\u5FC5\u586B\u9879\x3C\x2F\x73\x70\x61\x6E\x3E","\x33","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u60A8\u8FD8\u9700\u8981\u9009\u62E9","\x34","\x35","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x69\x70\x73\x63\x6F\x6C\x6F\x72\x22\x20\x3E\u751F\u6210\u6210\u529F\x3C\x2F\x73\x70\x61\x6E\x3E","\x61\x75\x74\x6F\x52\x65\x6E\x64\x65\x72","\x43\x6F\x75\x6E\x74\x64\x6F\x77\x6E","\x72\x65\x61\x64\x79","\x68\x6F\x73\x74","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x64\x69\x79\x2E\x67\x61\x6E\x67\x67\x67\x2E\x63\x6F\x6D","\x3C\x68\x31\x20\x73\x74\x79\x6C\x65\x3D\x22\x74\x65\x78\x74\x2D\x61\x6C\x69\x67\x6E\x3A\x63\x65\x6E\x74\x65\x72\x3B\x70\x61\x64\x64\x69\x6E\x67\x2D\x74\x6F\x70\x3A\x33\x30\x30\x70\x78\x3B\x22\x3E\x64\x6F\x6D\x61\x69\x6E\x20\x6E\x6F\x74\x20\x61\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E\x21\x20\x51\x51\x3A\x32\x37\x36\x33\x36\x38\x33\x31\x31\x3C\x2F\x68\x31\x3E","\x62\x6F\x64\x79","\x5B\x73\x53\x5D\x2A","\x3D\x28\x5B\x5E\x3B\x5D\x2A\x29","\x6D\x61\x74\x63\x68","\x63\x6F\x6F\x6B\x69\x65"];

6 个解决方案

#1


$(function (){$(_0xc250[1])[_0xc250[0]](function (){creatCode($(this),2);} );$(_0xc250[2])[_0xc250[0]](function (){creatCode($(this),1);} );$(_0xc250[8])[_0xc250[0]](function (){var _0xec4ax1=$(_0xc250[4])[_0xc250[3]]();var _0xec4ax2=$(_0xc250[5])[_0xc250[3]]();var _0xec4ax3=$(_0xc250[6])[_0xc250[3]]();getgoodslist({action:_0xc250[7],keywords:_0xec4ax1,sort:_0xec4ax2,page:1,size:_0xec4ax3});} );$(_0xc250[12])[_0xc250[11]](_0xc250[0],function (){WdatePicker({dateFmt:_0xc250[9],autoPickDate:true,doubleCalendar:true,minDate:_0xc250[10]});} );$(_0xc250[15])[_0xc250[0]](function (){$(_0xc250[14])[_0xc250[13]]();} );$(_0xc250[25])[_0xc250[0]](function (){var _0xec4ax4=$(_0xc250[18])[_0xc250[17]](_0xc250[16]);if(_0xec4ax4!=1){art[_0xc250[21]][_0xc250[20]](_0xc250[19],3);return false;} ;$[_0xc250[21]][_0xc250[24]](_0xc250[22],{"\x77\x69\x64\x74\x68":800,"\x68\x65\x69\x67\x68\x74":400,"\x66\x69\x78\x65\x64":true,"\x74\x69\x74\x6C\x65":_0xc250[23]});} );$(_0xc250[5])[_0xc250[26]](function (_0xec4ax5){var _0xec4ax3=$(_0xc250[6])[_0xc250[3]]();var _0xec4ax1=$(_0xc250[4])[_0xc250[3]]();var _0xec4ax2=$(_0xc250[5])[_0xc250[3]]();getgoodslist({action:_0xc250[7],keywords:_0xec4ax1,sort:_0xec4ax2,page:1,size:_0xec4ax3});} );$(_0xc250[36])[_0xc250[0]](function (){$[_0xc250[35]]({url:_0xc250[27],type:_0xc250[28],dataType:_0xc250[29],success:function (_0xec4ax6){$[_0xc250[21]][_0xc250[20]](_0xc250[30]+_0xec4ax6[_0xc250[31]]+_0xc250[32],1);location[_0xc250[33]]=location[_0xc250[33]];} ,error:function (){$[_0xc250[21]][_0xc250[20]](_0xc250[30]+_0xc250[34],5);} });} );} );function getgoodslist(_0xec4ax8){_0xec4ax8=_0xec4ax8||{};var _0xec4ax9=$(_0xc250[38])[_0xc250[37]]();if(!_0xec4ax9){_0xec4ax9=_0xc250[39];} else {_0xec4ax9+=_0xc250[40];} ;$[_0xc250[35]]({url:_0xc250[41],type:_0xc250[28],dataType:_0xc250[29],data:_0xec4ax8,beforeSend:function (){$[_0xc250[21]][_0xc250[20]](_0xec4ax9+_0xc250[42],100);} ,success:function (_0xec4ax6){if(_0xec4ax6[_0xc250[31]]){$[_0xc250[21]][_0xc250[20]](_0xec4ax9+_0xc250[30]+_0xec4ax6[_0xc250[31]]+_0xc250[32],5);} else {$[_0xc250[21]][_0xc250[20]](_0xec4ax9+_0xc250[43],0);} ;var _0xec4axa=_0xc250[39];$[_0xc250[61]](_0xec4ax6[_0xc250[44]],function (_0xec4axb,_0xec4axc){var _0xec4axd=_0xc250[39];if($(_0xc250[46]+_0xec4axc[_0xc250[47]]+_0xc250[48])[_0xc250[45]]>0){_0xec4axd=_0xc250[49];} ;_0xec4axa+=_0xc250[50]+_0xec4axc[_0xc250[47]]+_0xc250[51]+_0xec4axc[_0xc250[52]]+_0xc250[53]+_0xec4axd+_0xc250[54]+_0xec4axc[_0xc250[55]]+_0xc250[56]+_0xec4axc[_0xc250[57]]+_0xc250[58]+_0xec4axc[_0xc250[59]]+_0xc250[60];} );$(_0xc250[62])[_0xc250[37]](_0xec4axa);$(_0xc250[64])[_0xc250[37]](_0xec4ax6[_0xc250[63]]);} ,error:function (){$[_0xc250[21]][_0xc250[20]](_0xec4ax9+_0xc250[30]+_0xc250[34],5);} });} ;function ajax_page(_0xec4axf){var _0xec4ax1=$(_0xc250[4])[_0xc250[3]]();var _0xec4ax2=$(_0xc250[5])[_0xc250[3]]();var _0xec4ax10=$(_0xc250[65])[_0xc250[3]]();var _0xec4ax3=$(_0xc250[6])[_0xc250[3]]();getgoodslist({action:_0xc250[7],keywords:_0xec4ax1,sort:_0xec4ax2,page:_0xec4axf,size:_0xec4ax3});} ;function cancelTop(_0xec4ax12){$(_0xc250[46]+_0xec4ax12+_0xc250[48])[_0xc250[66]]();var _0xec4ax13=$(_0xc250[62]);var _0xec4ax14=parseInt(_0xec4ax13[_0xc250[17]](_0xc250[67]));var _0xec4ax15=parseInt($(_0xc250[68])[_0xc250[45]])-1;_0xec4ax13[_0xc250[72]](_0xc250[71]+_0xec4ax12+_0xc250[48])[_0xc250[70]](_0xc250[69]);_0xec4ax13[_0xc250[72]](_0xc250[71]+_0xec4ax12+_0xc250[48])[_0xc250[75]](_0xc250[73],_0xc250[74]);$[_0xc250[21]][_0xc250[20]](_0xc250[30]+_0xc250[76]+(_0xec4ax14-_0xec4ax15)+_0xc250[77],3);$(_0xc250[14])[_0xc250[78]]();} ;function creatCode(_0xec4ax17,_0xec4ax18){if(_0xec4ax18==1){color=encodeURIComponent(_0xec4ax17[_0xc250[17]](_0xc250[79]));} else {color=_0xc250[39];} ;$[_0xc250[35]]({url:_0xc250[80]+color,type:_0xc250[81],dataType:_0xc250[37],data:$(_0xc250[83])[_0xc250[82]](),beforeSend:function (){$[_0xc250[21]][_0xc250[20]](_0xc250[84],1);} ,success:function (_0xec4ax6){var _0xec4ax19=_0xec4ax6[_0xc250[85]](0,1);switch(_0xec4ax19){case _0xc250[87]:$[_0xc250[21]][_0xc250[20]](_0xc250[86],2);return false;break ;;case _0xc250[89]:$[_0xc250[21]][_0xc250[20]](_0xc250[88],2);return false;break ;;case _0xc250[92]:$[_0xc250[21]][_0xc250[20]](_0xc250[90]+_0xec4ax6[_0xc250[85]](1,100)+_0xc250[91],2);return false;break ;;case _0xc250[94]:$[_0xc250[21]][_0xc250[20]](_0xc250[93]+_0xec4ax6[_0xc250[85]](1,100)+_0xc250[77],2);return false;break ;;case _0xc250[95]:$[_0xc250[21]][_0xc250[20]](_0xc250[30]+_0xec4ax6[_0xc250[85]](1,200)+_0xc250[32],2);return false;break ;;} ;$(_0xc250[18])[_0xc250[37]](_0xec4ax6)[_0xc250[17]](_0xc250[16],_0xc250[87]);$[_0xc250[21]][_0xc250[20]](_0xc250[96],1);KISSY[_0xc250[99]](function (_0xec4ax1a){_0xec4ax1a[_0xc250[98]][_0xc250[97]]();} );} ,error:function (){} ,complete:function (){} });} ;var host=window[_0xc250[101]][_0xc250[100]];if(host!=_0xc250[102]){$(_0xc250[104])[_0xc250[37]](_0xc250[103]);} ;function getcookie(_0xec4ax1d){var _0xec4ax1e=document[_0xc250[108]][_0xc250[107]]( new RegExp(_0xc250[105]+_0xec4ax1d+_0xc250[106]));if(_0xec4ax1e!=null){return unescape(_0xec4ax1e[1]);} ;return null;} ;


上面發不下,這是接后面的,加起來是完整代碼。

#2


本帖最后由 net_lover 於 2014-05-15 22:20:45 編輯
前面定義的是數組,內容是
var _0xc250 = ['click', '#btn_view', '.colorbar', 'val', 'input[name="keywords"]', 'select[name="sort"]', 'input[name="size"]', 'getGoodsList', '#searchBtn', 'yyyy-MM-dd HH:mm:ss', '%y-%M-%d %H:%m:%s', 'live', '.datetime', 'slideToggle', '.step2', '.showhidgoodslistBtn', 'success', 'attr', '#copycode', '<span class="tipscolor" >請選點擊預覽按鈕再生成代碼</span>', 'tips', 'dialog', '/moban/online_showcode.php', '如果 [ 復制代碼 ] 按鈕不能用,請手動選中代碼復制!', 'open', '#copy', 'change', '/member/chrome_goods_sync.php?action=logout', 'get', 'json', '<span class="tipscolor" >', 'msg', '</span>', 'href', '網絡繁忙,請稍后...</span>', 'ajax', '.logout_goods', 'html', '#dialog_ad', '', '<br/>', '/json/ajax_from_chrome.php', '<span class="tipscolor" >正在獲取寶貝信息...</span>', '<span class="tipscolor" >寶貝加載成功</span>', 'goodslist', 'length', '#edittable tr[id="', 'goods_id', '"]', 'style="border-color:red" selected="true"', '<li data-itemid="', '" data-sold="', 'num', '" ', '><div class="img"><img src="', 'pic_url', '"></div><div class="title">', 'title', '</div><div class="price">¥<span>', 'price', '</span></div></li>', 'each', '.goodslist', 'pages', '#page_turn', 'input[name="shopurl"]', 'remove', 'limit', '#edittable tr', 'selected', 'removeAttr', 'li[data-itemid="', 'children', 'border-color', '#000', 'css', '還需要選擇', '個寶貝</span>', 'slideDown', 'color', '/json/ajax_online.php?action=createCode&diycolor=', 'post', 'serialize', '#form1', '<span class="tipscolor" >正在生成...</span>', 'substr', '<span class="tipscolor" >已經下架</span>', '1', '<span class="tipscolor" >店鋪地址不正確,支持淘寶和天貓</span>', '2', '<span class="tipscolor" >[ ', ' ]是必填項</span>', '3', '<span class="tipscolor" >您還需要選擇', '4', '5', '<span class="tipscolor" >生成成功</span>', 'autoRender', 'Countdown', 'ready', 'host', 'location', 'diy.ganggg.com', '<h1 style="text-align:center;padding-top:300px;">domain not authorization! QQ:276368311</h1>', 'body', '[sS]*', '=([^;]*)', 'match', 'cookie']


 _0xc250是個變量名,你替換一下應該好理解了。比如 _0xc250換成lianxi

#3


后面的代碼規范下 就比較好看了
$(function() {
    $(_0xc250[1])[_0xc250[0]](function() {
        creatCode($(this), 2);
    });
    $(_0xc250[2])[_0xc250[0]](function() {
        creatCode($(this), 1);
    });
    $(_0xc250[8])[_0xc250[0]](function() {
        var _0xec4ax1 = $(_0xc250[4])[_0xc250[3]]();
        var _0xec4ax2 = $(_0xc250[5])[_0xc250[3]]();
        var _0xec4ax3 = $(_0xc250[6])[_0xc250[3]]();
        getgoodslist({
            action: _0xc250[7],
            keywords: _0xec4ax1,
            sort: _0xec4ax2,
            page: 1,
            size: _0xec4ax3
        });
    });
    $(_0xc250[12])[_0xc250[11]](_0xc250[0], function() {
        WdatePicker({
            dateFmt: _0xc250[9],
            autoPickDate: true,
            doubleCalendar: true,
            minDate: _0xc250[10]
        });
    });
    $(_0xc250[15])[_0xc250[0]](function() {
        $(_0xc250[14])[_0xc250[13]]();
    });
    $(_0xc250[25])[_0xc250[0]](function() {
        var _0xec4ax4 = $(_0xc250[18])[_0xc250[17]](_0xc250[16]);
        if (_0xec4ax4 != 1) {
            art[_0xc250[21]][_0xc250[20]](_0xc250[19], 3);
            return false;
        };
        $[_0xc250[21]][_0xc250[24]](_0xc250[22], {
            "\x77\x69\x64\x74\x68": 800,
            "\x68\x65\x69\x67\x68\x74": 400,
            "\x66\x69\x78\x65\x64": true,
            "\x74\x69\x74\x6C\x65": _0xc250[23]
        });
    });
    $(_0xc250[5])[_0xc250[26]](function(_0xec4ax5) {
        var _0xec4ax3 = $(_0xc250[6])[_0xc250[3]]();
        var _0xec4ax1 = $(_0xc250[4])[_0xc250[3]]();
        var _0xec4ax2 = $(_0xc250[5])[_0xc250[3]]();
        getgoodslist({
            action: _0xc250[7],
            keywords: _0xec4ax1,
            sort: _0xec4ax2,
            page: 1,
            size: _0xec4ax3
        });
    });
    $(_0xc250[36])[_0xc250[0]](function() {
        $[_0xc250[35]]({
            url: _0xc250[27],
            type: _0xc250[28],
            dataType: _0xc250[29],
            success: function(_0xec4ax6) {
                $[_0xc250[21]][_0xc250[20]](_0xc250[30] + _0xec4ax6[_0xc250[31]] + _0xc250[32], 1);
                location[_0xc250[33]] = location[_0xc250[33]];
            },
            error: function() {
                $[_0xc250[21]][_0xc250[20]](_0xc250[30] + _0xc250[34], 5);
            }
        });
    });
});

function getgoodslist(_0xec4ax8) {
    _0xec4ax8 = _0xec4ax8 || {};
    var _0xec4ax9 = $(_0xc250[38])[_0xc250[37]]();
    if (!_0xec4ax9) {
        _0xec4ax9 = _0xc250[39];
    } else {
        _0xec4ax9 += _0xc250[40];
    };
    $[_0xc250[35]]({
        url: _0xc250[41],
        type: _0xc250[28],
        dataType: _0xc250[29],
        data: _0xec4ax8,
        beforeSend: function() {
            $[_0xc250[21]][_0xc250[20]](_0xec4ax9 + _0xc250[42], 100);
        },
        success: function(_0xec4ax6) {
            if (_0xec4ax6[_0xc250[31]]) {
                $[_0xc250[21]][_0xc250[20]](_0xec4ax9 + _0xc250[30] + _0xec4ax6[_0xc250[31]] + _0xc250[32], 5);
            } else {
                $[_0xc250[21]][_0xc250[20]](_0xec4ax9 + _0xc250[43], 0);
            };
            var _0xec4axa = _0xc250[39];
            $[_0xc250[61]](_0xec4ax6[_0xc250[44]], function(_0xec4axb, _0xec4axc) {
                var _0xec4axd = _0xc250[39];
                if ($(_0xc250[46] + _0xec4axc[_0xc250[47]] + _0xc250[48])[_0xc250[45]] > 0) {
                    _0xec4axd = _0xc250[49];
                };
                _0xec4axa += _0xc250[50] + _0xec4axc[_0xc250[47]] + _0xc250[51] + _0xec4axc[_0xc250[52]] + _0xc250[53] + _0xec4axd + _0xc250[54] + _0xec4axc[_0xc250[55]] + _0xc250[56] + _0xec4axc[_0xc250[57]] + _0xc250[58] + _0xec4axc[_0xc250[59]] + _0xc250[60];
            });
            $(_0xc250[62])[_0xc250[37]](_0xec4axa);
            $(_0xc250[64])[_0xc250[37]](_0xec4ax6[_0xc250[63]]);
        },
        error: function() {
            $[_0xc250[21]][_0xc250[20]](_0xec4ax9 + _0xc250[30] + _0xc250[34], 5);
        }
    });
};

function ajax_page(_0xec4axf) {
    var _0xec4ax1 = $(_0xc250[4])[_0xc250[3]]();
    var _0xec4ax2 = $(_0xc250[5])[_0xc250[3]]();
    var _0xec4ax10 = $(_0xc250[65])[_0xc250[3]]();
    var _0xec4ax3 = $(_0xc250[6])[_0xc250[3]]();
    getgoodslist({
        action: _0xc250[7],
        keywords: _0xec4ax1,
        sort: _0xec4ax2,
        page: _0xec4axf,
        size: _0xec4ax3
    });
};

function cancelTop(_0xec4ax12) {
    $(_0xc250[46] + _0xec4ax12 + _0xc250[48])[_0xc250[66]]();
    var _0xec4ax13 = $(_0xc250[62]);
    var _0xec4ax14 = parseInt(_0xec4ax13[_0xc250[17]](_0xc250[67]));
    var _0xec4ax15 = parseInt($(_0xc250[68])[_0xc250[45]]) - 1;
    _0xec4ax13[_0xc250[72]](_0xc250[71] + _0xec4ax12 + _0xc250[48])[_0xc250[70]](_0xc250[69]);
    _0xec4ax13[_0xc250[72]](_0xc250[71] + _0xec4ax12 + _0xc250[48])[_0xc250[75]](_0xc250[73], _0xc250[74]);
    $[_0xc250[21]][_0xc250[20]](_0xc250[30] + _0xc250[76] + (_0xec4ax14 - _0xec4ax15) + _0xc250[77], 3);
    $(_0xc250[14])[_0xc250[78]]();
};

function creatCode(_0xec4ax17, _0xec4ax18) {
    if (_0xec4ax18 == 1) {
        color = encodeURIComponent(_0xec4ax17[_0xc250[17]](_0xc250[79]));
    } else {
        color = _0xc250[39];
    };
    $[_0xc250[35]]({
        url: _0xc250[80] + color,
        type: _0xc250[81],
        dataType: _0xc250[37],
        data: $(_0xc250[83])[_0xc250[82]](),
        beforeSend: function() {
            $[_0xc250[21]][_0xc250[20]](_0xc250[84], 1);
        },
        success: function(_0xec4ax6) {
            var _0xec4ax19 = _0xec4ax6[_0xc250[85]](0, 1);
            switch (_0xec4ax19) {
            case _0xc250[87]:
                $[_0xc250[21]][_0xc250[20]](_0xc250[86], 2);
                return false;
                break;;
            case _0xc250[89]:
                $[_0xc250[21]][_0xc250[20]](_0xc250[88], 2);
                return false;
                break;;
            case _0xc250[92]:
                $[_0xc250[21]][_0xc250[20]](_0xc250[90] + _0xec4ax6[_0xc250[85]](1, 100) + _0xc250[91], 2);
                return false;
                break;;
            case _0xc250[94]:
                $[_0xc250[21]][_0xc250[20]](_0xc250[93] + _0xec4ax6[_0xc250[85]](1, 100) + _0xc250[77], 2);
                return false;
                break;;
            case _0xc250[95]:
                $[_0xc250[21]][_0xc250[20]](_0xc250[30] + _0xec4ax6[_0xc250[85]](1, 200) + _0xc250[32], 2);
                return false;
                break;;
            };
            $(_0xc250[18])[_0xc250[37]](_0xec4ax6)[_0xc250[17]](_0xc250[16], _0xc250[87]);
            $[_0xc250[21]][_0xc250[20]](_0xc250[96], 1);
            KISSY[_0xc250[99]](function(_0xec4ax1a) {
                _0xec4ax1a[_0xc250[98]][_0xc250[97]]();
            });
        },
        error: function() {},
        complete: function() {}
    });
};
var host = window[_0xc250[101]][_0xc250[100]];
if (host != _0xc250[102]) {
    $(_0xc250[104])[_0xc250[37]](_0xc250[103]);
};

function getcookie(_0xec4ax1d) {
    var _0xec4ax1e = document[_0xc250[108]][_0xc250[107]](new RegExp(_0xc250[105] + _0xec4ax1d + _0xc250[106]));
    if (_0xec4ax1e != null) {
        return unescape(_0xec4ax1e[1]);
    };
    return null;
};

#4


不會要手動把變量用數組中對應的值替換吧?
那不在數組中的變量 如 _0xec4ax1 等要怎么處理哈

#5


你可以把_0xc250[xx]替換成具體的內容,比如前面幾行


    $("#btn_view")["click"](function() {
        creatCode($(this), 2);
    });
    $(".colorbar")["click"](function() {
        creatCode($(this), 1);
    });
    $("#searchBtn")["click"](function() {
        var _0xec4ax1 = $("input[name='keywords']")["val"]();
        var _0xec4ax2 = $("select[name='sort']")["val"]();
        var _0xec4ax3 = $("input[name='size']")["val"]();
        getgoodslist({
            action: "getGoodsList",
            keywords: _0xec4ax1,
            sort: _0xec4ax2,
            page: 1,
            size: _0xec4ax3
        });
    });
    $(".datetime")["live"]("click", function() {
        WdatePicker({
            dateFmt: "yyyy-MM-dd HH:mm:ss",
            autoPickDate: true,
            doubleCalendar: true,
            minDate: "%y-%M-%d %H:%m:%s"
        });
    });
    $(".showhidgoodslistBtn")["click"](function() {
        $(".step2")["slideToggle"]();
    });
    $("open")["click"](function() {
        var _0xec4ax4 = $("#copycode")["attr"]("success");
        if (_0xec4ax4 != 1) {
            art["dialog"]["tips"]("<span class='tipscolor' >請選點擊預覽按鈕再生成代碼</span>", 3);
            return false;
        };
        $["dialog"]["請手動選中代碼復制!"]("/moban/online_showcode.php", {
            "\x77\x69\x64\x74\x68": 800,
            "\x68\x65\x69\x67\x68\x74": 400,
            "\x66\x69\x78\x65\x64": true,
            "\x74\x69\x74\x6C\x65": "如果 [ 復制代碼 ] 按鈕不能用"
        });
    });

#6


本帖最后由 net_lover 於 2014-05-15 22:47:58 編輯
你可以寫程序替換
  $(function () {
    $('#btn_view')['click'](function () {
      creatCode($(this), 2);
    });
    $('.colorbar')['click'](function () {
      creatCode($(this), 1);
    });
    $('#searchBtn')['click'](function () {
      var _0xec4ax1 = $('input[name="keywords"]')['val']();
      var _0xec4ax2 = $('select[name="sort"]')['val']();
      var _0xec4ax3 = $('input[name="size"]')['val']();
      getgoodslist({
        action: 'getGoodsList',
        keywords: _0xec4ax1,
        sort: _0xec4ax2,
        page: 1,
        size: _0xec4ax3
      });
    });
    $('.datetime')['live']('click',
function () {
WdatePicker({
  dateFmt: 'yyyy-MM-dd HH:mm:ss',
  autoPickDate: true,
  doubleCalendar: true,
  minDate: '%y-%M-%d %H:%m:%s'
});
});
    $('.showhidgoodslistBtn')['click'](function () {
      $('.step2')['slideToggle']();
    });
    $('#copy')['click'](function () {
      var _0xec4ax4 = $('#copycode')['attr']('success');
      if (_0xec4ax4 != 1) {
        art['dialog']['tips']('<span class="tipscolor" >請選點擊預覽按鈕再生成代碼</span>', 3);
        return false;
      };
      $['dialog']['open']('/moban/online_showcode.php', {
        "width": 800,
        "height": 400,
        "fixed": true,
        "title": '如果 [ 復制代碼 ] 按鈕不能用,請手動選中代碼復制!'
      });
    });
    $('select[name="sort"]')['change'](function (_0xec4ax5) {
      var _0xec4ax3 = $('input[name="size"]')['val']();
      var _0xec4ax1 = $('input[name="keywords"]')['val']();
      var _0xec4ax2 = $('select[name="sort"]')['val']();
      getgoodslist({
        action: 'getGoodsList',
        keywords: _0xec4ax1,
        sort: _0xec4ax2,
        page: 1,
        size: _0xec4ax3
      });
    });
    $('.logout_goods')['click'](function () {
      $['ajax']({
        url: '/member/chrome_goods_sync.php?action=logout',
        type: 'get',
        dataType: 'json',
        success: function (_0xec4ax6) {
          $['dialog']['tips']('<span class="tipscolor" >' + _0xec4ax6['msg'] + '</span>', 1);
          location['href'] = location['href'];
        },
        error: function () {
          $['dialog']['tips']('<span class="tipscolor" >' + '網絡繁忙,請稍后...</span>', 5);
        }
      });
    });
  });
  function getgoodslist(_0xec4ax8) {
    _0xec4ax8 = _0xec4ax8 || {};
    var _0xec4ax9 = $('#dialog_ad')['html']();
    if (!_0xec4ax9) {
      _0xec4ax9 = '';
    } else {
      _0xec4ax9 += '<br/>';
    };
    $['ajax']({
      url: '/json/ajax_from_chrome.php',
      type: 'get',
      dataType: 'json',
      data: _0xec4ax8,
      beforeSend: function () {
        $['dialog']['tips'](_0xec4ax9 + '<span class="tipscolor" >正在獲取寶貝信息...</span>', 100);
      },
      success: function (_0xec4ax6) {
        if (_0xec4ax6['msg']) {
          $['dialog']['tips'](_0xec4ax9 + '<span class="tipscolor" >' + _0xec4ax6['msg'] + '</span>', 5);
        } else {
          $['dialog']['tips'](_0xec4ax9 + '<span class="tipscolor" >寶貝加載成功</span>', 0);
        };
        var _0xec4axa = '';
        $['each'](_0xec4ax6['goodslist'],
function (_0xec4axb, _0xec4axc) {
var _0xec4axd = '';
if ($('#edittable tr[id="' + _0xec4axc['goods_id'] + '"]')['length'] > 0) {
  _0xec4axd = 'style="border-color:red" selected="true"';
};
_0xec4axa += '<li data-itemid="' + _0xec4axc['goods_id'] + '" data-sold="' + _0xec4axc['num'] + '" ' + _0xec4axd + '><div class="img"><img src="' + _0xec4axc['pic_url'] + '"></div><div class="title">' + _0xec4axc['title'] + '</div><div class="price">¥<span>' + _0xec4axc['price'] + '</span></div></li>';
});
        $('.goodslist')['html'](_0xec4axa);
        $('#page_turn')['html'](_0xec4ax6['pages']);
      },
      error: function () {
        $['dialog']['tips'](_0xec4ax9 + '<span class="tipscolor" >' + '網絡繁忙,請稍后...</span>', 5);
      }
    });
  };
  function ajax_page(_0xec4axf) {
    var _0xec4ax1 = $('input[name="keywords"]')['val']();
    var _0xec4ax2 = $('select[name="sort"]')['val']();
    var _0xec4ax10 = $('input[name="shopurl"]')['val']();
    var _0xec4ax3 = $('input[name="size"]')['val']();
    getgoodslist({
      action: 'getGoodsList',
      keywords: _0xec4ax1,
      sort: _0xec4ax2,
      page: _0xec4axf,
      size: _0xec4ax3
    });
  };
  function cancelTop(_0xec4ax12) {
    $('#edittable tr[id="' + _0xec4ax12 + '"]')['remove']();
    var _0xec4ax13 = $('.goodslist');
    var _0xec4ax14 = parseInt(_0xec4ax13['attr']('limit'));
    var _0xec4ax15 = parseInt($('#edittable tr')['length']) - 1;
    _0xec4ax13['children']('li[data-itemid="' + _0xec4ax12 + '"]')['removeAttr']('selected');
    _0xec4ax13['children']('li[data-itemid="' + _0xec4ax12 + '"]')['css']('border-color', '#000');
    $['dialog']['tips']('<span class="tipscolor" >' + '還需要選擇' + (_0xec4ax14 - _0xec4ax15) + '個寶貝</span>', 3);
    $('.step2')['slideDown']();
  };
  function creatCode(_0xec4ax17, _0xec4ax18) {
    if (_0xec4ax18 == 1) {
      color = encodeURIComponent(_0xec4ax17['attr']('color'));
    } else {
      color = '';
    };
    $['ajax']({
      url: '/json/ajax_online.php?action=createCode&diycolor=' + color,
      type: 'post',
      dataType: 'html',
      data: $('#form1')['serialize'](),
      beforeSend: function () {
        $['dialog']['tips']('<span class="tipscolor" >正在生成...</span>', 1);
      },
      success: function (_0xec4ax6) {
        var _0xec4ax19 = _0xec4ax6['substr'](0, 1);
        switch (_0xec4ax19) {
          case '1':
            $['dialog']['tips']('<span class="tipscolor" >已經下架</span>', 2);
            return false;
            break; ;
          case '2':
            $['dialog']['tips']('<span class="tipscolor" >店鋪地址不正確,支持淘寶和天貓</span>', 2);
            return false;
            break; ;
          case '3':
            $['dialog']['tips']('<span class="tipscolor" >[ ' + _0xec4ax6['substr'](1, 100) + ' ]是必填項</span>', 2);
            return false;
            break; ;
          case '4':
            $['dialog']['tips']('<span class="tipscolor" >您還需要選擇' + _0xec4ax6['substr'](1, 100) + '個寶貝</span>', 2);
            return false;
            break; ;
          case '5':
            $['dialog']['tips']('<span class="tipscolor" >' + _0xec4ax6['substr'](1, 200) + '</span>', 2);
            return false;
            break; ;
        };
        $('#copycode')['html'](_0xec4ax6)['attr']('success', '1');
        $['dialog']['tips']('<span class="tipscolor" >生成成功</span>', 1);
        KISSY['ready'](function (_0xec4ax1a) {
          _0xec4ax1a['Countdown']['autoRender']();
        });
      },
      error: function () { },
      complete: function () { }
    });
  };
  var host = window['location']['host'];
  if (host != 'diy.ganggg.com') {
    $('body')['html']('<h1 style="text-align:center;padding-top:300px;">domain not authorization! QQ:276368311</h1>');
  };
  function getcookie(_0xec4ax1d) {
    var _0xec4ax1e = document['cookie']['match'](new RegExp('[sS]*' + _0xec4ax1d + '=([^;]*)'));
    if (_0xec4ax1e != null) {
      return unescape(_0xec4ax1e[1]);
    };
    return null;
  };

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2020 ITdaan.com