-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
I encounter errors when creating a demon implant. I am currently on a M1 Macbook Pro running Kali. Exact version below.
┌──(kali㉿kali)-[~]
└─$ uname -m
aarch64
┌──(kali㉿kali)-[~]
└─$ uname -r
6.17.10+kali-arm64
Cheers.
Did You Try With the Dev Branch?
No (You only tried the main branch...)
Relevant log output
[*] starting build
[*] no sleep obfuscation has been specified
[*] sleep jump gadget option ignored
[*] stack duplication option ignored
[*] no proxy loading technique specified (using LdrLoadDll)
[*] amsi/etw patching disabled
[*] config size [532 bytes]
[*] compiling source
[-] couldn't compile implant: exit status 1
[-] compile output: src/core/CoffeeLdr.c: In function ‘CoffeeCleanup’:
src/core/CoffeeLdr.c:416:23: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
416 | MemSet( Coffee->SecMap, 0, Coffee->Header->NumberOfSections * sizeof( SECTION_MAP ) );
| ~~~~~~^~~~~~~~
| |
| PSECTION_MAP {aka struct _SECTION_MAP *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/CoffeeLdr.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PSECTION_MAP’ {aka ‘struct _SECTION_MAP *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:28:
include/core/CoffeeLdr.h:86:17: note: ‘PSECTION_MAP’ declared here
86 | } SECTION_MAP, *PSECTION_MAP;
| ^~~~~~~~~~~~
src/core/CoffeeLdr.c: In function ‘CoffeeLdr’:
src/core/CoffeeLdr.c:793:17: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
793 | MemSet( Coffee, 0, sizeof( Coffee ) );
| ^~~~~~
| |
| PCOFFEE {aka struct _COFFEE *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE’ {aka ‘struct _COFFEE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/CoffeeLdr.h:104:12: note: ‘PCOFFEE’ declared here
104 | } COFFEE, *PCOFFEE;
| ^~~~~~~
In file included from include/Demon.h:11:
src/core/CoffeeLdr.c: In function ‘CoffeeRunnerThread’:
src/core/CoffeeLdr.c:812:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
812 | DATA_FREE( Param, sizeof( COFFEE_PARAMS ) );
| ^~~~~
| |
| PCOFFEE_PARAMS {aka struct _COFFEE_PARAMS *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_PARAMS’ {aka ‘struct _COFFEE_PARAMS *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/CoffeeLdr.h:28:19: note: ‘PCOFFEE_PARAMS’ declared here
28 | } COFFEE_PARAMS, *PCOFFEE_PARAMS;
| ^~~~~~~~~~~~~~
src/core/Command.c: In function ‘CommandProc’:
src/core/Command.c:320:41: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
320 | MemSet( ModuleNameW, 0, MAX_PATH );
| ^~~~~~~~~~~
| |
| WCHAR * {aka short unsigned int *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Command.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Command.c:408:29: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
408 | MemSet( PtrProcessInfo, 0, ProcessInfoSize );
| ^~~~~~~~~~~~~~
| |
| PSYSTEM_PROCESS_INFORMATION {aka struct _SYSTEM_PROCESS_INFORMATION *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PSYSTEM_PROCESS_INFORMATION’ {aka ‘struct _SYSTEM_PROCESS_INFORMATION *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:10:
include/common/Native.h:4953:32: note: ‘PSYSTEM_PROCESS_INFORMATION’ declared here
4953 | } SYSTEM_PROCESS_INFORMATION, *PSYSTEM_PROCESS_INFORMATION;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/core/Command.c: In function ‘CommandProcList’:
src/core/Command.c:618:64: error: passing argument 2 of ‘PackageAddBytes’ from incompatible pointer type [-Wincompatible-pointer-types]
618 | PackageAddBytes( Package, SysProcessInfo->ImageName.Buffer, SysProcessInfo->ImageName.Length );
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
| |
| PWSTR {aka short unsigned int *}
In file included from include/Demon.h:20:
include/core/Package.h:53:11: note: expected ‘PBYTE’ {aka ‘unsigned char *’} but argument is of type ‘PWSTR’ {aka ‘short unsigned int *’}
53 | PBYTE data,
| ~~~~~~^~~~
/usr/share/mingw-w64/include/minwindef.h:144:17: note: ‘PBYTE’ declared here
144 | typedef BYTE *PBYTE;
| ^~~~~
/usr/share/mingw-w64/include/winnt.h:316:34: note: ‘PWSTR’ declared here
316 | typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR;
| ^~~~~
In file included from src/core/Command.c:8:
src/core/Command.c:665:22: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
665 | MemZero( SysProcessPtr, ProcessInfoSize );
| ^~~~~~~~~~~~~
| |
| PSYS_PROC_INFO {aka struct _SYSTEM_PROCESS_INFORMATION *}
include/core/MiniStd.h:8:34: note: in definition of macro ‘MemZero’
8 | #define MemZero( p, l ) __stosb( p, 0, l )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PSYS_PROC_INFO’ {aka ‘struct _SYSTEM_PROCESS_INFORMATION *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/common/Clr.h:6,
from include/Demon.h:12:
include/core/Win32.h:113:38: note: ‘PSYS_PROC_INFO’ declared here
113 | typedef PSYSTEM_PROCESS_INFORMATION PSYS_PROC_INFO;
| ^~~~~~~~~~~~~~
src/core/Command.c: In function ‘CommandFS’:
src/core/Command.c:700:45: error: initialization of ‘UINT32’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
700 | UINT32 PathSize = NULL;
| ^~~~
In file included from include/Demon.h:11:
src/core/Command.c:723:32: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
723 | DATA_FREE( Path, MAX_PATH * sizeof( WCHAR ) );
| ^~~~
| |
| LPWSTR {aka short unsigned int *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:316:26: note: ‘LPWSTR’ declared here
316 | typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR;
| ^~~~~~
src/core/Command.c:779:36: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
779 | DATA_FREE( DirOrFile, sizeof( DIR_OR_FILE ) );
| ^~~~~~~~~
| |
| PDIR_OR_FILE {aka struct _DIR_OR_FILE *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PDIR_OR_FILE’ {aka ‘struct _DIR_OR_FILE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Win32.h:37:17: note: ‘PDIR_OR_FILE’ declared here
37 | } DIR_OR_FILE, *PDIR_OR_FILE;
| ^~~~~~~~~~~~
src/core/Command.c:785:28: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
785 | DATA_FREE( RootDir, sizeof( ROOT_DIR ) );
| ^~~~~~~
| |
| PROOT_DIR {aka struct _ROOT_DIR *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PROOT_DIR’ {aka ‘struct _ROOT_DIR *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Win32.h:55:14: note: ‘PROOT_DIR’ declared here
55 | } ROOT_DIR, *PROOT_DIR;
| ^~~~~~~~~
src/core/Command.c:789:24: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
789 | DATA_FREE( Path, MAX_PATH * sizeof( WCHAR ) );
| ^~~~
| |
| LPWSTR {aka short unsigned int *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:316:26: note: ‘LPWSTR’ declared here
316 | typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR;
| ^~~~~~
src/core/Command.c: In function ‘CommandInjectShellcode’:
src/core/Command.c:1289:39: error: passing argument 2 of ‘ParserGetBytes’ from incompatible pointer type [-Wincompatible-pointer-types]
1289 | Payload = ParserGetBytes( Parser, &Size );
| ^~~~~
| |
| DWORD * {aka long unsigned int *}
In file included from include/core/Command.h:4,
from include/core/Package.h:4:
include/core/Parser.h:23:48: note: expected ‘PUINT32’ {aka ‘unsigned int *’} but argument is of type ‘DWORD *’ {aka ‘long unsigned int *’}
23 | PBYTE ParserGetBytes( PPARSER parser, PUINT32 size );
| ~~~~~~~~^~~~
In file included from /usr/share/mingw-w64/include/winnt.h:157:
/usr/share/mingw-w64/include/basetsd.h:35:32: note: ‘PUINT32’ declared here
35 | typedef unsigned int UINT32,*PUINT32;
| ^~~~~~~
src/core/Command.c:1290:39: error: passing argument 2 of ‘ParserGetBytes’ from incompatible pointer type [-Wincompatible-pointer-types]
1290 | Argv = ParserGetBytes( Parser, &Argc );
| ^~~~~
| |
| DWORD * {aka long unsigned int *}
include/core/Parser.h:23:48: note: expected ‘PUINT32’ {aka ‘unsigned int *’} but argument is of type ‘DWORD *’ {aka ‘long unsigned int *’}
23 | PBYTE ParserGetBytes( PPARSER parser, PUINT32 size );
| ~~~~~~~~^~~~
/usr/share/mingw-w64/include/basetsd.h:35:32: note: ‘PUINT32’ declared here
35 | typedef unsigned int UINT32,*PUINT32;
| ^~~~~~~
src/core/Command.c: In function ‘CommandToken’:
src/core/Command.c:1393:53: error: passing argument 2 of ‘PackageAddString’ from incompatible pointer type [-Wincompatible-pointer-types]
1393 | PackageAddString( Package, TokenData->DomainUser );
| ~~~~~~~~~^~~~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
include/core/Package.h:59:11: note: expected ‘PCHAR’ {aka ‘char *’} but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
59 | PCHAR data
| ~~~~~~^~~~
/usr/share/mingw-w64/include/winnt.h:351:17: note: ‘PCHAR’ declared here
351 | typedef CHAR *PCHAR,*LPCH,*PCH;
| ^~~~~
/usr/share/mingw-w64/include/winnt.h:316:26: note: ‘LPWSTR’ declared here
316 | typedef WCHAR *NWPSTR,*LPWSTR,*PWSTR;
| ^~~~~~
src/core/Command.c:1524:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1524 | MemSet( TokenPrivs, 0, sizeof( TOKEN_PRIVILEGES ) );
| ^~~~~~~~~~
| |
| PTOKEN_PRIVILEGES {aka struct _TOKEN_PRIVILEGES *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_PRIVILEGES’ {aka ‘struct _TOKEN_PRIVILEGES *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:4209:25: note: ‘PTOKEN_PRIVILEGES’ declared here
4209 | } TOKEN_PRIVILEGES,*PTOKEN_PRIVILEGES;
| ^~~~~~~~~~~~~~~~~
src/core/Command.c:1559:29: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1559 | MemSet( UserDomain, 0, UserDomainSize );
| ^~~~~~~~~~
| |
| PWCHAR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:314:18: note: ‘PWCHAR’ declared here
314 | typedef WCHAR *PWCHAR,*LPWCH,*PWCH;
| ^~~~~~
src/core/Command.c:1562:48: error: passing argument 2 of ‘StringConcatW’ from incompatible pointer type [-Wincompatible-pointer-types]
1562 | StringConcatW( UserDomain, Deli );
| ^~~~
| |
| CHAR * {aka char *}
include/core/MiniStd.h:20:45: note: expected ‘PWCHAR’ {aka ‘short unsigned int *’} but argument is of type ‘CHAR *’ {aka ‘char *’}
20 | PWCHAR StringConcatW(PWCHAR String, PWCHAR String2);
| ~~~~~~~^~~~~~~
/usr/share/mingw-w64/include/winnt.h:314:18: note: ‘PWCHAR’ declared here
314 | typedef WCHAR *PWCHAR,*LPWCH,*PWCH;
| ^~~~~~
src/core/Command.c:1698:28: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1698 | DATA_FREE( TokenList, NumTokens * sizeof( USER_TOKEN_DATA ) );
| ^~~~~~~~~
| |
| PUSER_TOKEN_DATA {aka struct _USER_TOKEN_DATA *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PUSER_TOKEN_DATA’ {aka ‘struct _USER_TOKEN_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:16:
include/core/Token.h:51:21: note: ‘PUSER_TOKEN_DATA’ declared here
51 | } USER_TOKEN_DATA, *PUSER_TOKEN_DATA;
| ^~~~~~~~~~~~~~~~
src/core/Command.c: In function ‘CommandAssemblyListVersion’:
src/core/Command.c:1799:10: error: implicit declaration of function ‘RtMscoree’ [-Wimplicit-function-declaration]
1799 | if ( RtMscoree() )
| ^~~~~~~~~
src/core/Command.c: In function ‘CommandConfig’:
src/core/Command.c:2019:49: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
2019 | MemSet( Instance->Config.Process.Spawn64, 0, StringLengthW( Instance->Config.Process.Spawn64 ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| PWCHAR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:314:18: note: ‘PWCHAR’ declared here
314 | typedef WCHAR *PWCHAR,*LPWCH,*PWCH;
| ^~~~~~
src/core/Command.c:2041:49: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
2041 | MemSet( Instance->Config.Process.Spawn86, 0, StringLengthW( Instance->Config.Process.Spawn86 ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| PWCHAR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:314:18: note: ‘PWCHAR’ declared here
314 | typedef WCHAR *PWCHAR,*LPWCH,*PWCH;
| ^~~~~~
src/core/Command.c: In function ‘CommandKerberos’:
src/core/Command.c:3109:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
3109 | MemSet( luid, 0, sizeof( LUID ) );
| ^~~~
| |
| LUID *
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘LUID *’
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Command.c:3188:40: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
3188 | DATA_FREE( Sessions->Tickets, sizeof( TICKET_INFORMATION ) );
| ~~~~~~~~^~~~~~~~~
| |
| PTICKET_INFORMATION {aka struct _TICKET_INFORMATION *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PTICKET_INFORMATION’ {aka ‘struct _TICKET_INFORMATION *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:24:
include/core/Kerberos.h:38:23: note: ‘PTICKET_INFORMATION’ declared here
38 | } TICKET_INFORMATION,*PTICKET_INFORMATION;
| ^~~~~~~~~~~~~~~~~~~
src/core/Command.c:3192:28: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
3192 | DATA_FREE( Sessions, sizeof( SESSION_INFORMATION ) );
| ^~~~~~~~
| |
| PSESSION_INFORMATION {aka struct _SESSION_INFORMATION *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PSESSION_INFORMATION’ {aka ‘struct _SESSION_INFORMATION *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Kerberos.h:54:24: note: ‘PSESSION_INFORMATION’ declared here
54 | } SESSION_INFORMATION,*PSESSION_INFORMATION;
| ^~~~~~~~~~~~~~~~~~~~
src/core/Command.c: In function ‘CommandExit’:
src/core/Command.c:3378:17: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
3378 | MemSet( SocketEntry, 0, sizeof( SOCKET_DATA ) );
| ^~~~~~~~~~~
| |
| PSOCKET_DATA {aka struct _SOCKET_DATA *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PSOCKET_DATA’ {aka ‘struct _SOCKET_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:23:
include/core/Socket.h:62:17: note: ‘PSOCKET_DATA’ declared here
62 | } SOCKET_DATA, *PSOCKET_DATA;
| ^~~~~~~~~~~~
src/core/Command.c:3442:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
3442 | DATA_FREE( KeyValueEntry, sizeof( COFFEE_KEY_VALUE ) );
| ^~~~~~~~~~~~~
| |
| PCOFFEE_KEY_VALUE {aka struct _COFFEE_KEY_VALUE *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_KEY_VALUE’ {aka ‘struct _COFFEE_KEY_VALUE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:28:
include/core/CoffeeLdr.h:114:22: note: ‘PCOFFEE_KEY_VALUE’ declared here
114 | } COFFEE_KEY_VALUE, *PCOFFEE_KEY_VALUE;
| ^~~~~~~~~~~~~~~~~
src/core/Command.c:3472:15: error: assignment to ‘SIZE_T’ {aka ‘long long unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
3472 | ImageSize = NULL;
| ^
src/core/Dotnet.c: In function ‘DotnetClose’:
src/core/Dotnet.c:402:33: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
402 | MemSet( Instance->Dotnet->RopInit, 0, sizeof( CONTEXT ) );
| ~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| PCONTEXT {aka struct _CONTEXT *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Dotnet.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:1916:14: note: ‘PCONTEXT’ declared here
1916 | } CONTEXT,*PCONTEXT;
| ^~~~~~~~
src/core/Dotnet.c:409:33: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
409 | MemSet( Instance->Dotnet->RopInvk, 0, sizeof( CONTEXT ) );
| ~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| PCONTEXT {aka struct _CONTEXT *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:1916:14: note: ‘PCONTEXT’ declared here
1916 | } CONTEXT,*PCONTEXT;
| ^~~~~~~~
src/core/Dotnet.c:416:33: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
416 | MemSet( Instance->Dotnet->RopEvnt, 0, sizeof( CONTEXT ) );
| ~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| PCONTEXT {aka struct _CONTEXT *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:1916:14: note: ‘PCONTEXT’ declared here
1916 | } CONTEXT,*PCONTEXT;
| ^~~~~~~~
src/core/Dotnet.c:423:33: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
423 | MemSet( Instance->Dotnet->RopExit, 0, sizeof( CONTEXT ) );
| ~~~~~~~~~~~~~~~~^~~~~~~~~
| |
| PCONTEXT {aka struct _CONTEXT *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
/usr/share/mingw-w64/include/winnt.h:1916:14: note: ‘PCONTEXT’ declared here
1916 | } CONTEXT,*PCONTEXT;
| ^~~~~~~~
src/core/Dotnet.c:495:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
495 | MemSet( Instance->Dotnet, 0, sizeof( DOTNET_ARGS ) );
| ~~~~~~~~^~~~~~~~
| |
| PDOTNET_ARGS {aka struct _DOTNET_ARGS *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PDOTNET_ARGS’ {aka ‘struct _DOTNET_ARGS *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:12:
include/common/Clr.h:707:17: note: ‘PDOTNET_ARGS’ declared here
707 | } DOTNET_ARGS, *PDOTNET_ARGS;
| ^~~~~~~~~~~~
src/core/Download.c: In function ‘DownloadFree’:
src/core/Download.c:51:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
51 | MemSet( Download, 0, sizeof( DOWNLOAD_DATA ) );
| ^~~~~~~~
| |
| PDOWNLOAD_DATA {aka struct _DOWNLOAD_DATA *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Download.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PDOWNLOAD_DATA’ {aka ‘struct _DOWNLOAD_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:21:
include/core/Download.h:45:19: note: ‘PDOWNLOAD_DATA’ declared here
45 | } DOWNLOAD_DATA, *PDOWNLOAD_DATA;
| ^~~~~~~~~~~~~~
src/core/Download.c: In function ‘MemFileFree’:
src/core/Download.c:350:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
350 | MemSet( MemFile, 0, sizeof( MEM_FILE ) );
| ^~~~~~~
| |
| PMEM_FILE {aka struct _MEM_FILE *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PMEM_FILE’ {aka ‘struct _MEM_FILE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Download.h:67:14: note: ‘PMEM_FILE’ declared here
67 | } MEM_FILE, *PMEM_FILE;
| ^~~~~~~~~
In file included from src/core/HwBpEngine.c:5:
src/core/HwBpEngine.c: In function ‘HwBpEngineRemove’:
src/core/HwBpEngine.c:246:22: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
246 | MemZero( BpEntry, sizeof( BP_LIST ) );
| ^~~~~~~
| |
| PBP_LIST {aka struct _BP_LIST *}
include/core/MiniStd.h:8:34: note: in definition of macro ‘MemZero’
8 | #define MemZero( p, l ) __stosb( p, 0, l )
| ^
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/HwBpEngine.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PBP_LIST’ {aka ‘struct _BP_LIST *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:27:
include/core/HwBpEngine.h:16:13: note: ‘PBP_LIST’ declared here
16 | } BP_LIST, *PBP_LIST;
| ^~~~~~~~
src/core/HwBpEngine.c: In function ‘HwBpEngineDestroy’:
src/core/HwBpEngine.c:295:18: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
295 | MemZero( BpEntry, sizeof( BP_LIST ) );
| ^~~~~~~
| |
| PBP_LIST {aka struct _BP_LIST *}
include/core/MiniStd.h:8:34: note: in definition of macro ‘MemZero’
8 | #define MemZero( p, l ) __stosb( p, 0, l )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PBP_LIST’ {aka ‘struct _BP_LIST *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/HwBpEngine.h:16:13: note: ‘PBP_LIST’ declared here
16 | } BP_LIST, *PBP_LIST;
| ^~~~~~~~
src/core/Jobs.c: In function ‘JobRemove’:
src/core/Jobs.c:428:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
428 | MemSet( JobToRemove, 0, sizeof( JOB_DATA ) );
| ^~~~~~~~~~~
| |
| PJOB_DATA {aka struct _JOB_DATA *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Jobs.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PJOB_DATA’ {aka ‘struct _JOB_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:19:
include/core/Jobs.h:23:14: note: ‘PJOB_DATA’ declared here
23 | } JOB_DATA, *PJOB_DATA;
| ^~~~~~~~~
In file included from src/core/Kerberos.c:5:
src/core/Kerberos.c: In function ‘ElevateToSystem’:
src/core/Kerberos.c:86:14: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
86 | MemZero( winlogon, sizeof( winlogon ) );
| ^~~~~~~~
| |
| WCHAR * {aka short unsigned int *}
include/core/MiniStd.h:8:34: note: in definition of macro ‘MemZero’
8 | #define MemZero( p, l ) __stosb( p, 0, l )
| ^
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Kerberos.c:2:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Obf.c: In function ‘FoliageObf’:
src/core/Obf.c:315:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
315 | MemSet( &Rc4, 0, sizeof( USTRING ) );
| ^~~~
| |
| USTRING *
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Obf.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘USTRING *’
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Obf.c:316:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
316 | MemSet( &Key, 0, sizeof( USTRING ) );
| ^~~~
| |
| USTRING *
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘USTRING *’
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Obf.c:317:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
317 | MemSet( &Random, 0, 0x10 );
| ^~~~~~~
| |
| UCHAR (*)[16] {aka unsigned char (*)[16]}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘UCHAR (*)[16]’ {aka ‘unsigned char (*)[16]’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/ObjectApi.c: In function ‘BeaconSpawnTemporaryProcess’:
src/core/ObjectApi.c:477:111: error: passing argument 9 of ‘Instance->Win32.CreateProcessW’ from incompatible pointer type [-Wincompatible-pointer-types]
477 | bSuccess = Instance->Win32.CreateProcessW(NULL, Path, NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, sInfo, pInfo);
| ^~~~~
| |
| STARTUPINFO * {aka STARTUPINFOA *}
src/core/ObjectApi.c:477:111: note: expected ‘LPSTARTUPINFOW’ {aka ‘struct _STARTUPINFOW *’} but argument is of type ‘STARTUPINFO *’ {aka ‘STARTUPINFOA *’}
In file included from /usr/share/mingw-w64/include/winbase.h:29,
from /usr/share/mingw-w64/include/windows.h:70,
from include/Demon.h:4,
from src/core/ObjectApi.c:5:
/usr/share/mingw-w64/include/processthreadsapi.h:91:20: note: ‘LPSTARTUPINFOW’ declared here
91 | } STARTUPINFOW, *LPSTARTUPINFOW;
| ^~~~~~~~~~~~~~
src/core/ObjectApi.c:481:140: error: passing argument 8 of ‘Instance->Win32.CreateProcessWithTokenW’ from incompatible pointer type [-Wincompatible-pointer-types]
481 | bSuccess = Instance->Win32.CreateProcessWithTokenW(hToken, LOGON_WITH_PROFILE, NULL, Path, CREATE_UNICODE_ENVIRONMENT, NULL, NULL, sInfo, pInfo);
| ^~~~~
| |
| STARTUPINFO * {aka STARTUPINFOA *}
src/core/ObjectApi.c:481:140: note: expected ‘LPSTARTUPINFOW’ {aka ‘struct _STARTUPINFOW *’} but argument is of type ‘STARTUPINFO *’ {aka ‘STARTUPINFOA *’}
/usr/share/mingw-w64/include/processthreadsapi.h:91:20: note: ‘LPSTARTUPINFOW’ declared here
91 | } STARTUPINFOW, *LPSTARTUPINFOW;
| ^~~~~~~~~~~~~~
In file included from include/Demon.h:11:
src/core/ObjectApi.c: In function ‘BeaconRemoveValue’:
src/core/ObjectApi.c:678:24: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
678 | DATA_FREE( Current, sizeof( COFFEE_KEY_VALUE ) );
| ^~~~~~~
| |
| PCOFFEE_KEY_VALUE {aka struct _COFFEE_KEY_VALUE *}
include/common/Macros.h:25:17: note: in definition of macro ‘DATA_FREE’
25 | MemSet( d, 0, l ); \
| ^
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_KEY_VALUE’ {aka ‘struct _COFFEE_KEY_VALUE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:28:
include/core/CoffeeLdr.h:114:22: note: ‘PCOFFEE_KEY_VALUE’ declared here
114 | } COFFEE_KEY_VALUE, *PCOFFEE_KEY_VALUE;
| ^~~~~~~~~~~~~~~~~
src/core/Package.c: In function ‘PackageDestroy’:
src/core/Package.c:222:17: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
222 | MemSet( Package, 0, sizeof( PACKAGE ) );
| ^~~~~~~
| |
| PPACKAGE {aka struct _PACKAGE *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/core/Parser.h:4,
from include/core/Command.h:4,
from include/core/Package.h:4,
from src/core/Package.c:2:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PPACKAGE’ {aka ‘struct _PACKAGE *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Package.h:18:13: note: ‘PPACKAGE’ declared here
18 | } PACKAGE, *PPACKAGE;
| ^~~~~~~~
src/core/Pivot.c: In function ‘PivotRemove’:
src/core/Pivot.c:171:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
171 | MemSet( Instance->SmbPivots, 0, sizeof( PIVOT_DATA ) );
| ~~~~~~~~^~~~~~~~~~~
| |
| PPIVOT_DATA {aka struct _PIVOT_DATA *}
In file included from /usr/share/mingw-w64/include/winnt.h:27,
from /usr/share/mingw-w64/include/minwindef.h:163,
from /usr/share/mingw-w64/include/windef.h:9,
from /usr/share/mingw-w64/include/windows.h:69,
from include/Demon.h:4,
from src/core/Pivot.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PPIVOT_DATA’ {aka ‘struct _PIVOT_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:17:
include/core/Pivot.h:15:16: note: ‘PPIVOT_DATA’ declared here
15 | } PIVOT_DATA, *PPIVOT_DATA;
| ^~~~~~~~~~~
src/core/Pivot.c:203:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
203 | MemSet( PivotData, 0, sizeof( PIVOT_DATA ) );
| ^~~~~~~~~
| |
| PPIVOT_DATA {aka struct _PIVOT_DATA *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1796:1: note: expected ‘unsigned char *’ but argument is of type ‘PPIVOT_DATA’ {aka ‘struct _PIVOT_DATA *’}
1796 | __buildstos(__stosb, unsigned char, "b|b")
| ^
include/core/Pivot.h:15:16: note: ‘PPIVOT_DATA’ declared hereDid You Read Over Your Issue First?
- I declare I made an effort and provided the necessary information for replication of the issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working