https://github.com/j4k0xb/webcrack
Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://github.com/j4k0xb/webcrack
ast browserify bundle debundle deobfuscation deobfuscator extract javascript javascript-obfuscator reverse-engineering unminify unpack webpack
Last synced: 15 days ago
JSON representation
Deobfuscate obfuscator.io, unminify and unpack bundled javascript
- Host: GitHub
- URL: https://github.com/j4k0xb/webcrack
- Owner: j4k0xb
- License: mit
- Created: 2023-01-30T22:04:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T02:37:18.000Z (6 months ago)
- Last Synced: 2024-10-24T13:55:30.821Z (6 months ago)
- Topics: ast, browserify, bundle, debundle, deobfuscation, deobfuscator, extract, javascript, javascript-obfuscator, reverse-engineering, unminify, unpack, webpack
- Language: TypeScript
- Homepage: https://webcrack.netlify.app
- Size: 1.39 MB
- Stars: 921
- Watchers: 16
- Forks: 104
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/j4k0xb/webcrack/actions/workflows/test.yml)
[](https://www.npmjs.com/package/webcrack)
[](https://github.com/j4k0xb/webcrack/blob/master/LICENSE)
[](https://app.netlify.com/sites/webcrack/deploys)
![]()
webcrack
webcrack is a tool for reverse engineering javascript.
It can deobfuscate [obfuscator.io](https://github.com/javascript-obfuscator/javascript-obfuscator), unminify,
transpile, and unpack [webpack](https://webpack.js.org/)/[browserify](https://browserify.org/),
to resemble the original source code as much as possible.Try it in the [online playground](https://webcrack.netlify.app/) or view the [documentation](https://webcrack.netlify.app/docs).
- ๐ **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## Command Line Interface
```bash
npm install -g webcrack
```Examples:
```bash
webcrack input.js
webcrack input.js > output.js
webcrack bundle.js -o output-dir
```## API
```bash
npm install webcrack
```Examples:
```js
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');
```