Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array inside array string not working #31

Open
pp0236 opened this issue Nov 19, 2021 · 2 comments
Open

Array inside array string not working #31

pp0236 opened this issue Nov 19, 2021 · 2 comments

Comments

@pp0236
Copy link

pp0236 commented Nov 19, 2021

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.

@LostMyCode
Copy link
Owner

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

@pp0236
Copy link
Author

pp0236 commented Nov 20, 2021

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);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants