简体   繁体   English

解码Javascript文件

[英]Decoding Javascript File

need to know wich kind of encoded is this: 需要知道哪种编码是这样的:

$(_0x6b88[150])[_0x6b88[149]]();
    $(_0x6b88[154])[_0x6b88[153]](function () {
        $(this)[_0x6b88[151]](_0x6b88[14]);
    })[_0x6b88[152]](function () {
        $(this)[_0x6b88[151]](_0x6b88[12]);
});

I had encoded my js code some months ago and now I dont know where I saved the beautified version. 几个月前,我已经对js代码进行了编码,现在我不知道保存美化版本的位置。

Can anyone help me? 谁能帮我? How can I decode this? 我该如何解码? It look like Hexadecimal or something (_0x6b88[14]) but the rect [] looks very strange too me. 它看起来像十六进制之类的东西(_0x6b88 [14]),但是rect []对我来说也很奇怪。

Thanks. 谢谢。

0x6b88 is a number in hexadecimal. 0x6b88是十六进制数字。 so _0x6b88 is like writing _27528, or myinteger. 因此_0x6b88就像写_27528或myinteger。 It is a variable name, the name doesn't really matter. 它是一个变量名,这个名称并不重要。

(_27528 is a different variable to _0x6b88, though) (不过,_27528与_0x6b88是不同的变量)

It looks like an array, so lets replace it with alist to make it easier to understand: 它看起来像一个数组,所以让我们用alist替换它以使其更易于理解:

$(alist[150])[alist[149]](); // runs an element with id alist[149]

$(alist[154])[alist[153]](  // runs an element and gives it a function
    function () {
        $(this)[alist[151]](alist[14]);
    }
)
[alist[152]](   // gets an element from what ever is returned by the function
    function () {    // Passes a function to the element gotten
       $(this)[alist[151]](alist8[12]);
    }
);

alist[0] is the first element in the array. alist [0]是数组中的第一个元素。 Inorder to work out what this does, you need to know what is in the cells of those arrays. 为了弄清楚它的作用,您需要知道这些数组的单元格中的内容。

It is probably best to rewrite your code; 最好重写代码。 it will be easier that way. 这样会更容易。 It has been obfuscated, so you'll have a hard time working it out. 它已被混淆,因此您将很难解决它。

You probably won't be able to get the original variables names, although that depends on the software you used for obfuscating the code. 您可能将无法获得原始变量名称,尽管这取决于您用来混淆代码的软件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM