https://github.com/thirteenag/hooking.patterns
https://github.com/thirteenag/hooking.patterns
cpp pattern-matching patterns
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thirteenag/hooking.patterns
- Owner: ThirteenAG
- License: mit
- Created: 2017-02-07T16:01:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T11:04:53.000Z (over 1 year ago)
- Last Synced: 2024-08-15T12:42:52.750Z (over 1 year ago)
- Topics: cpp, pattern-matching, patterns
- Language: C++
- Size: 38.1 KB
- Stars: 40
- Watchers: 7
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Hooking.Patterns
----------------
Sample:
```cpp
#include "stdafx.h"
#include
#include "Hooking.Patterns.h"
int main()
{
auto pattern = hook::pattern("54 68 69 73 20 70 72 6F 67 72");
if (!pattern.count_hint(1).empty())
{
auto text = pattern.get(0).get(0);
MessageBoxA(0, text, text, 0);
}
return 0;
}
```
Result:
