Code Monkey home page Code Monkey logo

sharpmonoinjectorcore's Introduction

SharpMonoInjectorCore

main.yml

SharpMonoInjectorCore is a tool for injecting assemblies into Mono embedded applications, made compatible with the Microsoft .NET Core. The target process may require a restart before injecting an updated version of the assembly. Your unload method should destroy all allocated resources to prevent any memory leaks. Both x86 and x64 processes are supported. You can see an example implementation here.

Requirements

Concept

SharpMonoInjector works by dynamically generating machine code, writing it to the target process, and executing it using CreateRemoteThread. It calls functions within the Mono embedded API. The return value is obtained with ReadProcessMemory.

Build

dotnet publish SharpMonoInjector

Usage

Inject

SharpMonoInjector.exe inject -p RobocraftClient -a rc15-hax.dll -n RC15_HAX -c Loader -m Load
Usage:
SharpMonoInjector.exe inject <options>

Required arguments:
-p      id or name of the target process
-a      path of the assembly to inject
-n      namespace in which the loader class resides
-c      name of the loader class
-m      name of the method to invoke in the loader class

Eject

SharpMonoInjector.exe eject -p RobocraftClient -a 0x13D23A98 -n RC15_HAX -c Loader -m Unload
Usage:
SharpMonoInjector.exe eject <options>

Required arguments:
-p      id or name of the target process
-a      address of the assembly to eject
-n      namespace in which the loader class resides
-c      name of the loader class
-m      name of the method to invoke in the loader class

Submodule

If you plan to package this along with your cheats, I would recommend that you add this repository as a git submodule.

mkdir submodules
git submodule add --depth 1 https://github.com/winstxnhdw/SharpMonoInjectorCore.git ./submodules/SharpMonoInjectorCore
git config -f .gitmodules submodule.submodules/SharpMonoInjectorCore.shallow true

To update your submodule later, simply run the following.

git submodule update --remote

sharpmonoinjectorcore's People

Contributors

winstxnhdw avatar wh0am15533 avatar warbler avatar

Stargazers

Media Explorer avatar

Watchers

 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.