Skip to content

pomsaddons/JSBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSBox - JavaScript Obfuscator

A simple JavaScript obfuscator built with Node.js.

Features

  • Identifier Renaming: Renames variables and functions to short, meaningless names.
  • String Encryption: Encodes string literals to hex escape sequences.
  • Multi-Pass Obfuscation: Run obfuscation multiple times for added security.
  • Auto-Minimization: Automatically minimizes the output code.
  • Web UI: A Next.js based web interface for easy obfuscation.

Installation

npm install
# For Web UI
cd web
npm install

Usage

CLI

node src/index.js <input-file> [options]

Options

  • -o, --output <file>: Output file path.
  • -n, --passes <number>: Number of obfuscation passes (1-4).
  • --no-minify: Disable auto-minimization.
  • --anti-debug: Enable anti-debugging protections.
  • --key <licenseKey>: Protect the script with a Key System.
  • --webhook <url>: Enable Discord Webhook logging.
  • --lock-domain <domains>: Comma-separated list of domains to lock the script to.
  • --self-defending: Enable self-defending mechanism (anti-tamper).
  • --control-flow-flattening: Enable control flow flattening (makes code structure harder to read).
  • --extreme: Enable Extreme Mode (high passes, massive junk injection).
  • --iife: Wrap code in an IIFE to prevent global scope pollution (Console friendly).

Example

node src/index.js test.js -o obfuscated.js -n 10 --key SECRET-123 --control-flow-flattening --extreme --iife

Web UI

cd web
npm run dev

Open http://localhost:3000 in your browser.

Development

  • Run Obfuscator: Use the "Obfuscate Current File" task in VS Code.
  • Debug: Use the "Debug Obfuscator" launch configuration.
  • Test: Run node src/index.js UnifiedJS.js -o UnifiedJS.obfuscated.js to test with the comprehensive test file.

About

A JS obfuscator with several features to protect code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published