aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-03-15 17:54:56 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-03-15 17:54:56 +0100
commit64d3fae55148a333739260fcff83f24b0d25293a (patch)
tree03057c0b78e93bdfbc0dc5d23ee698dead2ceebb /include
parent48dc2c110bfba0803c8938def50935db844d9ba6 (diff)
added address scan for PatternScanner
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/PatternScanner.h3
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);