Skip to content

v2.4.0

Compare
Choose a tag to compare
@relative relative released this 24 Nov 17:31
· 18 commits to master since this release
2.4.0
4807892

new CLI options:

synchrony deobfuscate <file>

Deobfuscate a file

Positionals:
  file  File to deobfuscate (include extension)              [string] [required]

Options:
      --help                             Show help                     [boolean]
      --version                          Show version number           [boolean]
      --rename                           Rename symbols automatically
                                                      [boolean] [default: false]
      --ecma-version, --esversion, --es  Set ECMA version for AST parser (see
                                         acorn docs)[string] [default: "latest"]
  -c, --config                           Supply a custom deobfuscation config
                                         (see docs)                     [string]
  -o, --output                           Where to output deobfuscated file
                                                                        [string]
  -l, --loose                            Enable loose parsing
                                                      [boolean] [default: false]
      --sourceType, --type               Source type for file ('script' or
                                         'module')  [string] [default: "module"]

Example CLI config (JSON, however the CLI will require it, meaning you can use js files and module.exports = {/*config*/})

{
  "rename": true,
  "ecmaVersion": 14,
  "output": "./a.js",
  "loose": true,
  "sourceType": "module",
  "customTransformers": [
    ["Simplify", {}],
    ["jsc-controlflow", {}],
    ["Simplify", {}],

    ["jsc-calculator", {}],
    ["DeadCode", {}],
    ["Simplify", {}]
  ]
}

Full list of commits here:
2.3.0...2.4.0