Fixed several obfuscations

This commit is contained in:
SuspiciousActivity committed 2018-07-02 16:48:32 +02:00
1 parent 97a68156e0
commit 2b87a0c772
3 files changed
+2565 -2593

No files matched your search

+8 -8
View File
@@ -516,14 +516,14 @@ URL = (((https?|f(tp|ile))"://"|"www.")({URLCharacters}{URLEndCharacter})?)
"return" { addToken(Token.RESERVED_WORD_2); }
/* Data types. */
"boolean" |
"byte" |
"char" |
"double" |
"float" |
"int" |
"long" |
"short" { addToken(Token.DATA_TYPE); }
"Z" |
"B" |
"C" |
"D" |
"F" |
"I" |
"J" |
"S" { addToken(Token.DATA_TYPE); }
/* Booleans. */
{BooleanLiteral} { addToken(Token.LITERAL_BOOLEAN); }
File diff suppressed because it is too large. Load diff
+4 -2
View File
@@ -377,7 +377,7 @@ public class Main extends JFrame {
fileChooser.setFileSelectionMode(0);
fileChooser.setAcceptAllFileFilterUsed(false);
fileChooser.addChoosableFileFilter(new FileNameExtensionFilter("Jar File", "jar"));
final int action = fileChooser.showOpenDialog(Main.this);
final int action = fileChooser.showSaveDialog(Main.this);
if (action == 0) {
final File file = fileChooser.getSelectedFile();
if (file.exists()) {
@@ -447,7 +447,6 @@ public class Main extends JFrame {
super(new DefaultMutableTreeNode(jar.getName().split(File.separator.equals("\\") ? "\\\\"
: File.separator)[jar.getName().split(File.separator.equals("\\") ? "\\\\" : File.separator).length
- 1]));
try {
ArrayList<String> paths = new ArrayList<>();
classNodes.clear();
@@ -461,6 +460,9 @@ public class Main extends JFrame {
? (!next.getName().split("/")[next.getName().split("/").length - 1].contains("$"))
: (!next.getName().contains("$"))) {
paths.add(next.getName());
} else if (next.getName().startsWith("$") || next.getName().contains("$$")
|| next.getName().endsWith("$")) { // obfuscated with $
paths.add(next.getName());
}
ClassReader reader;
try {