• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 3 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A DLL injector to inject .NET assemblies into a foreign .NET process.

ManagedInjector 💉

NuGet version (HoLLy.ManagedInjector)

With ManagedInjector, you can inject .NET assemblies into other .NET processes. This allows you to run your own code under the context of that process, and gives you access to all its internal state using the .NET reflection API.

Getting started

Currently, only .NET Framework targets are supported. Mono will be supported in the near future and .NET Core/.NET will come soon after that.

For .NET Framework targets, the method to be run after injecting must be of signature static int MyMethod(string).

GUI

The GUI allows you to select a process and DLL in a graphical interface.

Main Window

Entrypoint Selection

CLI

With the CLI application, you can inject DLLs from the comfort of the commandline, or easily script it without having to do any programming.

$ .\ManagedInjector.CLI.exe --help
ManagedInjector.CLI 1.0.0
Copyright (C) 2021 ManagedInjector.CLI

  -n, --name      (Group: process) Specifies the target process name

  -p, --pid       (Group: process) Specifies the target process id

  -i, --input     Required. The DLL to inject

  -t, --type      Required. The full type of the entry point

  -m, --method    Required. The method name of the entry point

  --help          Display this help screen.

  --version       Display version information.
$ .\ManagedInjector.CLI.exe -n Wox -i D:\Injectable.dll -t Injectable.Program -m InjectableMain
PID: 15912
Status: Ok
Arch: NetFrameworkV4
Copied DLL to C:\Users\HoLLy\AppData\Local\Temp\69e4c80c-f828-4f07-bfb3-770c23d4308f.dll
Written to 0x2A389C60000
Thread handle: 00000354

.NET API

With ManagedInjector.Lib, you can integrate ManagedInjector into your own applications with an easy-to-use API.

âš  Note that ManagedInjector.Lib will not move your DLLs to a temporary location. Due to how managed injection works, the files will remain "in use" by the target process until it closes. If you are actively developing your injectable, it is recommended to move it to a temporary location first.

using HoLLy.ManagedInjector;

uint pid = 0x1234;
var process = new InjectableProcess(pid);

Debug.Assert(process.GetStatus() == ProcessStatus.Ok);
Debug.Assert(process.GetArchitecture() == ProcessArchitecture.NetFrameworkV4);

process.Inject("D:\Injectable.DLL", "Injectable.Program", "Main");

Attribution

ManagedInjector uses the following libraries:

  • Iced, licensed under the MIT license

ManagedInjector.CLI uses the following libraries:

ManagedInjector.GUI uses the following libraries:

License

This project is licensed under the MIT License.

TL;DR: You are allowed to anything you wish with this software, as long as you include the original copyright and license notice in your software/source code.

More Repositories

1

EazFixer

A deobfuscation tool for Eazfuscator.
C#
374
star
2

dnSpy.Extension.HoLLy

A dnSpy extension to aid reversing of obfuscated assemblies
C#
336
star
3

KeePassHax

A tool to extract a KeePass master password from memory
C#
76
star
4

Confuser.Protections.HoLLy

Extra protection modules for ConfuserEx
C#
66
star
5

HoLLy.MemoryLib

A specialized C# memory-accessing library
C#
42
star
6

EazDecode

A library to decode EazFuscator's encrypted symbol names, if you have the password.
C#
40
star
7

ce-server

A Cheat Engine server for Windows
Rust
40
star
8

git-dumper

A tool to dump exposed .git repositories
Rust
39
star
9

dnSpy.Extension.Wasm

A dnSpy extension to add WebAssembly support
C#
38
star
10

osu-database-reader

Allows for parsing/reading osu!'s database files
C#
37
star
11

osu-decoder

A tool to decrypt symbol names in osu! binaries with a known decryption key
C#
30
star
12

td

A WIP graph-based TUI TODO app.
Rust
28
star
13

SWSniff

A SoulWorker packet sniffer+injector
C#
24
star
14

dnSpy.Extension.DiscordRPC

A dnSpy extension to add Discord Rich Presence integration to dnSpy.
C#
23
star
15

BetterDiscord-Themes-and-Plugins

Collection of my BetterDiscord themes and plugins
JavaScript
23
star
16

osu-HOPE

osu!HOPE: HoLLy's osu! Packet Editor
C#
22
star
17

WasmLib

A WIP WebAssembly decompiler, targeted at Il2CPP games
C#
19
star
18

OppaiSharp

A C# port of oppai-ng
C#
17
star
19

DiscordCSS

A collection of my Discord CSS styles
CSS
15
star
20

dnSpy.Extension.ThemeHotReload

A dnSpy extension to hot-reload themes
C#
12
star
21

dnSpyThemeGenerator

Generates dnSpy themes based on IntelliJ themes
C#
12
star
22

custom-bancho

PHP
11
star
23

HOPEless

Library for handling osu!Bancho packets.
C#
10
star
24

osu.Game.Rulesets.HoLLy

Rulesets for osu!lazer
C#
9
star
25

DiscordBotV5

Probably my fifth Discord bot
C#
8
star
26

BulletForceHaxV2

Bullet Force launcher and MITM-based hax
Rust
8
star
27

bulletforcehax

An in-browser cheating/sniffing tool for Bullet Force, written in Rust
Rust
8
star
28

osu-BackgroundChanger

Allows you to change your osu! background without supporter status!
C#
7
star
29

Startpage

My personal homepage
TypeScript
7
star
30

osu-ui-skinner

osu!ui skinner, skinning the unskinnable since 2017
C#
7
star
31

osu-ingame-background-changer

Temporarily change every song background in osu!
C#
7
star
32

osu-FailedRankScreen

Sends osu! to the ranking screen, even when failed.
C#
7
star
33

s3-dumper

A tool to dump exposed S3 buckets by URL
Rust
6
star
34

osu-pp-tools

A tool providing a live PP display for both players and mappers.
C#
5
star
35

osu-custom-server

server files for a osu.ppy.sh clone (only for game files)
PHP
5
star
36

PokeOneToolkit

Allows for sniffing and editing PokeOne traffic.
C#
5
star
37

mini-jc

A jc clone with reasonable performance
Rust
5
star
38

EnigmaCipher

A C# implementation of the Enigma cipher.
C#
3
star
39

osu.Shared

Shared code used across multiple of my projects.
C#
3
star
40

ClickerCheats

Cheats for HTML5 incremental games
JavaScript
3
star
41

Portfolio

An incomplete list of my projects. This is mainly for school.
3
star
42

mastodon-block-enum

A small tool to analyze blocked domains on mastodon instances
Rust
3
star
43

UnovaRPGlib

A library for UnovaRPG farming/botting
C#
2
star
44

atelier-tools

Tools for Gust's Atelier games
Rust
2
star
45

AdventOfCode2023

Solutions for Advent of Code 2023
Rust
2
star
46

1brc-rust

An implementation of the 1 billion row challenge
Rust
2
star
47

AdventOfCode2022

Rust
1
star
48

nixpkgs

A nix channel with packages I may need
Nix
1
star
49

game-recipe-calc

A browser-based tool to calculate crafting requirements given some recipes
Rust
1
star
50

AdventOfCode2020

Rust
1
star
51

osu-api-wrapper

A small osu!api wrapper in C#
C#
1
star
52

atelier-data

Extracted data for Gust's Atelier games
1
star
53

BiertijdDownloaderReloaded

A recreation of one of my first projects
C#
1
star
54

darknet-diaries-scraper

A small scraper for Darknet Diaries transcripts
Rust
1
star
55

AdventOfCode2021

Rust
1
star
56

HoLLy-HaCKeR

1
star