diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2020-03-15 17:54:56 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2020-03-15 17:54:56 +0100 |
commit | 64d3fae55148a333739260fcff83f24b0d25293a (patch) | |
tree | 03057c0b78e93bdfbc0dc5d23ee698dead2ceebb /include | |
parent | 48dc2c110bfba0803c8938def50935db844d9ba6 (diff) |
added address scan for PatternScanner
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/PatternScanner.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/PatternScanner.h b/include/PatternScanner.h index d374d29..22b865b 100644 --- a/include/PatternScanner.h +++ b/include/PatternScanner.h @@ -4,6 +4,7 @@ #include <string> #include <vector> +#include <functional> typedef bool(*map_file_cb)(SymbolResolver& symres, IN MODULE_DATA&, OUT PVOID * const, @@ -40,6 +41,8 @@ public: m_LowAddress = startAddress; } bool Scan(MODULE_DATA& module, const char * const pattern, std::vector<SIZE_T>& foundAddresses); + static bool ScanForAddress(HANDLE targetPID, MODULE_DATA& module, PatternScanner *pscan, const char * const pattern, std::function<bool(SIZE_T)> callback); + private: bool checkPattern(MODULE_DATA& module, const char * const pattern, std::string& result); bool doScan(std::string& pattern, UINT8 *buf, SIZE_T size, std::vector<SIZE_T>& foundAddresses); |