Skip to content

About

VS Code extension for Defuscator: statically deobfuscate JavaScript in the editor. Unpacks obfuscator.io string arrays, P.A.C.K.E.R., JSFuck and source maps. Never executes the analysed code.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Defuscator for VS Code

Statically deobfuscate JavaScript without leaving the editor. The analysed code is never executed.

Commands

Command What it does
Defuscator: Deobfuscate File Opens the decoded, beautified source in a side editor
Defuscator: Deobfuscate Selection Same, for just the selection — handy for one packed blob inside a larger file
Defuscator: Analyze File Reports both scores, the obfuscator family, findings and indicators

Deobfuscate is also on the editor context menu for JavaScript, TypeScript and HTML files.

What it takes apart

obfuscator.io string arrays with rotation, base64 and RC4 encodings, wrappers and every identifier style; Dean Edwards P.A.C.K.E.R.; JSFuck, JJEncode and AAEncode; hex and unicode escapes; control-flow flattening; proxy objects; and inline source maps.

Two scores, and why they differ

  • Obfuscation — how hard the code is trying not to be read, measured on the original source.
  • Capability risk — what it would do if it ran, measured on the decoded output.

They answer different questions. A low risk score on a heavily obfuscated file can mean not resolved yet rather than safe, which is why both are shown.

Requirements

None up front. The extension looks for the CLI in this order:

  1. The defuscator.cliPath setting, if you set it
  2. defuscator on your PATH — npm install -g defuscator
  3. npx, fetching a prebuilt binary on first use

A global install is worth it if you use this often; the first npx call pays for a download.

Settings

Setting Default Description
defuscator.cliPath "" Path to a defuscator binary. Overrides discovery.
defuscator.version 1.0.0 Version fetched via npx. Pinned so runs are reproducible.

Links

MIT licensed.

About

VS Code extension for Defuscator: statically deobfuscate JavaScript in the editor. Unpacks obfuscator.io string arrays, P.A.C.K.E.R., JSFuck and source maps. Never executes the analysed code.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages