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 637 forks source link

Support the exit parameter in the Python module (donut-shellcode) #72

Closed physics-sec closed 4 years ago

physics-sec commented 4 years ago

When using the donut python module is not possible to specify the exit function (thread or process)

If I understood the code correctly, it shouldn't be too hard, just add this code at the end of ThreadProc in payload.c on the donut-shellcode C code. (I couldn't find the repo of the python module, just downloaded the code from here)

Hope you will consider adding this options.
Thank you

physics-sec commented 4 years ago

If you build from sources: sudo pip3 install . you can use that option... my bad!