Ghidra: Disabling Specific Analyzers in Headless Analyzer

Created on 9 Aug 2019  路  2Comments  路  Source: NationalSecurityAgency/ghidra

I am new to using Ghidra. I am curious onto whether or not it is possible to disable specific analyzers while in Headless Analyze mode. I noticed it is possible when in GUI but cannot seem to figure out how to do it when analyzing headlessly. I am trying to run a python script as a post-script to extract specific function/instruction calls in a binary and would like to disable various analyzers to improve on processing time. Currently, some of the analyzers are taking a very, very long time to complete and majority of those analyzers I do not actually need in order to conduct my extraction (Like Decompiler Analyzer) but I am not sure how to disable them when I'm analyzing headless, if its possible.

Question

All 2 comments

Check out this script for an example of how you control analysis options from a script. You will need to do this from a prescript, since postscripts run after analysis is complete.

Here is a slightly better example for you, doing exactly what you want I think.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0x6d696368 picture 0x6d696368  路  3Comments

forkoz picture forkoz  路  3Comments

astrelsky picture astrelsky  路  3Comments

Kerilk picture Kerilk  路  3Comments

chibicitiberiu picture chibicitiberiu  路  3Comments