-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetAutoAnalysisOptions.java
More file actions
31 lines (27 loc) · 1.17 KB
/
SetAutoAnalysisOptions.java
File metadata and controls
31 lines (27 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
//@author
//@category
//@keybinding
//@menupath
//@toolbar
import java.util.Map;
import ghidra.app.script.GhidraScript;
public class SetAutoAnalysisOptions extends GhidraScript {
private static final String STACK = "Stack";
private static final String X86_CONST_REF_ANALYZER = "x86 Constant Reference Analyzer";
private static final String WINDOWS_X86_PE_EXCEPTION_HANDLING = "Windows x86 PE Exception Handling";
private static final String PDB_UNIVERSAL = "PDB Universal";
private static final String NON_RETURN_FUNCTIONS_D = "Non-Returning Functions - Discovered";
private static final String DECOMPILER_SWITCH_ANALYSIS = "Decompiler Switch Analysis";
private static final String DEMANGLER_MS_ANALYZER = "Demangler Microsoft";
private static final String DEMANGLER_GNU_ANALYZER = "Demangler GNU";
private static final String DECOMPILER_PARAMETER_ID = "Decompiler Parameter ID";
@Override
protected void run() throws Exception {
//TODO: Add script code here
Map<String, String> options = getCurrentAnalysisOptionsAndValues(currentProgram);
if (options.containsKey(DECOMPILER_PARAMETER_ID)) {
setAnalysisOption(currentProgram, DECOMPILER_PARAMETER_ID, "true");
}
}
}