ben-sb / obfuscator-io-deobfuscator

A deobfuscator for scripts obfuscated by Obfuscator.io
https://obf-io.deobfuscate.io
Apache License 2.0
275 stars 61 forks source link

bug: wrong parsing dict with many simple assignments #4

Closed ultranity closed 10 months ago

ultranity commented 10 months ago

module: ObjectPacker

for now there is no further check if node.expression.right is also a (or even chained) assignments

example:

let a = {};
a[1] = a[2] =a[3] = 1;

current transform result:

a = {
1: a[2] =a[3] = 1;
}

leads to missing properties a={1:1}

expected:

a = {
1:  1;
2:  1;
3:  1;
}