Reputation: 79
I'd like to ask if you've ever seen something like the following code.
var _0x655fx23 = _0x655fx2[_0x34ea[0]] > 8 ? 3 : 1;
var _0x655fx10 = new Array(32 * _0x655fx23);
var _0x655fx25 = new Array(0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0);
var _0x655fx26, _0x655fx27, _0x655fx11 = 0,
_0x655fx28 = 0,
_0x655fx14;
All I know of this is that it's supposed to be JavaScript. First I tried to convert all hex chars to ascii, but the result was nonsense (not to mention I have 200+ lines of this).
After some reading I came across a possible solution: de-obfuscation, but that didn't work either. Might you happen to have any experience "decoding" such codes? I already tried a number of online tools to recover as much of the code as possible, but without any luck, unfortunately.
Upvotes: 2
Views: 750
Reputation: 324
There is no sorcery, just the context of the code is hidden because it has been converted to hex. The same way you could rename these as variable1, variable2, variable3 but the purpose of them is still obfuscated. I imagine it could be achieved with tools like grunt, similarly to minifying your code.
Upvotes: 3