2017-10-01 16:22:15 +01:00
2017-10-01 09:36:59 +01:00
2017-09-30 11:11:46 +01:00

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.

S
Description
Automated archival mirror of github.com/pwndizzle/c-sharp-memory-injection
Readme 51 KiB
Languages
C# 100%