@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
15 lines • 652 B
JavaScript
// Import Internal Dependencies
import { Deobfuscator } from "../Deobfuscator.js";
export function verify(deobfuscator, counters) {
if ((counters.MemberExpression?.false ?? 0) > 0 ||
!counters.DoubleUnaryExpression) {
return false;
}
const hasSomePatterns = counters.DoubleUnaryExpression > 0
|| deobfuscator.deepBinaryExpression > 0
|| deobfuscator.encodedArrayValue > 0
|| deobfuscator.hasDictionaryString;
// TODO: hasPrefixedIdentifiers only work for hexadecimal id names generator
return deobfuscator.hasPrefixedIdentifiers && hasSomePatterns;
}
//# sourceMappingURL=obfuscator-io.js.map