Skip to content

Commit 1eda5e7

Browse files
committed
Updated For Plugin API Changes
This will make it easier on the user to inform them which file the class resources are in
1 parent fc68fde commit 1eda5e7

15 files changed

Lines changed: 28 additions & 19 deletions

plugins/example/ExampleStringDecrypter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ExampleStringDecrypter extends Plugin {
1515

1616
@Override
1717
public void execute(ArrayList<ClassNode> classNodesList) {
18-
PluginConsole gui = new PluginConsole("Example String Decrypter");
18+
PluginConsole gui = new PluginConsole(activeContainer.name + "Example String Decrypter");
1919

2020
MultipleChoiceDialogue dialogue = new MultipleChoiceDialogue("Bytecode Viewer - WARNING",
2121
"WARNING: This will load the classes into the JVM and execute the initialize function"

src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public String decompileClassNode(final ClassNode cn, byte[] b)
7070
String start = tempDirectory + fs + MiscUtils.getUniqueName("", ".class");
7171

7272
final File tempClass = new File(start + ".class");
73-
73+
7474
String exception = "";
7575
try {
7676
final FileOutputStream fos = new FileOutputStream(tempClass);

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
public class AllatoriStringDecrypter extends Plugin
4747
{
48-
final PluginConsole frame = new PluginConsole("Allatori String Decrypter");
4948
final StringBuilder out = new StringBuilder();
5049
final String className;
5150

@@ -54,6 +53,8 @@ public class AllatoriStringDecrypter extends Plugin
5453
@Override
5554
public void execute(ArrayList<ClassNode> classNodeList)
5655
{
56+
PluginConsole frame = new PluginConsole(activeContainer.name + " - Allatori String Decrypter");
57+
5758
MultipleChoiceDialogue dialogue = new MultipleChoiceDialogue("Bytecode Viewer - WARNING",
5859
"WARNING: This will load the classes into the JVM and execute the allatori decrypter function"
5960
+ nl + "for each class. IF THE FILE YOU'RE LOADING IS MALICIOUS, DO NOT CONTINUE.",

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public class EZInjection extends Plugin
5151
{
5252
public static ArrayList<BytecodeHook> hookArray = new ArrayList<>();
5353
private static final String version = "1.0";
54-
private static final PluginConsole gui = new PluginConsole("EZ Injection v" + version);
5554
private final boolean accessModifiers;
5655
private final boolean injectHooks;
5756
private final boolean invokeMethod;
@@ -140,7 +139,7 @@ public static void print(String message)
140139
@Override
141140
public void execute(ArrayList<ClassNode> classNodeList)
142141
{
143-
BytecodeViewer.updateBusyStatus(true);
142+
PluginConsole gui = new PluginConsole(activeContainer.name + " - EZ Injection v" + version);
144143

145144
gui.setText("");
146145

@@ -328,7 +327,5 @@ else if (injectHooks)
328327
}
329328
}
330329
}
331-
332-
BytecodeViewer.updateBusyStatus(false);
333330
}
334331
}

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public MaliciousCodeScanner(List<MaliciousCodeOptions> options)
5151
@Override
5252
public void execute(ArrayList<ClassNode> classNodeList)
5353
{
54-
PluginConsole frame = new PluginConsole("Malicious Code Scanner");
54+
PluginConsole frame = new PluginConsole(activeContainer.name + " - Malicious Code Scanner");
5555
StringBuilder sb = new StringBuilder();
5656

5757
HashSet<String> scanOptions = new HashSet<>();

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
public class ReplaceStrings extends Plugin
3838
{
39-
PluginConsole frame = new PluginConsole("Replace Strings");
39+
PluginConsole frame;
4040
String originalLDC;
4141
String newLDC;
4242
String className;
@@ -53,6 +53,8 @@ public ReplaceStrings(String originalLDC, String newLDC, String className, boole
5353
@Override
5454
public void execute(ArrayList<ClassNode> classNodeList)
5555
{
56+
frame = new PluginConsole(activeContainer.name + " - Replace Strings");
57+
5658
if (!className.equals("*"))
5759
{
5860
for (ClassNode classNode : classNodeList)

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class ShowAllStrings extends Plugin
4444
@Override
4545
public void execute(ArrayList<ClassNode> classNodeList)
4646
{
47-
PluginConsole frame = new PluginConsole("Show All Strings");
47+
PluginConsole frame = new PluginConsole(activeContainer.name + " - Show All Strings");
4848
StringBuilder sb = new StringBuilder();
4949

5050
for (ClassNode classNode : classNodeList)

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class ShowMainMethods extends Plugin
3939
@Override
4040
public void execute(ArrayList<ClassNode> classNodeList)
4141
{
42-
PluginConsole frame = new PluginConsole("Show Main Methods");
42+
PluginConsole frame = new PluginConsole(activeContainer.name + " - Show Main Methods");
4343
StringBuilder sb = new StringBuilder();
4444

4545
for (ClassNode classNode : classNodeList)

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/StackFramesRemover.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class StackFramesRemover extends Plugin
1515
public void execute(ArrayList<ClassNode> classNodeList)
1616
{
1717
AtomicInteger counter = new AtomicInteger();
18-
PluginConsole frame = new PluginConsole("StackFrames Remover");
18+
PluginConsole frame = new PluginConsole(activeContainer.name + " - StackFrames Remover");
1919
for (ClassNode cn : classNodeList)
2020
{
2121
for (MethodNode mn : cn.methods)

src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewAPKAndroidPermissions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class ViewAPKAndroidPermissions extends Plugin
1717
@Override
1818
public void execute(ArrayList<ClassNode> classNodeList)
1919
{
20-
PluginConsole frame = new PluginConsole("Android Permissions");
20+
PluginConsole frame = new PluginConsole(activeContainer.name + " - Android Permissions");
2121
frame.setVisible(true);
2222

2323
byte[] encodedAndroidManifest = BytecodeViewer.getFileContents("AndroidManifest.xml");

0 commit comments

Comments
 (0)