Webcrack
Deobfuscate obfuscator.io, unminify and unpack bundled javascript
Install / Use
/learn @j4k0xb/WebcrackREADME
<p align="center">
<img src="https://user-images.githubusercontent.com/55899582/231488871-e83fb827-1b25-4ec9-a326-b14244677e87.png" width="200">
</p>
<h1 align="center">webcrack</h1>
webcrack is a tool for reverse engineering javascript. It can deobfuscate obfuscator.io, unminify, transpile, and unpack webpack/browserify, to resemble the original source code as much as possible.
Try it in the online playground or view the documentation.
- 🚀 Performance - Various optimizations to make it fast
- 🛡️ Safety - Considers variable references and scope
- 🔬 Auto-detection - Finds code patterns without needing a config
- ✍🏻 Readability - Removes obfuscator/bundler artifacts
- ⌨️ TypeScript - All code is written in TypeScript
- 🧪 Tests - To make sure nothing breaks
Requirements
Node.js 22 or 24.
Command Line Interface
npm install -g webcrack
Examples:
webcrack input.js
webcrack input.js > output.js
webcrack bundle.js -o output-dir
API
npm install webcrack
Examples:
import fs from 'fs';
import { webcrack } from 'webcrack';
const input = fs.readFileSync('bundle.js', 'utf8');
const result = await webcrack(input);
console.log(result.code);
console.log(result.bundle);
await result.save('output-dir');
