🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

js-confuser

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-confuser - npm Package Versions

2345

2.0.0

Diff
michaelxf
published 2.0.0 •
michaelxf
published 2.0.0-alpha.5 •
michaelxf
published 2.0.0-alpha.4 •
michaelxf
published 2.0.0-alpha.3 •
michaelxf
published 2.0.0-alpha.2 •
michaelxf
published 2.0.0-alpha.1 •
michaelxf
published 2.0.0-alpha.0 •
michaelxf
published 1.7.3 •

Changelog

Source

1.7.3

Tamper Protection

Tamper Protection

Tamper Protection safeguards the runtime behavior from being altered by JavaScript pitfalls.

Learn more here.

  • Rename Variables improvements:

  • A new exposed function, __JS_CONFUSER_VAR__, can be used to access renamed variables. Learn more here.

// Input
var name = "John Doe";
eval("console.log(" + __JS_CONFUSER_VAR__(name) + ")");

// Output
var CA1HU0 = 'John Doe';
eval('console.log(' + 'CA1HU0' + ')');
  • Improved the Zero Width identifier generator (Thanks @doctor8296!)

  • Pad the String Concealing array with more fake strings

  • Improve String Compression

  • New Web UI sneak peak: https://js-confuser.com/

michaelxf
published 1.7.2 •

Changelog

Source

1.7.2

Updates

  • Anti Tooling & Expression Obfuscation improvements

  • String Concealing improvements

    • Randomizes the charset for each obfuscation
    • Place multiple decryption functions throughout the code
  • Moved Declarations improvements

    • Now moves some variables as unused parameters on certain functions
  • RGF improvements

    • More likely to transform functions containing functions
  • Fixed #96

    • Removed hardcoded limits on String Concealing, String Compression, and Duplicate Literals Removal
  • Fixed #106

    • Final fix with const variables for Object Extraction
  • Fixed #131

    • __dirname is no longer changed by Global Concealing

New Option

preserveFunctionLength

  • Modified functions will retain the correct function.length property. (true/false) Enabled by default.

Minor improvements

  • Preserve function.length
  • Preserve Strict Mode behaviors
  • Preserve indirect vs. direct eval use
michaelxf
published 1.7.1 •

Changelog

Source

1.7.1

Updates

  • Fixed #107

    • RGF and Integrity clash issue fixed
  • Fixed #106

    • Object Extraction to properly handle const objects
  • Fixed #105

    • Duplicate Literals Removal updated to not cause this error
  • Fixed #103

    • Dispatcher will no longer apply to these types of functions to prevent this error
  • Added documentation page for ES5

  • Rollup Plugin created: https://github.com/ayecue/rollup-js-confuser (Thanks @ayecue !)