Pattern16
Pattern16 copied to clipboard
The fastest x86-64 signature matching library.
Pattern16 allocates memory which it eventually finds... 1. Run a process that definitely does not have a test string in memory 2. Check through a debugger or in any other...
If you want a working external version, you could use [FindPatternEx](https://github.com/dark64/findpatternex), as far is I know, there's no way to use this externally, you can only do it internally. https://github.com/dark64/findpatternex/blob/a8eb0ae80633e54cd20fa701b77ba4db62de74ff/findpatternex/findpattern.h#L10-L45
Code snippet I've used: ``` const std::span& body; // ... const auto scanResult = Pattern16::scan(body.data(), body.size(), "C3"); const auto scanOffset = static_cast(const_cast(scanResult)) - body.data(); if (scanOffset == 0) { return...