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.53k stars 628 forks source link

Building MinGW32 + Clang 10 + wclang on Ubuntu 20.04 #105

Open janedoe-lab opened 2 years ago

janedoe-lab commented 2 years ago

These changes required to make master branch of donut compile using Clang 10 with Mingw32 under Ubuntu 20.04.

Things working for me:

What doesn't work:

S4ntiagoP commented 2 years ago

Nice work @janedoe-lab ! One question: Do you happen to know how to tell clang that it should use Intel syntax from the inline assembly?

janedoe-lab commented 2 years ago

Sorry, not experienced much in all these tools. This branch is a result of bruteforcing a right set of options to get it going, and not based on any prior knowledge of these tools :)

S4ntiagoP commented 2 years ago

understood, thanks 😄

TheWover commented 1 year ago

Since this is incomplete but may still be valuable to anyone attempting to do the same thing, I will not merge it for version 1.0 but will mark it as invalid and may revisit later.