Hello everyone,
For x64_dbg I created a pattern finder that supports nibble wildcards (FF D? for example). Here is a standalone version of this pattern finder, feel free to use it wherever you like, credit (link to http://x64dbg.com) is appreciated, but not required.
Example of usage:
Code:
#include "patternfind.h"
#include
size_t patternfind(
unsigned char* data //pointer to the data to search in
size_t size //data size
const char* pattern //text pattern, will be filtered to only contain hex characters and wildcards (?)
);
int main(int argc, char* argv[])
{
size_t found = patternfind((unsigned char*)main, 0x100, "68 ?? ?1 0? 00");
printf("found: main+%p\n", found);
return 0;
}
PatternFind source code is attached.
Greetings,
Mr. eXoDia