From 465a8d5d7afd5a5648338009e0fb8dbe4f199347 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Thu, 11 Apr 2024 10:40:09 -0400 Subject: Querying candidate base address reasons Querying vector of reason information for a candidate base address using the new core API --- binaryninjaapi.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 6bd33c80..803ebf76 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -17391,13 +17391,6 @@ namespace BinaryNinja { uint32_t MaxPointersPerCluster; }; - enum BaseAddressDetectionConfidence - { - NoConfidence = 0, - LowConfidence = 1, - HighConfidence = 2, - }; - /*! \ingroup baseaddressdetection */ @@ -17418,10 +17411,18 @@ namespace BinaryNinja { /*! Get the top 10 candidate base addresses and thier scores - \param confidence Confidence level that the top base address candidate is correct + \param confidence Confidence level that indicates the likelihood the top base address candidate is correct + \param lastTestedBaseAddress Last base address tested before analysis was aborted or completed \return Set of pairs containing candidate base addresses and their scores */ - std::set> GetScores(BaseAddressDetectionConfidence* confidence); + std::set> GetScores(BNBaseAddressDetectionConfidence* confidence, uint64_t *lastTestedBaseAddress); + + /*! Get a vector of BNBaseAddressDetectionReasons containing information that indicates why a base address was reported as a candidate + + \param baseAddress Base address to query reasons for + \return Vector of reason structures containing information about why a base address was reported as a candidate + */ + std::vector GetReasonsForBaseAddress(uint64_t baseAddress); /*! Abort base address detection */ -- cgit v1.3.1