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

int – The virtual address associated with the function.

comment

str – The comment associated with the function.

creator

str – The handle of the annotation creator.

engine_info

dict – The mapping from engine name to its description.

id

str – The FIRST ID associated with this metadata.

name

str – The name of the function

prototype

str – The prototype of the function

rank

int – The number of unqiue applies of this metadata.

similarity

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