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.38k stars 610 forks source link

Running donut only brings up help menu #137

Closed behindblackwalls closed 9 months ago

behindblackwalls commented 9 months ago

Hey there. I'm running Kali Linux

Linux kali 6.3.0-kali1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.3.7-1kali1 (2023-06-29) x86_64 GNU/Linux

Not sure what info is preferred, but I'm finding that whenever I run ./donut under any circumstances it just shows the help menu.

Ran this and nothing

./donut -a 1 -f Test.exe -c Test.Program -m Main

Just the help menu. I've rm -rf'ed the folder and redownloaded. Typed "make" again to reinstall but nothing.

MexHigh commented 9 months ago

You don't specify a file which you want to create shellcode off of. The -f flag is for the shellcode format, not the input file.

zer0u1tra commented 9 months ago

sudo ./donut -f 6 sh.exe

This also brings up the help menu; it seems like execution is broken. (Yes, the file is in the correct directory lol)

MexHigh commented 9 months ago

Try sudo ./donut -f 6 -i sh.exe. I think they changed the way you provide the input file in 1.0.0. However, the help menu hasn't been adjusted yet.

behindblackwalls commented 9 months ago

Try sudo ./donut -f 6 -i sh.exe. I think they changed the way you provide the input file in 1.0.0. However, the help menu hasn't been adjusted yet.

this was it, thank you friend!