-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jar checking, crasher & updated version
added file type checking removed procyon crasher added by @ElijahBare as it wasn't what causes procyon to fail to decompile methods, still don't know what causes the issue but procyon can't decompile methods added by the string encryption transformer updated readme updated version (1.4.1)
- Loading branch information
1 parent
6eab7f8
commit b932746
Showing
8 changed files
with
39 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ plugins { | |
} | ||
|
||
group 'me.iris' | ||
version '1.4.0' | ||
version '1.4.1' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 9 additions & 41 deletions
50
src/main/java/me/iris/ambien/obfuscator/asm/CompetentClassWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,26 @@ | ||
package me.iris.ambien.obfuscator.asm; | ||
|
||
import me.iris.ambien.obfuscator.Ambien; | ||
import org.objectweb.asm.ClassWriter; | ||
|
||
public class CompetentClassWriter extends ClassWriter { | ||
private static final String OBJECT = "java/lang/Object"; | ||
|
||
public CompetentClassWriter(int flags) { | ||
public CompetentClassWriter(final int flags) { | ||
super(flags); | ||
} | ||
|
||
@Override | ||
protected String getCommonSuperClass(final String type1, final String type2) { | ||
// Debugging | ||
Ambien.LOGGER.debug("{}-{}", type1, type2); | ||
|
||
|
||
|
||
|
||
|
||
// uhhhh | ||
// First try to get the common super class via class loader | ||
return super.getCommonSuperClass(type1, type2); | ||
} | ||
|
||
/*ClassLoader classLoader = getClassLoader(); | ||
Class<?> class1; | ||
try { | ||
class1 = Class.forName(type1.replace('/', '.'), false, classLoader); | ||
} catch (ClassNotFoundException e) { | ||
throw new TypeNotPresentException(type1, e); | ||
} | ||
Class<?> class2; | ||
try { | ||
class2 = Class.forName(type2.replace('/', '.'), false, classLoader); | ||
} catch (ClassNotFoundException e) { | ||
throw new TypeNotPresentException(type2, e); | ||
/*private ClassNode getNodeFromName(final String path) { | ||
for (ClassWrapper wrapper : classes) { | ||
if (wrapper.getName().equals(path)) | ||
return wrapper.getNode(); | ||
} | ||
if (class1.isAssignableFrom(class2)) | ||
return type1; | ||
if (class2.isAssignableFrom(class1)) | ||
return type2; | ||
if (class1.isInterface() || class2.isInterface()) { | ||
return "java/lang/Object"; | ||
} else { | ||
do { | ||
class1 = class1.getSuperclass(); | ||
} while (!class1.isAssignableFrom(class2)); | ||
return class1.getName().replace('.', '/'); | ||
}*/ | ||
} | ||
|
||
private String getCommonSuperName(final String type1, final String type2) { | ||
return ""; | ||
} | ||
return null; | ||
}*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": "1.3.1", | ||
"version": "1.4.1", | ||
"classifier": "beta" | ||
} |