Skip to content

Commit

Permalink
fix: remove useless decoder expression statements
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Aug 16, 2024
1 parent 65e4c72 commit d12d94a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/webcrack/src/deobfuscate/decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export class Decoder {
if (literalCall.match(ref.parent)) {
calls.push(ref.parentPath as NodePath<t.CallExpression>);
}
} else if (ref.parentPath?.isExpressionStatement()) {
// `decode;` may appear on it's own in some forked obfuscators
ref.parentPath.remove();
}
}

Expand Down

0 comments on commit d12d94a

Please sign in to comment.