Home > Software engineering >  How to search a byte array?
How to search a byte array?

Time:11-08

A 23 bytes long known byte array,
Want to find out in the memory,
How do you write the code?

thank you

CodePudding user response:

For reference only https://bbs.pediy.com/thread-247517.htm


CodePudding user response:

Memcmp?

CodePudding user response:

Code is not posted, mainly there are a few problems to solve
1. The search process,
2. Memory read permissions
3. Memory signature reads form
4. Do you need a wildcard matching
5. Search the starting address range
DWORD ScanAddress (HANDLE process, const char * markCode, void * StartFindPoint, int Range, LPDWORD offset)

CodePudding user response:


Remember n years ago BBS have a guy to share ModifyMemory memory search. Rar
Although vc6 I run a little problem,

CodePudding user response:

Efficient word is reference KMP algorithm,
Not the pursuit of efficiency, that is a byte a byte,
  • Related