-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathConfig.js
116 lines (99 loc) · 3.2 KB
/
Config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
* Mosey is a free and open source java bytecode obfuscator.
* Copyright (C) 2020 Hippo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Set input path to jar
var input = "jars/SupremeCommons.jar";
// Set export path
var output = "jars/SupremeCommons-obf.jar";
// Leave empty if you have JAVA_HOME environment variable set, if not then manually set it to rt.jar
var runtime = "detect";
// Select a dictionary
/**
* Dictionary Types:
* - AlphaNumeric (a-Z | 0-9)
*/
var dictionary = "AlphaNumeric";
// Weather to inline JSR instructions, if you don't know what that is just leave it be
var inlineJSR = true
// Weather to log information about loading/exporting libraries
var logLibraries = false
//Select a list of transformers
/**
* Note: Visit the transformer class itself to get more information about a specific transformer.
* Transformers:
* - BadAnnotation
* - SyntheticBridge (hides code)
* - ReverseJump
* - FakeTryCatches
* - FakeJump
* - ConfusingSwitch
* - JumpRange
* - ClassEntryHider (hides class zip entries)
* - BadAttribute
* - StringEncryption
*/
var transformers = [
"BadAnnotation", "StringEncryption"
];
// Add the path to all the library jars your jar depends on
var libraries = [
];
// Add any classes you would like to exclude (not obfuscate), note that this is case sensitive
// Adding "org" here would exclude any class beginning with "org" (including package names, eg org.someone.lib.LibClass)
var exclude = [
"me/savag3/commons/supreme/auth",
"me/savag3/commons/support/impl",
"me/savag3/commons/XMaterial",
"me/savag3/commons/shade/com/sun",
"me/savag3/commons/shade/javaassist",
"me/savag3/commons/shade/oshi",
"me/savag3/commons/shade/com/google/gson",
"me/savag3/commons/gson",
"me/savag3/commons/external"
]
// To include everything (subtracted by excludes) leave this array empty
// If you only want to obfuscate specific classes add them here
// Exclusion dominates inclusion
var include = [
]
var FakeTryCatches = {
// The chance it will wrap around an instruction
chance: 80
};
var FakeJump = {
// The chance it will insert a jump
chance: 90
};
var ConfusingSwitch = {
// If it will confuse constants
constants: true,
// The chance the switch will be inserted
chance: 80
}
var BadAttribute = {
// If to use bad annotation default attributes
annotation: true,
// If to use bad code attributes
code: true,
// If to use bad module attributes
module: true,
// If to use bad nest host attributes
nest: true
}
var StringEncryption = {
intensity: "light"
}