/ShellCodeLoaderDlang

A class to load shellcode in memory written in D

Primary LanguageD

ShellCodeLoaderDlang

A class to load shellcode in memory written in D.

How does it work ?

It uses NTApi to load and call the shellcode if loaded. For demo, I use a simple csharp app displaying a messagebox converted in shellcode with https://github.com/TheWover/donut.

How to use it ?

Just instance a new class like :

Loader l = new Loader(your_shellcode_array);
l.Load();

and then call your shellcode :

l.CallFromAThread();//or l.Call

Functions Added :

  • NtAllocateVirtualMemory
  • NtWriteVirtualMemory
  • NtProtectVirtualMemory
  • GetCurrentProcess

What is the difference between 'Call' and 'CallFromAthread' ?

  • 'Call' :
    Image description

  • 'CallFromAthread' :
    Image description

Sources :