mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-2509 GP-2644 Improved Ghidra URL support. Added support for Ghidra
URL linked files and folders within project.
This commit is contained in:
parent
8d6cf5e310
commit
5a422c4502
153 changed files with 7083 additions and 1732 deletions
|
@ -17,6 +17,8 @@
|
|||
// NOTE: Script will only process unversioned and checked-out files.
|
||||
//@category Examples
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.app.script.GhidraState;
|
||||
import ghidra.framework.model.*;
|
||||
|
@ -25,8 +27,6 @@ import ghidra.program.model.listing.Program;
|
|||
import ghidra.util.exception.CancelledException;
|
||||
import ghidra.util.exception.VersionException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class CallAnotherScriptForAllPrograms extends GhidraScript {
|
||||
|
||||
// The script referenced in the following line should be replaced with the script to be called
|
||||
|
@ -59,6 +59,10 @@ public class CallAnotherScriptForAllPrograms extends GhidraScript {
|
|||
}
|
||||
|
||||
private void processDomainFile(DomainFile domainFile) throws CancelledException, IOException {
|
||||
// Do not follow folder-links or consider program links. Using content type
|
||||
// to filter is best way to control this. If program links should be considered
|
||||
// "Program.class.isAssignableFrom(domainFile.getDomainObjectClass())"
|
||||
// should be used.
|
||||
if (!ProgramContentHandler.PROGRAM_CONTENT_TYPE.equals(domainFile.getContentType())) {
|
||||
return; // skip non-Program files
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue