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:
parent
10df99c750
commit
84c1834ada
13 changed files with 13 additions and 13 deletions
|
@ -15,7 +15,7 @@ public class ExampleStringDecrypter extends Plugin {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodesList) {
|
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",
|
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
|
||||||
"WARNING: This will load the classes into the JVM and execute the initialize function"
|
"WARNING: This will load the classes into the JVM and execute the initialize function"
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class AllatoriStringDecrypter extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
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",
|
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
|
||||||
"WARNING: This will load the classes into the JVM and execute the allatori decrypter function"
|
"WARNING: This will load the classes into the JVM and execute the allatori decrypter function"
|
||||||
|
|
|
@ -140,7 +140,7 @@ public class EZInjection extends Plugin
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
if(console)
|
if(console)
|
||||||
new PluginConsole(activeContainer.name + " - EZ Injection v" + version);
|
new PluginConsole("EZ Injection v" + version);
|
||||||
|
|
||||||
if (accessModifiers)
|
if (accessModifiers)
|
||||||
print("Setting all of the access modifiers to public/public static.");
|
print("Setting all of the access modifiers to public/public static.");
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class MaliciousCodeScanner extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
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();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
HashSet<String> scanOptions = new HashSet<>();
|
HashSet<String> scanOptions = new HashSet<>();
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class ReplaceStrings extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
frame = new PluginConsole(activeContainer.name + " - Replace Strings");
|
frame = new PluginConsole("Replace Strings");
|
||||||
|
|
||||||
if (!className.equals("*"))
|
if (!className.equals("*"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class ShowAllStrings extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
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();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
for (ClassNode classNode : classNodeList)
|
for (ClassNode classNode : classNodeList)
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class ShowMainMethods extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
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();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
for (ClassNode classNode : classNodeList)
|
for (ClassNode classNode : classNodeList)
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class StackFramesRemover extends Plugin
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
AtomicInteger counter = new AtomicInteger();
|
AtomicInteger counter = new AtomicInteger();
|
||||||
PluginConsole frame = new PluginConsole(activeContainer.name + " - StackFrames Remover");
|
PluginConsole frame = new PluginConsole("StackFrames Remover");
|
||||||
for (ClassNode cn : classNodeList)
|
for (ClassNode cn : classNodeList)
|
||||||
{
|
{
|
||||||
for (MethodNode mn : cn.methods)
|
for (MethodNode mn : cn.methods)
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class ViewAPKAndroidPermissions extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
PluginConsole frame = new PluginConsole(activeContainer.name + " - Android Permissions");
|
PluginConsole frame = new PluginConsole("Android Permissions");
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
|
|
||||||
byte[] encodedAndroidManifest = activeContainer.getFileContents("AndroidManifest.xml");
|
byte[] encodedAndroidManifest = activeContainer.getFileContents("AndroidManifest.xml");
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class ViewManifest extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
PluginConsole frame = new PluginConsole(activeContainer.name + " - View Manifest");
|
PluginConsole frame = new PluginConsole("View Manifest");
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
|
|
||||||
//TODO android APKs may have AndroidManifests that can be viewed normally, this should be checked
|
//TODO android APKs may have AndroidManifests that can be viewed normally, this should be checked
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class ZStringArrayDecrypter extends Plugin
|
||||||
@Override
|
@Override
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
PluginConsole gui = new PluginConsole(activeContainer.name + " - ZStringArray Decrypter");
|
PluginConsole gui = new PluginConsole("ZStringArray Decrypter");
|
||||||
StringBuilder out = new StringBuilder();
|
StringBuilder out = new StringBuilder();
|
||||||
|
|
||||||
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
|
MultipleChoiceDialog dialog = new MultipleChoiceDialog("Bytecode Viewer - WARNING",
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class Template extends Plugin
|
||||||
public void execute(ArrayList<ClassNode> classNodeList)
|
public void execute(ArrayList<ClassNode> classNodeList)
|
||||||
{
|
{
|
||||||
//create console
|
//create console
|
||||||
gui = new PluginConsole(activeContainer.name + " - Java Template");
|
gui = new PluginConsole("Java Template");
|
||||||
gui.setVisible(true); //show the console
|
gui.setVisible(true); //show the console
|
||||||
|
|
||||||
//debug text
|
//debug text
|
||||||
|
|
|
@ -7,7 +7,7 @@ var gui;
|
||||||
*/
|
*/
|
||||||
function execute(classNodeList)
|
function execute(classNodeList)
|
||||||
{
|
{
|
||||||
gui = new PluginConsole(activeContainer.name + " - Javascript Template");
|
gui = new PluginConsole("Javascript Template");
|
||||||
gui.setVisible(true); //show the console
|
gui.setVisible(true); //show the console
|
||||||
out("Class Nodes: " + classNodeList.size());
|
out("Class Nodes: " + classNodeList.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue