#12 defaultuser6 拉满了
let options = {
compact: true,
controlFlowFlattening: true, // 启用控制流扁平化
controlFlowFlatteningThreshold: 1, // 设置为 1 以确保所有控制流都被扁平化
deadCodeInjection: true, // 启用死代码注入
deadCodeInjectionThreshold: 1, // 设置为 1 以确保注入的死代码数量最大化
debugProtection: true, // 启用调试保护
debugProtectionInterval: 1000, // 设置调试保护的时间间隔
disableConsoleOutput: true, // 禁用控制台输出
domainLock: [], // 如果需要,可以添加域名锁定
domainLockRedirectUrl: 'about:blank',
forceTransformStrings: [], // 如果需要,可以强制转换特定字符串
identifierNamesCache: null,
identifierNamesGenerator: 'hexadecimal', // 使用十六进制生成标识符
identifiersDictionary: [],
identifiersPrefix: '',
ignoreImports: false,
inputFileName: '',
log: false,
numbersToExpressions: true, // 将数字转换为表达式
optionsPreset: 'high-obfuscation', // 使用最大混淆选项
renameGlobals: true, // 重命名全局变量
renameProperties: true, // 重命名对象属性
renamePropertiesMode: 'safe', // 安全重命名模式
reservedNames: [],
reservedStrings: [],
seed: Math.floor(Math.random() * 1000), // 随机种子
selfDefending: true, // 启用自我防御
simplify: true,
sourceMap: false,
sourceMapBaseUrl: '',
sourceMapFileName: '',
sourceMapMode: 'separate',
sourceMapSourcesMode: 'sources-content',
splitStrings: true, // 启用字符串拆分
splitStringsChunkLength: 10,
stringArray: true, // 启用字符串数组
stringArrayCallsTransform: true,
stringArrayCallsTransformThreshold: 0.5,
stringArrayEncoding: ['rc4'], // 使用 RC4 编码
stringArrayIndexesType: ['hexadecimal-number'],
stringArrayIndexShift: true,
stringArrayRotate: true,
stringArrayShuffle: true,
stringArrayWrappersCount: 3, // 增加包装器数量
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 3, // 增加包装器参数数量
stringArrayWrappersType: 'variable',
stringArrayThreshold: 0.75,
target: 'browser',
transformObjectKeys: true, // 启用对象键转换
unicodeEscapeSequence: false // 不启用 Unicode 转义序列,要不然太长
}
不过还是不够,再塞点控制字符进去就好了