al3xtjames / ghidra-firmware-utils

Ghidra utilities for analyzing PC firmware
Other
401 stars 45 forks source link

The `UEFIHelper` script fails to operate in "headless" mode #18

Closed rhythmx closed 2 years ago

rhythmx commented 2 years ago

To obtain a reference to the DataTypeManagerService, the loadDataTypeLibrary function uses GhidraState.getTool(). This will be a null value when not running within the GUI environment.

This can be resolved by obtaining the datatype service from AutoAnalysisManager instead.

The issue and work around is detailed here: https://github.com/NationalSecurityAgency/ghidra/issues/934