Skip to content

A set of scripts that demonstrate how to perform memory injection in C#

Notifications You must be signed in to change notification settings

pwndizzle/c-sharp-memory-injection

Repository files navigation

C# Memory Injection Examples

A set of scripts that demonstrate how to perform memory injection.

Some useful shellcode/dll/exe for popping calc can be found below:

https://github.com/peterferrie/win-exec-calc-shellcode

Contents

  • process-dll-injection.cs - Classic dll injection where the path to a dll on disk is injected in a running process and then loaded with a call to CreateRemoteThread passing LoadLibrary and the dll path. This code was originally posted here: http://www.codingvision.net/miscellaneous/c-inject-a-dll-into-a-process-w-createremotethread

  • thread-hijack.cs - This example suspends a thread within a running process, injects shellcode in the process and redirects execution of an existing thread to the shellcode. Once the shellcode is executed the thread will continue as before.

About

A set of scripts that demonstrate how to perform memory injection in C#

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages