|
decompiler 1.0.0
|
Calculate signatures and save combined hashes to a file: produce signatures <filename> [...]
More...
Public Member Functions | |
| virtual void | iterationCallback (Funcdata *fd) |
| Perform the per-function aspect of this command. | |
Public Member Functions inherited from ghidra::IfcSaveAllSignatures | |
| IfcSaveAllSignatures (void) | |
| Constructor. | |
| virtual void | execute (istream &s) |
Public Member Functions inherited from ghidra::IfaceDecompCommand | |
| virtual void | setData (IfaceStatus *root, IfaceData *data) |
| Associate a specific data object with this command. | |
| virtual string | getModule (void) const |
| Get the formal module name to which this command belongs. | |
| virtual IfaceData * | createData (void) |
| Create a specialized data object for this command (and its module) | |
| void | iterateFunctionsAddrOrder (void) |
| Iterate command over all functions in all scopes. | |
| void | iterateFunctionsLeafOrder (void) |
| Iterate command over all functions in a call-graph traversal. | |
Public Member Functions inherited from ghidra::IfaceCommand | |
| virtual | ~IfaceCommand (void) |
| Destructor. | |
| void | addWord (const string &temp) |
| Add a token to the command line string associated with this command. | |
| void | removeWord (void) |
| Remove the last token from the associated command line string. | |
| const string & | getCommandWord (int4 i) const |
| Get the i-th command token. | |
| void | addWords (const vector< string > &wordlist) |
| Add words to the associated command line string. | |
| int4 | numWords (void) const |
| Return the number of tokens in the command line string. | |
| void | commandString (string &res) const |
| Get the complete command line string. | |
| int4 | compare (const IfaceCommand &op2) const |
| Order two commands by their command line strings. | |
Additional Inherited Members | |
Protected Member Functions inherited from ghidra::IfaceDecompCommand | |
| void | iterateScopesRecursive (Scope *scope) |
| Iterate recursively over all functions in given scope. | |
| void | iterateFunctionsAddrOrder (Scope *scope) |
| Iterate over all functions in a given scope. | |
Protected Attributes inherited from ghidra::IfcSaveAllSignatures | |
| GraphSigManager * | smanage |
| Manager for generating signatures. | |
Protected Attributes inherited from ghidra::IfaceDecompCommand | |
| IfaceStatus * | status |
| The console owning this command. | |
| IfaceDecompData * | dcp |
| Data common to decompiler commands. | |
Calculate signatures and save combined hashes to a file: produce signatures <filename> [...]
For every known function entry point, the function is decompiled (using the current action) and features/signatures are extracted. Features for a single function are combined using an overall hash and written out to the file indicated by the first parameter. The file will contain one line per function, with the name of the function followed by the overall hash. The command optionally takes additional parameters that can alter signature generation.
|
virtual |
Perform the per-function aspect of this command.
| fd | is the particular function to operate on |
Reimplemented from ghidra::IfcSaveAllSignatures.
References ghidra::Architecture::allacts, ghidra::GraphSigManager::clear(), ghidra::Architecture::clearAnalysis(), ghidra::IfaceDecompData::conf, ghidra::IfaceDecompCommand::dcp, ghidra::LowlevelError::explain, ghidra::IfaceStatus::fileoptr, ghidra::GraphSigManager::generate(), ghidra::ActionDatabase::getCurrent(), ghidra::Funcdata::getName(), ghidra::SigManager::getOverallHash(), ghidra::Funcdata::getSize(), ghidra::Funcdata::hasNoCode(), ghidra::IfaceStatus::optr, ghidra::Action::perform(), ghidra::Action::reset(), ghidra::GraphSigManager::setCurrentFunction(), ghidra::IfcSaveAllSignatures::smanage, and ghidra::IfaceDecompCommand::status.