diff --git a/.github/workflows/obfuscate.yml b/.github/workflows/obfuscate.yml index 17951db..a0abda5 100644 --- a/.github/workflows/obfuscate.yml +++ b/.github/workflows/obfuscate.yml @@ -5,6 +5,7 @@ on: branches: ["master"] paths: - "js/src/*" + workflow_dispatch: permissions: contents: write @@ -29,8 +30,9 @@ jobs: if [ ! -z "${{ secrets.XXTEA_KEY }}" ]; then sed -i "s/20221209/"${{ secrets.XXTEA_KEY }}"/" ./commands.js fi - uglifyjs ./terminal.js ./boot.js ./crypto.js ./system.js ./filesystem.js ./commands.js -c -o ./output.js - javascript-obfuscator ./output.js -o ../bundle.min.js --options-preset high-obfuscation + uglifyjs ./terminal.js ./boot.js ./crypto.js ./system.js ./filesystem.js ./commands.js ./init.js -c -o ./output.js + javascript-obfuscator ./output.js -o ../bundle.min.js --options-preset high-obfuscation --control-flow-flattening=true --debug-protection=true --debug-protection-interval=1000 --disable-console-output=true --domain-lock=exam.kernelsu.org --force-transform-strings=You,have,successfully,completed,exam,The,Group,Pass,word,pwd,fastboot --identifier-names-generator=dictionary --identifiers-dictionary=You,have,successfully,completed,exam,The,Group,Pass,word,pwd,decrypt,fastboot --numbers-to-expressions=true --rename-globals=true --self-defending=true --split-strings-chunk-length=4 --split-strings=true --string-array-calls-transform=true --string-array-encoding=base64,rc4 --string-array-index-shift=true --string-array-shuffle=true --string-array=true --string-array-wrappers-chained-calls=true --transform-object-keys=true --unicode-escape-sequence=true + uglifyjs ./bundle.min.js -e -o ./bundle.min.js rm ./output.js if [ ! -z "${{ secrets.XXTEA_KEY }}" ]; then sed -i "s/"${{ secrets.XXTEA_KEY }}"/20221209/" ./commands.js diff --git a/index.html b/index.html index e4dd43a..b3396a0 100644 --- a/index.html +++ b/index.html @@ -54,15 +54,6 @@