Skip to content
forked from pionxzh/wakaru

πŸ”ͺπŸ“¦ Reverse-engineer bundled JavaScript code and bring it back to a human-friendly format.

License

Notifications You must be signed in to change notification settings

kiangkuang/wakaru

Β 
Β 

Repository files navigation

Wakaru

deploy

Wakaru is the Javascript decompiler for modern frontend. It brings back the original code from a bundled and transpiled source.

  • πŸ”ͺπŸ“¦ Unpacks bundled JavaScript into separated modules from webpack and browserify.
  • β›οΈπŸ“œ Unminifies transpiled code from Terser, Babel, SWC, and TypeScript.
  • βœ¨πŸ“š Detects and restores downgraded syntaxes (even with helpers!). See the list.
  • πŸ§ͺπŸ›‘οΈ All cases are protected by tests. All code is written in TypeScript.

Demo

See live demo for detailed examples.

Features

Unminify

Converts transpiled code back to its readable form and restores downgraded syntaxes.

Supports the following transpilers:

See Unminify Documentation for the full list of supported rules.

Unpacker

Converts bundled JavaScript into separated modules

Supports the following bundlers:

Try it out

Test the tool and see it in action at Playground.

πŸ–₯ Command Line Interface

🚧🚧🚧 Under construction.

Motivation

Over the course of developing plugins for io games, the need to understand game logic behind minified code became a recurring challenge. Existing tools often failed to produce readable code, and were often limited to a single bundler or transpiler. This repo was created to address these issues, and provide a single tool capable of handling a wide variety of bundlers and transpilers.

Legal Disclaimer

Usage of wakaru for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.

License

MIT

About

πŸ”ͺπŸ“¦ Reverse-engineer bundled JavaScript code and bring it back to a human-friendly format.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.9%
  • Vue 5.3%
  • Other 1.8%