JamesMenetrey / MemorySharp

A C# based memory editing library targeting Windows applications, offering various functions to extract and inject data and codes into remote processes to allow interoperability.
Other
634 stars 135 forks source link

Pattern Mechanisms? #8

Open CryptXor opened 8 years ago

CryptXor commented 8 years ago

Hi,

I assume Pattern Mechanisms are going to be things such as: Byte Search and Replace, Byte Search to return a memory address, etc, correct?

lolp1 commented 8 years ago

You can see my implementation here:

https://github.com/ZenLulz/MemorySharp/tree/768258b5563cb17a95520bc7f5869cbd87eeb4e4/src/MemorySharp/Patterns

This will find most patterns as-is, but in some cases you will need to use it to find the starting address of your pattern and follow it from there.. something like

var scanResult = ..
var actualAddress = (IntPtr)memory.Read<byte>(scanResult.BaseAddress);
JamesMenetrey commented 7 years ago

Hi @CryptXor,

@lolp1 is right, my initial thoughts to this feature is something like what you've mentioned.

Did you think to something different or have another idea of how this feature should behave ?

Cheers, Zen