TheWover / donut

Generates x86, x64, or AMD64+x86 position-independent shellcode that loads .NET Assemblies, PE files, and other Windows payloads from memory and runs them with parameters
BSD 3-Clause "New" or "Revised" License
3.61k stars 638 forks source link

Commandline for umanaged EXE/DLL through hooking (new branch) #14

Closed antonioCoco closed 5 years ago

antonioCoco commented 5 years ago

Hi @odzhan, as a followup of #7 and #13 i send the PR for the "hook" branch. This code is synced with the last commit of the hook branch. It just replace the way the commandline works for unmanaged exe through hooking functions instead of patching data section. It has been heavily tested on x86 and x64 binaries for main and wmain and compiled with both mingw and msvc. I tested also gcc compiler on linux for donut binary. Everything works as expected. Feel free to ask anything if needed :)

big thanks to @stefano118 for the help

odzhan commented 5 years ago

Thanks @antonioCoco Will have a look over the weekend.