Plugin API Update

With the plugin manager tab changes  the plugin console no longer needs the active resource container name. It only needs the plugin name
This commit is contained in:
Konloch 2021-07-23 15:50:18 -07:00
parent 10df99c750
commit 84c1834ada
13 changed files with 13 additions and 13 deletions

View file

@ -15,7 +15,7 @@ public class ExampleStringDecrypter extends Plugin {
@Override
public void execute(ArrayList<ClassNode> classNodesList) {
PluginConsole gui = new PluginConsole(activeContainer.name + " - Example String Decrypter");
PluginConsole gui = new PluginConsole("Example String Decrypter");
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
"WARNING: This will load the classes into the JVM and execute the initialize function"

View file

@ -53,7 +53,7 @@ public class AllatoriStringDecrypter extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - Allatori String Decrypter");
PluginConsole frame = new PluginConsole("Allatori String Decrypter");
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
"WARNING: This will load the classes into the JVM and execute the allatori decrypter function"

View file

@ -140,7 +140,7 @@ public class EZInjection extends Plugin
public void execute(ArrayList<ClassNode> classNodeList)
{
if(console)
new PluginConsole(activeContainer.name + " - EZ Injection v" + version);
new PluginConsole("EZ Injection v" + version);
if (accessModifiers)
print("Setting all of the access modifiers to public/public static.");

View file

@ -51,7 +51,7 @@ public class MaliciousCodeScanner extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - Malicious Code Scanner");
PluginConsole frame = new PluginConsole("Malicious Code Scanner");
StringBuilder sb = new StringBuilder();
HashSet<String> scanOptions = new HashSet<>();

View file

@ -53,7 +53,7 @@ public class ReplaceStrings extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
frame = new PluginConsole(activeContainer.name + " - Replace Strings");
frame = new PluginConsole("Replace Strings");
if (!className.equals("*"))
{

View file

@ -44,7 +44,7 @@ public class ShowAllStrings extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - Show All Strings");
PluginConsole frame = new PluginConsole("Show All Strings");
StringBuilder sb = new StringBuilder();
for (ClassNode classNode : classNodeList)

View file

@ -39,7 +39,7 @@ public class ShowMainMethods extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - Show Main Methods");
PluginConsole frame = new PluginConsole("Show Main Methods");
StringBuilder sb = new StringBuilder();
for (ClassNode classNode : classNodeList)

View file

@ -15,7 +15,7 @@ public class StackFramesRemover extends Plugin
public void execute(ArrayList<ClassNode> classNodeList)
{
AtomicInteger counter = new AtomicInteger();
PluginConsole frame = new PluginConsole(activeContainer.name + " - StackFrames Remover");
PluginConsole frame = new PluginConsole("StackFrames Remover");
for (ClassNode cn : classNodeList)
{
for (MethodNode mn : cn.methods)

View file

@ -17,7 +17,7 @@ public class ViewAPKAndroidPermissions extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - Android Permissions");
PluginConsole frame = new PluginConsole("Android Permissions");
frame.setVisible(true);
byte[] encodedAndroidManifest = activeContainer.getFileContents("AndroidManifest.xml");

View file

@ -17,7 +17,7 @@ public class ViewManifest extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole frame = new PluginConsole(activeContainer.name + " - View Manifest");
PluginConsole frame = new PluginConsole("View Manifest");
frame.setVisible(true);
//TODO android APKs may have AndroidManifests that can be viewed normally, this should be checked

View file

@ -44,7 +44,7 @@ public class ZStringArrayDecrypter extends Plugin
@Override
public void execute(ArrayList<ClassNode> classNodeList)
{
PluginConsole gui = new PluginConsole(activeContainer.name + " - ZStringArray Decrypter");
PluginConsole gui = new PluginConsole("ZStringArray Decrypter");
StringBuilder out = new StringBuilder();
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",

View file

@ -13,7 +13,7 @@ public class Template extends Plugin
public void execute(ArrayList<ClassNode> classNodeList)
{
//create console
gui = new PluginConsole(activeContainer.name + " - Java Template");
gui = new PluginConsole("Java Template");
gui.setVisible(true); //show the console
//debug text

View file

@ -7,7 +7,7 @@ var gui;
*/
function execute(classNodeList)
{
gui = new PluginConsole(activeContainer.name + " - Javascript Template");
gui = new PluginConsole("Javascript Template");
gui.setVisible(true); //show the console
out("Class Nodes: " + classNodeList.size());