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

Error to install "dev branch" #109

Closed thiagolmoraes closed 1 year ago

thiagolmoraes commented 2 years ago

According to #107

I downloaded the dev branch and tried to install

x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -I/usr/include/python3.10 -c donut.c -o build/temp.linux-x86_64-3.10/donut.o
In file included from donut.c:32:
include/donut.h:393:23: error: ‘MAX_PATH’ undeclared here (not in a function)
  393 |     char        decoy[MAX_PATH * 2];            // path of decoy module
      |                       ^~~~~~~~
donut.c: In function ‘read_file_info’:
donut.c:573:19: warning: comparison of integer expressions of different signedness: ‘ULONG64’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  573 |           if (ofs != -1) {
      |                   ^~
donut.c:578:22: warning: comparison of integer expressions of different signedness: ‘ULONG64’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  578 |               if(ofs != -1) {
      |                      ^~
donut.c: In function ‘gen_random_string’:
donut.c:674:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  674 |     for(i=0; i<len; i++) {
      |               ^
donut.c: In function ‘is_dll_export’:
donut.c:1479:16: warning: comparison of integer expressions of different signedness: ‘ULONG64’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
 1479 |         if(ofs != -1) {
      |                ^~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

Any ideas? is the repo broken?

TheWover commented 1 year ago

The dev branch is still in development. This will be fixed for v1.0 release.