hajas is a JavaScript deobfuscator written in haskell.
Use stack:
stack buildThere's also a nix derivation available, so it should build with:
nix buildOr enter a shell with hajas ready for use:
nix runIf using stack, print usage with
stack exec hajas -- -hUsage: hajas ([-a] | [-l]) [-f FILE] [-r FILE] [-e PASS]
JavaScript deobfuscator
Available options:
-a Print AST
-l List passes
-f FILE Input file. stdin if not given
-r FILE Replacements file
-e PASS Exclude pass
-h,--help Show this help text
language-ecmascriptlibrary fails to parse some valid language features like octal numbers.- Pretty printing is not very pretty.