mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fixed several obfuscations
This commit is contained in:
1 parent
97a68156e0
commit
2b87a0c772
3 files changed
+2565
-2593
No files matched your search
@@ -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
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user