diff --git a/src/main.js b/src/main.js index f1b305cd3..112f3c8ba 100644 --- a/src/main.js +++ b/src/main.js @@ -5,6 +5,7 @@ const PluginSojson = require('./plugin/sojson.js') const PluginSojsonV7 = require('./plugin/sojsonv7.js') const PluginObfuscator = require('./plugin/obfuscator.js') const PluginAwsc = require('./plugin/awsc.js') +const PluginObfuscator2 = require('./plugin/obfuscator2.js') // 读取参数 let encodeFile = 'input.js' @@ -29,12 +30,14 @@ let pluginUsed = ''; // 循环尝试不同的插件,直到源代码与处理后的代码不一致 const plugins = [ - { name: 'sojson', plugin: PluginSojson }, + { name: 'obfuscator', plugin: PluginObfuscator2 }, + { name: "ob2", plugin: PluginObfuscator }, { name: 'sojsonv7', plugin: PluginSojsonV7 }, - { name: 'obfuscator', plugin: PluginObfuscator }, + { name: 'sojson', plugin: PluginSojson }, { name: 'awsc', plugin: PluginAwsc }, { name: 'jjencode', plugin: PluginJjencode }, - { name: 'common', plugin: PluginCommon } // 最后一次使用通用插件 + { name: 'common', plugin: PluginCommon },// 最后一次使用通用插件 + ]; for (let plugin of plugins) {