Skip to content

Commit

Permalink
Merge pull request #6 from Wdestroier/master
Browse files Browse the repository at this point in the history
Remove writeBinLocation to fix incompatibilities with Ghidra 9.3
  • Loading branch information
Battelle-Cyber-34 authored Oct 14, 2021
2 parents fb06c3b + 66e40cd commit f46ce09
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
12 changes: 0 additions & 12 deletions Cantordust.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ protected void run() throws Exception {
return;
}
name = currentProgram.getName();
writeBinLocation();
JFrame frame = new JFrame(String.format("..cantor.dust.. : %s", name));
mainInterface = new MainInterface(getData(), this, frame);
frame.getContentPane().add(mainInterface);
Expand Down Expand Up @@ -123,17 +122,6 @@ public byte[] getJavaData() {
return data;
}

public void writeBinLocation(){ // run python cleanup.py to recompile program
GhidraProvider mp = new GhidraProvider();
String path = mp.getClass(sourceFile, "Cantordust").getAbsolutePath();
path = path.substring(0, path.length()-16);
String fileName = currentDirectory+"ghidra_bin_location.txt";
try{
OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(fileName), StandardCharsets.UTF_8);
writer.write(path);
writer.close();
}catch(IOException e){}
}
/**
* Gets the current selected address in Ghidra
*/
Expand Down
3 changes: 0 additions & 3 deletions GhidraProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ public class GhidraProvider extends JavaScriptProvider {
public GhidraProvider(){
super();
}
public File getClass(ResourceFile sourceFile, String className){
return getClassFile(sourceFile, className);
}
}

0 comments on commit f46ce09

Please sign in to comment.