A simple NodeJS program that obfuscates HTML and Javascript and minifies/uglifies CSS. Originally written for use with Just Cause 3 Multiplayer. It recursively iterates through directories and modifies files in the client_package directory. It uses Javascript Obfuscator, Clean CSS, and an HTML source code obfuscator. After obfuscation, it takes any files in a /ui/
directory and puts them in ObfuscatedUI
.
- Install the required node modules using
npm install
. - Create directories
ToObfuscate
,Obfuscated
, andObfuscatedUI
in the same directory as the program.
- Copy your files to
ToObfuscate
. It should look likeToObfuscate/mypackage/client_package/...
. - Run the auto obfuscator using
node obfuscator.js
. - The program should tell you what files were obfuscated.