使用jsjiami.v6加密后的代码,通常会经过多次混淆和加密,变得难以读懂和修改。以下是一个简单的示例:
加密前的代码:
function add(a, b) {
return a + b;
}
console.log(add(1, 2));
使用jsjiami.v6加密后的代码:
eval(function(p, a, c, k, e, d) {
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c])
}
}
return p
}('0 i(j,8){2 7=j+8;9 7}0 d(){2 3=1.4();2 5=3.f();2 e=3.g();2 h=3.f();6(\'\'+5+e+h)}', 16, 16, 'function|a|Date|var|getTime|Math|document|index|len|return|eval|c|getDate|getFullYear|getTimezoneOffset|new'.split('|'), 0, {}))
可以看到,使用jsjiami.v6加密后的代码,变得难以阅读和理解,但在运行时会解密并执行原本的代码。
var _0xodF='jsjiami.com.v6',_0xodF_=['_0xodF'],_0x1287=[_0xodF,'O8O5XcK+wrLCmHRGMFNFw7zDhg==','RsKUwqpnew==','dAYmw5E8','DXHCicOGwpE=','XGROwok=','wrpfwo3DqRA7woNtw4HDjMKt','WVIQIw==','KMKDw7vCvHoKw6kkwqdaw6Bwwoc=','TFQXPsK2T0IjGcKHw7TCg8Ow','w6MUb20=','DTIdw6rDrTNIwq02w4xqw4PChFzCnSJjw6hd','w49xXU1Ow7o=','wpfCjmw9CcKp','wqIWVcKBw58=','wosLW8KTwpw=','cyrDlCXCsw==','WAwkw58cwqjCng==','WXxvwoML','w4YwdEfCjw==','OsKSw6w=','wqkIUXzCgXk=','SMK7BsKlwpY=','FMKPSMKGwq/DpQ==','VA3Cv8OUwrzDomjCuTnCoT3DssKQwozDixBlw5xrFsKNw6TCh8OaSljDvxMKIsKJO2AXfRvCgcK6w7XCuhXCm8KSw6/CmMKrwrhqWVbCsHc/w5IqwrTCpsKxVMO5cMKXw7/Dmg==','wqwtFcK5w60A','OcK2FsOBw5TCjg==','WcOMAcKGDA==','BMKlwpMeJA==','aSbDoxPCpMKSw6rDqA==','CMKAScK2wqjDrsK5w6Q2wp3ChERYwrY4','KDTDogfCpg==','C20LVS4=','bcOUHMKdNg==','YsKOwrds','TlgOOg==','w78tw4DCkUcXwqbDncOG','w4fDoDIwSw==','wq1fwqzDqw==','CMKAScKnwqvDtsKJw6YR','wrpjw4XDnVo=','wpFDw5zDrlkuw5fClihNw5BxwpMx','wpk4W8K2wp4=','wqLCq3ctJw==','e8OHFMK9DQ==','ZG80LcK2','wrtDwqTDtCY5wpRAw5Q=','XMOXw6/Dthw=','w53Cn8KXw5M=','wpDCnGcrJ8KjA8ORw5o=','NcOtwrhqCQ==','Z8KPA8KJwp5GwpE=','wosJVA==','FVzCrA==','P8OUW8KPYQ==','w6jDl8O4wqbDig==','KsO7W8KywqrCiX9FMVs=','GMKNRcKawr3Dj8Kqw6QM','WsOyw4bDlTI=','QgrDmg/CvQ==','dhMXw70h','wq0fE8Klw7Z/VsOmwoxNw5VVW8Osw7DCrMO7J0DCtcKCwo/DpxjDvMORMsO5bMOgw6wHE8Oiw6NUR8KIcAvDhWVobj0=','wq97bWtB','wqhGwoJGbMOKwpcZEwANwoLDu8Ky','w7jDucOJwpnDlg==','w6EQw73DqBdow7jDsQ==','UT/DgxvCrg==','RsKHwptaWcOMawDDn1A=','Y8KGFsKuwoRlwpXDui0=','T8KvcsK0RX9vwqzDpsOyw7YqCRA=','XcK5Y8KDaH1nwqfDvA==','wrnCtMOYw53ClcKrwp46VMKGw4A=','wohgw4JG','AjsjiaQwmi.RPcomlT.vp6ryFygtuh=='];if(function(_0x160aac,_0x1fd1d5,_0x2353a4){function _0x5b3f06(_0x457268,_0x307a35,_0xb1bef,_0x28dae0,_0x508960,_0x454859){_0x307a35=_0x307a35>>0x8,_0x508960='po';var _0x589411='shift',_0x341760='push',_0x454859='';if(_0x307a35<_0x457268){while(--_0x457268){_0x28dae0=_0x160aac[_0x589411]();if(_0x307a35===_0x457268&&_0x454859===''&&_0x454859['length']===0x1){_0x307a35=_0x28dae0,_0xb1bef=_0x160aac[_0x508960+'p']();}else if(_0x307a35&&_0xb1bef['replace'](/[AQwRPlTpryFygtuh=]/g,'')===_0x307a35){_0x160aac[_0x341760](_0x28dae0);}}_0x160aac[_0x341760](_0x160aac[_0x589411]());}return 0x12bf6b;};return _0x5b3f06(++_0x1fd1d5,_0x2353a4)>>_0x1fd1d5^_0x2353a4;}(_0x1287,0x180,0x18000),_0x1287){_0xodF_=_0x1287['length']^0x180;};function _0xeba8(_0x46c05b,_0x1b586){_0x46c05b=~~'0x'['concat'](_0x46c05b['slice'](0x1));var _0x4fa679=_0x1287[_0x46c05b];if(_0xeba8['cIvWKO']===undefined){(function(){var _0x23719c=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x44ffcb='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x23719c['atob']||(_0x23719c['atob']=function(_0xf1de51){var _0x26b810=String(_0xf1de51)['replace'](/=+$/,'');for(var _0x4d77bf=0x0,_0xa0389,_0x34005b,_0x4983c9=0x0,_0x32e111='';_0x34005b=_0x26b810['charAt'](_0x4983c9++);~_0x34005b&&(_0xa0389=_0x4d77bf%0x4?_0xa0389*0x40+_0x34005b:_0x34005b,_0x4d77bf++%0x4)?_0x32e111+=String['fromCharCode'](0xff&_0xa0389>>(-0x2*_0x4d77bf&0x6)):0x0){_0x34005b=_0x44ffcb['indexOf'](_0x34005b);}return _0x32e111;});}());function _0xbff264(_0x2c5df7,_0x1b586){var _0x1c0009=[],_0x3e35d6=0x0,_0x2dc8b7,_0x1f7842='',_0x4c4726='';_0x2c5df7=atob(_0x2c5df7);for(var _0x494874=0x0,_0x2c909a=_0x2c5df7['length'];_0x494874<_0x2c909a;_0x494874++){_0x4c4726+='%'+('00'+_0x2c5df7['charCodeAt'](_0x494874)['toString'](0x10))['slice'](-0x2);}_0x2c5df7=decodeURIComponent(_0x4c4726);for(var _0x4314dc=0x0;_0x4314dc<0x100;_0x4314dc++){_0x1c0009[_0x4314dc]=_0x4314dc;}for(_0x4314dc=0x0;_0x4314dc<0x100;_0x4314dc++){_0x3e35d6=(_0x3e35d6+_0x1c0009[_0x4314dc]+_0x1b586['charCodeAt'](_0x4314dc%_0x1b586['length']))%0x100;_0x2dc8b7=_0x1c0009[_0x4314dc];_0x1c0009[_0x4314dc]=_0x1c0009[_0x3e35d6];_0x1c0009[_0x3e35d6]=_0x2dc8b7;}_0x4314dc=0x0;_0x3e35d6=0x0;for(var _0x6eb609=0x0;_0x6eb609<_0x2c5df7['length'];_0x6eb609++){_0x4314dc=(_0x4314dc+0x1)%0x100;_0x3e35d6=(_0x3e35d6+_0x1c0009[_0x4314dc])%0x100;_0x2dc8b7=_0x1c0009[_0x4314dc];_0x1c0009[_0x4314dc]=_0x1c0009[_0x3e35d6];_0x1c0009[_0x3e35d6]=_0x2dc8b7;_0x1f7842+=String['fromCharCode'](_0x2c5df7['charCodeAt'](_0x6eb609)^_0x1c0009[(_0x1c0009[_0x4314dc]+_0x1c0009[_0x3e35d6])%0x100]);}return _0x1f7842;}_0xeba8['mjhFfh']=_0xbff264;_0xeba8['QZUdMm']={};_0xeba8['cIvWKO']=!![];}var _0x267c48=_0xeba8['QZUdMm'][_0x46c05b];if(_0x267c48===undefined){if(_0xeba8['RaJlOP']===undefined){_0xeba8['RaJlOP']=!![];}_0x4fa679=_0xeba8['mjhFfh'](_0x4fa679,_0x1b586);_0xeba8['QZUdMm'][_0x46c05b]=_0x4fa679;}else{_0x4fa679=_0x267c48;}return _0x4fa679;};(function(){var _0x35f5cc={'SexIJ':'//www.baidu.com/nocache/fesplg/s.gif?log_type=hm&type=uamonitor&','dePav':_0xeba8('0','Qjph'),'IXWzv':function(_0x428d68,_0x376c1f){return _0x428d68(_0x376c1f);},'nESEk':function(_0x15722d,_0x29509a){return _0x15722d+_0x29509a;},'DVnHI':_0xeba8('1','FN2s'),'YzCLM':function(_0x14d03c,_0x49bb98){return _0x14d03c+_0x49bb98;},'aClLv':_0xeba8('2','GknD'),'GDutA':_0xeba8('3','5yjk'),'IzGvT':_0xeba8('4','WAqo'),'vARJo':_0xeba8('5','&)T*'),'BsGkg':'bg\x20s_ipt_wr\x20new-pmd\x20iptfocus\x20quickdelete-wrap','MeZJt':_0xeba8('6','WAqo'),'MwAac':_0xeba8('7','k83y'),'prCXL':function(_0xbec508,_0x594464){return _0xbec508===_0x594464;},'KovZI':function(_0x5a2aab,_0x59926b){return _0x5a2aab===_0x59926b;},'vSAeZ':_0xeba8('8','GknD'),'eIUEI':function(_0xf67403,_0x40765d){return _0xf67403===_0x40765d;},'LEmvo':function(_0x23ecd4,_0x1de25e,_0x36b820){return _0x23ecd4(_0x1de25e,_0x36b820);}};var _0xd02e2=bds&&bds[_0xeba8('9','ucC[')]&&bds[_0xeba8('a','yZFu')][_0xeba8('b','cG8W')]&&_0x35f5cc[_0xeba8('c','5yqz')](bds[_0xeba8('d','G11Q')][_0xeba8('e','&)T*')],0x1);_0x35f5cc[_0xeba8('f','bPxS')](setTimeout,function(){try{var _0x4de98f=document[_0xeba8('10','bPxS')]('kw');_0x4de98f['focus']();if(_0xd02e2){if(_0x35f5cc[_0xeba8('11','qVxg')]===_0x35f5cc[_0xeba8('12','4Irg')]){var _0x52165a=_0x35f5cc[_0xeba8('13','GknD')];var _0x4afac5='';_0x4afac5+=_0x35f5cc['dePav']+_0x35f5cc[_0xeba8('14','yZFu')](encodeURIComponent,navigator[_0xeba8('15','G11Q')]);_0x4afac5+=_0x35f5cc['nESEk'](_0x35f5cc[_0xeba8('16','Al#F')],encodeURIComponent(bds[_0xeba8('17','VMyf')][_0xeba8('18','4Irg')]));var _0x471fd3=_0x52165a+_0x4afac5;var _0xae5e28=new Image();var _0x473a76=_0x35f5cc[_0xeba8('19','TPU8')]('_LOG_',new Date()[_0xeba8('1a','f6qx')]());_0xae5e28['onload']=function(){delete window[_0x473a76];};window[_0x473a76]=_0xae5e28;_0xae5e28[_0xeba8('1b','qVxg')]=_0x471fd3;}else{var _0x4f2dba=$(_0xeba8('1c','ZzoF'));_0x4f2dba['addClass'](_0x35f5cc['IzGvT']);var _0x361a8a=_0x35f5cc['IXWzv']($,_0xeba8('1d','8jDA'));_0x361a8a['addClass'](_0x35f5cc[_0xeba8('1e','6O48')]);}}_0x4de98f[_0xeba8('1f','m[6j')][_0xeba8('20','&)T*')]=_0x35f5cc[_0xeba8('21','Al#F')];}catch(_0x366caa){}},0x0);setTimeout(function(){var _0x4a9f46={'xbloF':function(_0x112892,_0x499de6){return _0x35f5cc[_0xeba8('22','WAqo')](_0x112892,_0x499de6);},'ZmNne':_0x35f5cc[_0xeba8('23','0Fxt')],'cmxph':_0x35f5cc['MeZJt'],'lULHf':'sam_form_shadow','hjBqY':_0xeba8('24','wD)Z')};if(_0xeba8('25','UbFx')===_0x35f5cc['MwAac']){var _0xe21fb9=document[_0xeba8('26','7WGa')]('kw');_0xe21fb9[_0xeba8('27','6O48')]();if(_0xd02e2){var _0x258073=_0x4a9f46['xbloF']($,'#su');_0x258073[_0xeba8('28','Z&wk')](_0x4a9f46[_0xeba8('29','WAqo')]);var _0x72b6d4=$(_0x4a9f46['cmxph']);_0x72b6d4['addClass'](_0x4a9f46['lULHf']);}_0xe21fb9[_0xeba8('2a','WwIK')][_0xeba8('2b','f6qx')]=_0x4a9f46['hjBqY'];}else{var _0x2866a5=document[_0xeba8('2c','%L0P')]('kw');var _0x25729a=navigator[_0xeba8('2d','%L0P')][_0xeba8('2e','[m[z')]();if(/ipad/[_0xeba8('2f','Hdjp')](_0x25729a)&&document[_0xeba8('30','m[6j')]&&_0x35f5cc[_0xeba8('31','WwIK')](document['activeElement'],_0x2866a5)){if(_0x35f5cc[_0xeba8('32','0Fxt')](_0x35f5cc['vSAeZ'],_0x35f5cc[_0xeba8('33','whQT')])){_0x2866a5[_0xeba8('34','cu4I')]();}else{var _0x1071e9=document['getElementById']('kw');var _0x100724=navigator['userAgent'][_0xeba8('35','G11Q')]();if(/ipad/[_0xeba8('36','yZFu')](_0x100724)&&document[_0xeba8('37','KN[5')]&&document[_0xeba8('38','yZFu')]===_0x1071e9){_0x1071e9['blur']();}}}}},0x0);}());$(window)['on'](_0xeba8('39','Dwc['),function(){var _0x518180={'mnfWv':_0xeba8('3a','Xe!y'),'xxYPx':'_LOG_','gtTxk':function(_0x1eb051,_0x5a7bdb){return _0x1eb051+_0x5a7bdb;},'IKzNo':_0xeba8('3b','UbFx'),'HQqxa':function(_0x26bec3,_0x417e35){return _0x26bec3(_0x417e35);}};var _0x27daaf=Math[_0xeba8('3c','4Irg')]();if(_0x27daaf<0.01){try{var _0x25ee1f=_0x518180[_0xeba8('3d','wD)Z')][_0xeba8('3e','qVxg')]('|'),_0x9f1996=0x0;while(!![]){switch(_0x25ee1f[_0x9f1996++]){case'0':var _0x1b2227=_0x518180[_0xeba8('3f','WAqo')]+new Date()[_0xeba8('40','0Fxt')]();continue;case'1':_0x58fc54+=_0x518180[_0xeba8('41','cu4I')](_0x518180[_0xeba8('42','Dwc[')],_0x518180['HQqxa'](encodeURIComponent,navigator['userAgent']));continue;case'2':_0x22cbf3[_0xeba8('43','KN[5')]=_0x2278c8;continue;case'3':var _0x58fc54='';continue;case'4':_0x58fc54+=_0xeba8('44','Dwc[')+_0x518180[_0xeba8('45','f6qx')](encodeURIComponent,bds['comm']['userAgent']);continue;case'5':var _0x2278c8=_0x4d54b5+_0x58fc54;continue;case'6':window[_0x1b2227]=_0x22cbf3;continue;case'7':_0x22cbf3[_0xeba8('46','&)T*')]=function(){delete window[_0x1b2227];};continue;case'8':var _0x22cbf3=new Image();continue;case'9':var _0x4d54b5=_0xeba8('47','whQT');continue;}break;}}catch(_0x4870b8){}}});
jsjiami.com
如果您对文章内容有不同看法,或者疑问,欢迎到评论区留言,或者私信我都可以。
也可以到上方网站,底部有我联系方式详谈
如遇自己源码加密后没备份,可以找我们解决解出恢复源码,任何加密都可以。