全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 909|回复: 2

[Windows VPS] 苹果CMS player.js求解密

[复制链接]
发表于 2019-1-20 11:07:14 | 显示全部楼层 |阅读模式
想要改个播放器读取gif 貌似写在这里面了

  1. var killErrors=function(value){return true};window.onerror=null;window.onerror=killErrors;
  2. var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var base64DecodeChars=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 base64encode(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i<len){c1=str.charCodeAt(i++)&0xff;if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out}function base64decode(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i<len){do{c1=base64DecodeChars[str.charCodeAt(i++)&0xff]}while(i<len&&c1==-1);if(c1==-1)break;do{c2=base64DecodeChars[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=base64DecodeChars[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=base64DecodeChars[c4]}while(i<len&&c4==-1);if(c4==-1)break;out+=String.fromCharCode(((c3&0x03)<<6)|c4)}return out}function utf16to8(str){var out,i,len,c;out="";len=str.length;for(i=0;i<len;i++){c=str.charCodeAt(i);if((c>=0x0001)&&(c<=0x007F)){out+=str.charAt(i)}else if(c>0x07FF){out+=String.fromCharCode(0xE0|((c>>12)&0x0F));out+=String.fromCharCode(0x80|((c>>6)&0x3F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}else{out+=String.fromCharCode(0xC0|((c>>6)&0x1F));out+=String.fromCharCode(0x80|((c>>0)&0x3F))}}return out}function utf8to16(str){var out,i,len,c;var char2,char3;out="";len=str.length;i=0;while(i<len){c=str.charCodeAt(i++);switch(c>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:out+=str.charAt(i-1);break;case 12:case 13:char2=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x1F)<<6)|(char2&0x3F));break;case 14:char2=str.charCodeAt(i++);char3=str.charCodeAt(i++);out+=String.fromCharCode(((c&0x0F)<<12)|((char2&0x3F)<<6)|((char3&0x3F)<<0));break}}return out}
复制代码
发表于 2019-1-20 11:09:02 来自手机 | 显示全部楼层
base64编码而已,直接格式化一下就行了
 楼主| 发表于 2019-1-20 11:13:42 | 显示全部楼层
rooney 发表于 2019-1-20 11:09
base64编码而已,直接格式化一下就行了

解了 还有这些
  1. var killErrors = function(value) {
  2.     return true
  3. };
  4. window.onerror = null;
  5. window.onerror = killErrors;
  6. var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  7. var base64DecodeChars = 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);
  8. function base64encode(str) {
  9.     var out, i, len;
  10.     var c1, c2, c3;
  11.     len = str.length;
  12.     i = 0;
  13.     out = "";
  14.     while (i < len) {
  15.         c1 = str.charCodeAt(i++) & 0xff;
  16.         if (i == len) {
  17.             out += base64EncodeChars.charAt(c1 >> 2);
  18.             out += base64EncodeChars.charAt((c1 & 0x3) << 4);
  19.             out += "==";
  20.             break
  21.         }
  22.         c2 = str.charCodeAt(i++);
  23.         if (i == len) {
  24.             out += base64EncodeChars.charAt(c1 >> 2);
  25.             out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));
  26.             out += base64EncodeChars.charAt((c2 & 0xF) << 2);
  27.             out += "=";
  28.             break
  29.         }
  30.         c3 = str.charCodeAt(i++);
  31.         out += base64EncodeChars.charAt(c1 >> 2);
  32.         out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4));
  33.         out += base64EncodeChars.charAt(((c2 & 0xF) << 2) | ((c3 & 0xC0) >> 6));
  34.         out += base64EncodeChars.charAt(c3 & 0x3F)
  35.     }
  36.     return out
  37. }
  38. function base64decode(str) {
  39.     var c1, c2, c3, c4;
  40.     var i, len, out;
  41.     len = str.length;
  42.     i = 0;
  43.     out = "";
  44.     while (i < len) {
  45.         do {
  46.             c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff]
  47.         } while ( i < len && c1 == - 1 );
  48.         if (c1 == -1) break;
  49.         do {
  50.             c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff]
  51.         } while ( i < len && c2 == - 1 );
  52.         if (c2 == -1) break;
  53.         out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));
  54.         do {
  55.             c3 = str.charCodeAt(i++) & 0xff;
  56.             if (c3 == 61) return out;
  57.             c3 = base64DecodeChars[c3]
  58.         } while ( i < len && c3 == - 1 );
  59.         if (c3 == -1) break;
  60.         out += String.fromCharCode(((c2 & 0XF) << 4) | ((c3 & 0x3C) >> 2));
  61.         do {
  62.             c4 = str.charCodeAt(i++) & 0xff;
  63.             if (c4 == 61) return out;
  64.             c4 = base64DecodeChars[c4]
  65.         } while ( i < len && c4 == - 1 );
  66.         if (c4 == -1) break;
  67.         out += String.fromCharCode(((c3 & 0x03) << 6) | c4)
  68.     }
  69.     return out
  70. }
  71. function utf16to8(str) {
  72.     var out, i, len, c;
  73.     out = "";
  74.     len = str.length;
  75.     for (i = 0; i < len; i++) {
  76.         c = str.charCodeAt(i);
  77.         if ((c >= 0x0001) && (c <= 0x007F)) {
  78.             out += str.charAt(i)
  79.         } else if (c > 0x07FF) {
  80.             out += String.fromCharCode(0xE0 | ((c >> 12) & 0x0F));
  81.             out += String.fromCharCode(0x80 | ((c >> 6) & 0x3F));
  82.             out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F))
  83.         } else {
  84.             out += String.fromCharCode(0xC0 | ((c >> 6) & 0x1F));
  85.             out += String.fromCharCode(0x80 | ((c >> 0) & 0x3F))
  86.         }
  87.     }
  88.     return out
  89. }
  90. function utf8to16(str) {
  91.     var out, i, len, c;
  92.     var char2, char3;
  93.     out = "";
  94.     len = str.length;
  95.     i = 0;
  96.     while (i < len) {
  97.         c = str.charCodeAt(i++);
  98.         switch (c >> 4) {
  99.         case 0:
  100.         case 1:
  101.         case 2:
  102.         case 3:
  103.         case 4:
  104.         case 5:
  105.         case 6:
  106.         case 7:
  107.             out += str.charAt(i - 1);
  108.             break;
  109.         case 12:
  110.         case 13:
  111.             char2 = str.charCodeAt(i++);
  112.             out += String.fromCharCode(((c & 0x1F) << 6) | (char2 & 0x3F));
  113.             break;
  114.         case 14:
  115.             char2 = str.charCodeAt(i++);
  116.             char3 = str.charCodeAt(i++);
  117.             out += String.fromCharCode(((c & 0x0F) << 12) | ((char2 & 0x3F) << 6) | ((char3 & 0x3F) << 0));
  118.             break
  119.         }
  120.     }
  121.     return out
  122. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-19 07:59 , Processed in 0.060341 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表