javascript-deobfuscator icon indicating copy to clipboard operation
javascript-deobfuscator copied to clipboard

Array inside array string not working

Open pp0236 opened this issue 4 years ago • 2 comments

var obf = ["aaa", "bbb", ["ccc", "real"]];
console.log(obf[2][1]); // output = real

[Error] Server error! Please check target code and name of target function.

pp0236 avatar Nov 19 '21 07:11 pp0236

Thanks for ur report Can you send the code you tried to deobfuscate with my tool? So I can try to fix the bug with it

LostMyCode avatar Nov 19 '21 14:11 LostMyCode

sorry but it was paid script (trying to minify array obf will look like above) i don't want to risk for my license being terminated

this was my trying to remake the obf algorithm (manually obfuscate)

// real obf code is more shuffle then my, and also have inside inside array too ([[["string"]]])
const F = ["f", "l", ["s", "read", "r"], "di", ["Sync", ".", "/"]]; // real obf code string is encoded
// require("fs")
const G = require(F[-0x5 * -0x53f + 0xdf1 * -0x1 + 0xb * -0x11e] + F[-0x3e2 + -0x1ad3 + 0x1 * 0x1eb7][-0xac + 0xb7b + -0x1 * 0xacf]);

// fs.readdirSync("./")
var A = G[F[0x62 * -0x56 + 0x1272 + 0xe7c][-0x1a95 + -0x17c + 0x1c12] + F[-0x201f * -0x1 + 0x9ce + -0x3a * 0xb9] + F[0x22a * 0x12 + -0x2 * -0x17f + -0x29f0][-0x2 * 0x400 + 0xf8 * -0x1f + 0x9 * 0x43a] + F[-0xf * -0x1c3 + -0x727 + 0xaa * -0x1d][-0x1a65 + 0x2b1 * -0xb + 0x3800]](F[0x13d5 + 0x1bc3 + -0x3c * 0xcb][-0x1 * -0x991 + 0x3 * 0x836 + -0x2232] + F[-0x5 * -0x67a + -0x1 * -0x211f + -0x417d][-0xaf4 + 0x26 * 0xa3 + 0x134 * -0xb]);

// output
console.log("directory file list:");
A.forEach(file => {
	console.log(file);
});

pp0236 avatar Nov 20 '21 11:11 pp0236