-
Notifications
You must be signed in to change notification settings - Fork 61
Exclusions
Louis edited this page Aug 9, 2022
·
4 revisions
Understanding exclusions might be tricky at first, but trust me, it is quite easy once you get the hang of it. First and foremost, it's important to understand basic regex.
- Here's a basic string to match everything:
(.*?)
So the following would happen:
abozeofez // Matches!
zeigzoegze // Matches!
- To match any string which contains "roar", you'd have
roar
So the following would happen:
roar // Matches!
asdafroar // Matches!
grrr // No match!
To match any string which begins with "uwu", you'd have:
^uwu
So the following would happen:
kitty-uwu // Matches!
uwu-kitty // No match!
If you'd like to read more about Regex, find out here: Regex tutorial
Now, you'll want to create an exclusion file, and here you'll be able to mess around:
method{main} // This will match any method with the name "main"
class{^com\/apache} // This will match any method which starts with "com.apache" (any class name replaces the "." with "/"
For example, if you want to only obfuscate the content of the com.example package you can use this:
class{^(?!(com\/example)).*$}