From 84e44b76a20dc07654acdce9b72c86294bdcab26 Mon Sep 17 00:00:00 2001 From: baka0taku <70031102+baka0taku@users.noreply.github.com> Date: Sat, 3 Jul 2021 20:31:34 -0400 Subject: [PATCH 1/2] Update Cantordust.java Fixed signature to match other changes. --- Cantordust.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cantordust.java b/Cantordust.java index 35da589..276a6cb 100644 --- a/Cantordust.java +++ b/Cantordust.java @@ -125,7 +125,7 @@ public byte[] getJavaData() { public void writeBinLocation(){ // run python cleanup.py to recompile program GhidraProvider mp = new GhidraProvider(); - String path = mp.getClass(sourceFile, "Cantordust").getAbsolutePath(); + String path = mp.getClass(sourceFile).getAbsolutePath(); path = path.substring(0, path.length()-16); String fileName = currentDirectory+"ghidra_bin_location.txt"; try{ From c83b2166f6f19f18ae784d49044d0130047b2783 Mon Sep 17 00:00:00 2001 From: baka0taku <70031102+baka0taku@users.noreply.github.com> Date: Sat, 3 Jul 2021 20:35:19 -0400 Subject: [PATCH 2/2] Update GhidraProvider.java --- GhidraProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GhidraProvider.java b/GhidraProvider.java index 488f2a8..dd44771 100644 --- a/GhidraProvider.java +++ b/GhidraProvider.java @@ -6,7 +6,7 @@ public class GhidraProvider extends JavaScriptProvider { public GhidraProvider(){ super(); } - public File getClass(ResourceFile sourceFile, String className){ - return getClassFile(sourceFile, className); + public File getClass(ResourceFile sourceFile){ + return sourceFile.getFile(false); } -} \ No newline at end of file +}