is it possible in C# to search the memory of an open process byte[] array for a pattern e.g. { 0x97, 0x35, 0x15, 0xC3, ??, 0x80, 0xE4} and return the address ? so then i can use the address in WriteProcessMemory
            Asked
            
        
        
            Active
            
        
            Viewed 3,179 times
        
    1
            
            
        - 
                    There are a few answers in this duplicate question: [http://stackoverflow.com/questions/781716/c-search-a-byte-array-in-another-processs-memory](http://stackoverflow.com/questions/781716/c-search-a-byte-array-in-another-processs-memory) – Christopher Currens Oct 14 '11 at 00:05
 - 
                    You ought to get in touch with this guy: http://stackoverflow.com/questions/7760895/grab-net-process-in-memory – Hans Passant Oct 14 '11 at 00:05
 - 
                    Thanks i will see if i can get hold of one of those guys as they seem to be seeking the same as me – Xsmurf Oct 14 '11 at 00:16
 
1 Answers
0
            
            
        Here's a Code Project article about implementing a memory scanner in C#. Although I think you'll have to modify it a bit so you can write on the same address where you read the values.
        Ilian
        
- 5,113
 - 1
 - 32
 - 41