summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorBrandon Miller <brandon@vector35.com>2024-04-11 10:40:09 -0400
committerBrandon Miller <bkmiller89@icloud.com>2024-04-25 10:56:18 -0400
commit465a8d5d7afd5a5648338009e0fb8dbe4f199347 (patch)
treef3ead9b2b65a291fd7a97b2ddbbda2f10a5462ac /binaryninjaapi.h
parent4b2b3d561b92a01f4d29b86d5510d39e4d1accf3 (diff)
Querying candidate base address reasons
Querying vector of reason information for a candidate base address using the new core API
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h19
1 files changed, 10 insertions, 9 deletions
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<std::pair<size_t, uint64_t>> GetScores(BaseAddressDetectionConfidence* confidence);
+ std::set<std::pair<size_t, uint64_t>> 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<BNBaseAddressDetectionReason> GetReasonsForBaseAddress(uint64_t baseAddress);
/*! Abort base address detection
*/