Skip to content

Repository files navigation

ShellCodeLoader

A small shellcode loader library written in C# This small library allows you to inject shellcode in memory of current launched file. Useful to use as red team or in a remote access tool.

I added some test payloads which I've converted with

Includes :

  • Asynchronous (a simple Task.Run to not block main thread)
  • Loading with Kernel32
  • Loading with NtDll
  • NtDll : NtAllocateVirtualMemory
  • NtDll : NtWriteVirtualMemory
  • NtDll : NtProtectVirtualMemory
  • NtDll : NtFreeVirtualMemory
  • Kernel32 : GetCurrentProcess
  • Kernel32 : VirtualAlloc
  • Kernel32 : VirtualFree
  • Kernel32 : VirtualProtect
  • Kernel32 : WriteProcessMemory
  • Enumeration : PageProtection
  • Enumeration : TypeAlloc
  • Enumeration: FreeType

TODO :

  • Inject shellcode in another process with VirtualEx and NtEx functions
  • Check if shellcode is 64 or 32 bit before injection

Known :

  • Debugging 32 bit test injection involves PInvokeStackImbalance

About

A small shellcode loader library written in C#

Resources

Stars

46 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages