Fixed: Identifiers deobfuscation - flatten/non-flatten packages handling

This commit is contained in:
Jindra Petřík
2025-07-28 20:50:04 +02:00
parent f650e61775
commit a51492adee
2 changed files with 4 additions and 8 deletions

View File

@@ -671,7 +671,7 @@ public class IdentifiersDeobfuscation {
}
if (Configuration.autoDeobfuscateIdentifiers.get()) {
String ret = IdentifiersDeobfuscation.SAFE_STRING_PREFIX + map.size();
String ret = IdentifiersDeobfuscation.SAFE_STRING_PREFIX + map.size();
map.put(s, ret);
used.add(s);
return ret;

View File

@@ -286,12 +286,7 @@ public class AS3Package extends AS3ClassTreeItem {
* @param subPackage Subpackage
*/
public void addSubPackage(AS3Package subPackage) {
if (subPackage.isDefaultPackage()) {
subPackages.put(DEFAULT_PACKAGE_NAME, subPackage);
} else {
subPackages.put(subPackage.getPrintableNameWithNamespaceSuffix(), subPackage);
}
//subPackages.put(subPackage.getNameWithNamespaceSuffix(), subPackage);
subPackages.put(subPackage.getNameWithNamespaceSuffix(), subPackage);
sortedPackages = null;
}
@@ -394,7 +389,8 @@ public class AS3Package extends AS3ClassTreeItem {
if (flat) {
return packageName;
}
return IdentifiersDeobfuscation.printIdentifier(getSwf(), new LinkedHashSet<>(), true, packageName);
return packageName;
//return IdentifiersDeobfuscation.printIdentifier(getSwf(), new LinkedHashSet<>(), true, packageName);
}
/**