Giter Site home page Giter Site logo

memorypatternscanner's Introduction

(c#) dll for Array of bytes [AOB] scan with wildcard,Reading process memeory, Writing process memory.

A standalone dll library written in c# for for wildcard AOB scan, reading and writing from process, its an old lib that I created and used for my personel use. Maybe this would help new modders, I recently stumbled upon this, so here it is.

latest release license

Some insights.

This was developed in visual studio 2013 and was done when I started learning modding so dont expect geat code(although I retouched some of it now.)

Just wanna use the dll?

  • download the dll
  • add a reference to the dll
  • 'using memory' must be added
  • check how other stuff is implemented in the source from here.

Wanna Add some modifications?

  • clone-fork the repo do as you wish.

Usage

Methods available

The following methods assumes that you have selected the process, set the handle, set the module and set the pattern to scan.

ClassName: Scanner.

  • bool writeBytes(Process process, ulong address, byte[] bytesToWrite)

  • bool writeBytes(Process process, ulong address, String pattern)

  • byte[] getBackupBytes()

  • ulong FindPattern()

  • bool WriteProcessMemory(IntPtr hProcess,IntPtr lpBaseAddress,byte[] lpBuffer,int dwSize,out IntPtr lpNumberOfBytesWritten)

  • bool ReadProcessMemory(IntPtr hProcess,IntPtr lpBaseAddress,byte[] lpBuffer,int dwSize,out IntPtr lpNumberOfBytesRead)

Example

I didn't include all the process memeory stuff below, but those can be used to, its available in the memory class, check source.

Process process = the selected process that you want to use.

below could be set via constructor or set via setters, check the source.

Scanner Obj = new Scanner(process,process.Handle,"80 00 41 ?? ?? 00 00 ?? ?? ?? ?? ?? ?? 00 00 00 00 00");


Obj.setModule(process.MainModule);

Obj.FindPattern()

the below could be done for writing found bytes,

memObj.writeBytes(process, memObj.FindPattern(), "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00");

you could also do below to get the backup bytes which you wrote for ex, you would get this region
80 00 41 ?? ?? 00 00 ?? ?? ?? ?? ?? ?? 00 00 00 00 00, the placeholder with real values.

memObj.getBackupBytes();

Built With

  • c#
  • a newbie modder back in the day.

Authors

Meta

aghontpi (aka) bluepie โ€“ @bluepie โ€“ [email protected]

License

This project is licensed under the MIT License - see the LICENSE file for details

memorypatternscanner's People

Contributors

aghontpi avatar waves-rgb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.