2014-09-19 70 views
-1

var _0x2741 = [「\ x69 \ x64」,「\ x63 \ x65 \ x69 \ x6C」,「\ x6C \ x65 \ x76 \ x65 \ x6C」]; var LoyaltyCoefficient = [0,1,4,12,24,0]; var LoyaltyCoefficient1 = [0,1,3,6,12,0]; var LoyaltyCoefficient2 = [0,1,4,12,24,0]; var LoyaltyCoefficient3 = [0,1,4,12,24,0]; var a; var b; var c; var d;函數get_loyality_max(_0xd321xa){a =(20 + Math_0x2741 [1] * 10)* LoyaltyCoefficient [_0xd321xa [ _0x2741 [2]]]; b =(220 + Math_0x2741 [1] * 10)* LoyaltyCoefficient1 [_0xd321xa [_0x2741 [2]]]; C =(15 + Math_0x2741 [1] * 5)* LoyaltyCoefficient2 [_0xd321xa [_0x2741 [ 2]]]; d =(20 + Math_0x2741 [1] * 5)* LoyaltyCoefficient3 [_0xd321xa [_0x2741 [2]]];如果(_0xd321xa [_0x2741 [0]] == 16 || _0xd321xa [_0x2741 [0]] == 17 || _0xd321xa [_0x2741 [0]] == 18){return b;}; if(_0xd321xa [_0x2741 [0]] == 19 || _0xd321xa [_0x2741 [0]] == 20 || _0xd321xa [ _0x2741 [0]] == 21){return c;}; if(_0xd321xa [_0x2741 [0]] == 22 || _0xd321xa [_0x2741 [0]] == 23 || _0xd321xa [_0x2741 [0]] == 24){return d;}; return a;};如何從網站解密此javascript

在此先感謝

+0

請格式化你的代碼,更具體與您的問題。 – 2014-09-19 19:40:05

+0

使用美化工具,例如[jsbeautifier.org](http://jsbeautifier.org)。 – Teemu 2014-09-19 20:33:55

回答

1

可以使用美化如http://jsbeautifier.org/看到一個更好的方法的代碼。您也可以將它粘貼到螢火蟲或谷歌瀏覽器工具中,以評估轉義文字。例如var _0x2741=["\x69\x64","\x63\x65\x69\x6C","\x6C\x65\x76\x65\x6C"];意味着var _0x2741=["id", "ceil", "level"]

0

這是我能做的最好的,因爲我真的不知道什麼是Math_0x2741

var _0x2741 = ["id", "ceil", "level"]; 
var LoyaltyCoefficient = [0, 1, 4, 12, 24, 0]; 
var LoyaltyCoefficient1 = [0, 1, 3, 6, 12, 0]; 
var LoyaltyCoefficient2 = [0, 1, 4, 12, 24, 0]; 
var LoyaltyCoefficient3 = [0, 1, 4, 12, 24, 0]; 
var a; 
var b; 
var c; 
var d; 

function get_loyality_max(input) { 
    a = (20 + Math_0x2741[1] * 10) * LoyaltyCoefficient[input["level"]]; 
    b = (220 + Math_0x2741[1] * 10) * LoyaltyCoefficient1[input["level"]]; 
    c = (15 + Math_0x2741[1] * 5) * LoyaltyCoefficient2[input["level"]]; 
    d = (20 + Math_0x2741[1] * 5) * LoyaltyCoefficient3[input["level"]]; 
    if (input["id"] == 16 || input["id"] == 17 || input["id"] == 18) { 
     return b; 
    }; 
    if (input["id"] == 19 || input["id"] == 20 || input["id"] == 21) { 
     return c; 
    }; 
    if (input["id"] == 22 || input["id"] == 23 || input["id"] == 24) { 
     return d; 
    }; 
    return a; 
};