diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-09-24 00:17:17 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-09-24 00:17:17 +0200 |
commit | b7bb1a6a8ecfb20dd53a874a76ad87100455c98c (patch) | |
tree | e1c1cdb46596175306763586786304f2851de4a7 /include/KInterface.h | |
parent | 673cec06fab76718ade9b3763b8d43daddeaeeda (diff) |
added pattern checker and memory mapping method callbacks and managment functions
Diffstat (limited to 'include/KInterface.h')
-rw-r--r-- | include/KInterface.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/KInterface.h b/include/KInterface.h index 1149fd3..e990f6c 100644 --- a/include/KInterface.h +++ b/include/KInterface.h @@ -92,32 +92,4 @@ public: return -1; return wr.SizeRes; } -}; - -template <SIZE_T SIZE> -struct Diff { - BYTE current_buffer[SIZE]; - BYTE old_buffer[SIZE]; - std::vector<std::pair<SIZE_T, SIZE_T>> diffs; -}; - -class KScan -{ -public: - template <typename T, SIZE_T SIZE> - static SSIZE_T ScanSimple(HANDLE targetPID, PVOID start_address, SIZE_T max_scansize, T(&a)[SIZE]) - { - return KScanSimple(targetPID, start_address, max_scansize, a, sizeof T * SIZE); - } - template <SIZE_T SIZE> - static SSIZE_T BinDiffSimple(HANDLE targetPID, PVOID start_address, Diff<SIZE> *diff) - { - return KBinDiffSimple(targetPID, start_address, diff->current_buffer, - diff->old_buffer, SIZE, &diff->diffs); - } -private: - static SSIZE_T KScanSimple(HANDLE targetPID, PVOID start_address, SIZE_T max_scansize, - PVOID scanbuf, SIZE_T scanbuf_size); - static SSIZE_T KBinDiffSimple(HANDLE targetPid, PVOID start_address, - BYTE *curbuf, BYTE *oldbuf, SIZE_T siz, std::vector<std::pair<SIZE_T, SIZE_T>> *diffs); };
\ No newline at end of file |