FIRST :: MetadataServer

class first_plugin_ida.first.FIRST[source]
class MetadataServer(data, address=None, engine_info=None)[source]

Class to contain a FIRST match and its data.

FIRST Metadata container, it encapsulates the data received from the FIRST server.

Parameters:
  • data (dict) – Dictionary with the following key values set: name, prototype, creator, id, comment, rank
  • address (int) – The VA associated with the function the instance refers to.
  • engine_info (dict) – Dictionary with engine names mapping to the engine’s description.
Raises:

FIRST.Error – If data is not a dict or does not have the required keys.

address

The virtual address associated with the function.

Type:int
comment

The comment associated with the function.

Type:str
creator

The handle of the annotation creator.

Type:str
engine_info

The mapping from engine name to its description.

Type:dict
id

The FIRST ID associated with this metadata.

Type:str
name

The name of the function

Type:str
prototype

The prototype of the function

Type:str
rank

The number of unqiue applies of this metadata.

Type:int
similarity

The percentage of similarity between this function and the original queried for function. This value can be very rough estimate depending on the engine.

Type:float