inieuwoudt1 (01-19-2019),MikeRohsoft (12-17-2018)
I needed to create a standalone memory editing library for a few upcoming libraries. I will be integrating it into my DLL injection library in the near future (proof of concept.)
It features the following memory editing methods
- Allocate Memory
- Free Memory
- Read Memory
- Write Memory
Note that you can read / write any datatype and structure as long as it is not a reference type (excluding strings - I have handlers for this as it is a pretty common reference type)
It also features a pattern scanner that supports wildcard bytes and uses a pretty decent method of scanning (came up with it after a bit of testing) to ensure fast scanning.
As per usual, the code is clean, modern and commented a lot for beginners.
You can find the source code on my ******
And the library is available as a NuGet package
If you find any bugs please open an issue on my repository (I haven't heavily tested everything / written unit tests yet) and if you have any feature requests either leave a comment here or open an issue on my repository
inieuwoudt1 (01-19-2019),MikeRohsoft (12-17-2018)
- Updated the pattern scanning algorithm to an adaptation of the Bower-Moore algorithm to vastly increase the searching speed (From my testing anywhere from 4 - 20 times as fast depending on the size of the memory region.)
Checked the code out. Clean and a good example of basic clean coding in play too.
Unit Tests finally added.
Also implemented proper usage of SafeHandles to ensure nothing gets gc'd prematurely.
Proper error handling has now been implemented! Exceptions with windows error codes will now be raised when things don't do what they should.
A tonne of bug fixes have also been applied between the last update and now.
More of a quality of life update here
You can now pattern scan directly with a byte array if you have no need for wildcard bytes