Skip to content

Havoc Implant Generated payload Feature is broken due to the new update

[*] 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 [542 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSECTION_MAP’ {aka ‘struct _SECTION_MAP *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE’ {aka ‘struct _COFFEE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_PARAMS’ {aka ‘struct _COFFEE_PARAMS *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSYSTEM_PROCESS_INFORMATION’ {aka ‘struct _SYSTEM_PROCESS_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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,
| ~~~~~~^~~~
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSYS_PROC_INFO’ {aka ‘struct _SYSTEM_PROCESS_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PDIR_OR_FILE’ {aka ‘struct _DIR_OR_FILE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PROOT_DIR’ {aka ‘struct _ROOT_DIR *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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 );
| ~~~~~~~~^~~~
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 );
| ~~~~~~~~^~~~
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
| ~~~~~~^~~~
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_PRIVILEGES’ {aka ‘struct _TOKEN_PRIVILEGES *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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);
| ~~~~~~~^~~~~~~
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PUSER_TOKEN_DATA’ {aka ‘struct _USER_TOKEN_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LUID *’
1773 | __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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTICKET_INFORMATION’ {aka ‘struct _TICKET_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSESSION_INFORMATION’ {aka ‘struct _SESSION_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSOCKET_DATA’ {aka ‘struct _SOCKET_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_KEY_VALUE’ {aka ‘struct _COFFEE_KEY_VALUE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCONTEXT’ {aka ‘struct _CONTEXT *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PDOTNET_ARGS’ {aka ‘struct _DOTNET_ARGS *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PDOWNLOAD_DATA’ {aka ‘struct _DOWNLOAD_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PMEM_FILE’ {aka ‘struct _MEM_FILE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PBP_LIST’ {aka ‘struct _BP_LIST *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PBP_LIST’ {aka ‘struct _BP_LIST *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Jobs.c: In function ‘JobRemove’:
src/core/Jobs.c:438:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
438 | 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PJOB_DATA’ {aka ‘struct _JOB_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘USTRING *’
1773 | __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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘USTRING *’
1773 | __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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘UCHAR (*)[16]’ {aka ‘unsigned char (*)[16]’}
1773 | __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 *’}
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 *’}
In file included from include/Demon.h:11,
from src/core/ObjectApi.c:5:
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,
from include/Demon.h:4:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PCOFFEE_KEY_VALUE’ {aka ‘struct _COFFEE_KEY_VALUE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PPACKAGE’ {aka ‘struct _PACKAGE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PPIVOT_DATA’ {aka ‘struct _PIVOT_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PPIVOT_DATA’ {aka ‘struct _PIVOT_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Socket.c: In function ‘SocketNew’:
src/core/Socket.c:78:95: error: passing argument 6 of ‘Instance->Win32.WSASocketA’ makes integer from pointer without a cast [-Wint-conversion]
78 | WinSock = Instance->Win32.WSASocketA( AF_INET, SOCK_STREAM, IPPROTO_TCP, NULL, 0, NULL );
| ^~~~
| |
| void *
src/core/Socket.c:78:95: note: expected ‘DWORD’ {aka ‘long unsigned int’} but argument is of type ‘void *’
src/core/Socket.c: In function ‘SocketRead’:
src/core/Socket.c:323:77: error: passing argument 3 of ‘Instance->Win32.ioctlsocket’ from incompatible pointer type [-Wincompatible-pointer-types]
323 | if ( Instance->Win32.ioctlsocket( Socket->Socket, FIONREAD, &PartialData.Length ) == SOCKET_ERROR )
| ^~~~~~~~~~~~~~~~~~~
| |
| UINT32 * {aka unsigned int *}
src/core/Socket.c:323:77: note: expected ‘u_long *’ {aka ‘long unsigned int *’} but argument is of type ‘UINT32 *’ {aka ‘unsigned int *’}
src/core/Socket.c:338:93: error: passing argument 4 of ‘RecvAll’ from incompatible pointer type [-Wincompatible-pointer-types]
338 | if ( ! RecvAll( Socket->Socket, PartialData.Buffer, PartialData.Length, &PartialData.Length ) ) {
| ^~~~~~~~~~~~~~~~~~~
| |
| UINT32 * {aka unsigned int *}
src/core/Socket.c:7:65: note: expected ‘PDWORD’ {aka ‘long unsigned int *’} but argument is of type ‘UINT32 *’ {aka ‘unsigned int *’}
7 | BOOL RecvAll( SOCKET Socket, PVOID Buffer, DWORD Length, PDWORD BytesRead )
| ~~~~~~~^~~~~~~~~
src/core/Socket.c: In function ‘SocketFree’:
src/core/Socket.c:477:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
477 | MemSet( Socket, 0, sizeof( SOCKET_DATA ) );
| ^~~~~~
| |
| PSOCKET_DATA {aka struct _SOCKET_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/Socket.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSOCKET_DATA’ {aka ‘struct _SOCKET_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Syscalls.c: In function ‘FindSsnOfHookedSyscall’:
src/core/Syscalls.c:207:31: error: initialization of ‘WORD’ {aka ‘short unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
207 | WORD NeighbourSsn = NULL;
| ^~~~
In file included from include/Demon.h:11,
from src/core/Token.c:1:
src/core/Token.c: In function ‘TokenQueryOwner’:
src/core/Token.c:182:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
182 | DATA_FREE( UserInfo, UserSize )
| ^~~~~~~~
| |
| PTOKEN_USER {aka struct _TOKEN_USER *}
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,
from include/Demon.h:4:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_USER’ {aka ‘struct _TOKEN_USER *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘TokenRemove’:
src/core/Token.c:503:43: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
503 | MemSet( Instance->Tokens.Vault->DomainUser, 0, StringLengthW( Instance->Tokens.Vault->DomainUser ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:510:43: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
510 | MemSet( Instance->Tokens.Vault->lpUser, 0, StringLengthW( Instance->Tokens.Vault->lpUser ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:517:43: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
517 | MemSet( Instance->Tokens.Vault->lpDomain, 0, StringLengthW( Instance->Tokens.Vault->lpDomain ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:524:43: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
524 | MemSet( Instance->Tokens.Vault->lpPassword, 0, StringLengthW( Instance->Tokens.Vault->lpPassword ) * sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:529:33: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
529 | MemSet( Instance->Tokens.Vault, 0, sizeof( TOKEN_LIST_DATA ) );
| ~~~~~~~~~~~~~~~~^~~~~~
| |
| PTOKEN_LIST_DATA {aka struct _TOKEN_LIST_DATA *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_LIST_DATA’ {aka ‘struct _TOKEN_LIST_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:558:38: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
558 | MemSet( TokenItem->DomainUser, 0, StringLengthW( TokenItem->DomainUser ) * sizeof( WCHAR ) );
| ~~~~~~~~~^~~~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:565:38: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
565 | MemSet( TokenItem->lpUser, 0, StringLengthW( TokenItem->lpUser ) * sizeof( WCHAR ) );
| ~~~~~~~~~^~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:572:38: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
572 | MemSet( TokenItem->lpDomain, 0, StringLengthW( TokenItem->lpDomain ) * sizeof( WCHAR ) );
| ~~~~~~~~~^~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:579:38: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
579 | MemSet( TokenItem->lpPassword, 0, StringLengthW( TokenItem->lpPassword ) * sizeof( WCHAR ) );
| ~~~~~~~~~^~~~~~~~~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:584:25: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
584 | MemSet( TokenItem, 0, sizeof( TOKEN_LIST_DATA ) );
| ^~~~~~~~~
| |
| PTOKEN_LIST_DATA {aka struct _TOKEN_LIST_DATA *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_LIST_DATA’ {aka ‘struct _TOKEN_LIST_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘ProcessUserToken’:
src/core/Token.c:846:10: error: implicit declaration of function ‘GetTokenInfo’; did you mean ‘GetIconInfo’? [-Wimplicit-function-declaration]
846 | if ( GetTokenInfo( hToken, &TokenType, &Integrity, &ImpersonationLevel, &UserDomain ) )
| ^~~~~~~~~~~~
| GetIconInfo
src/core/Token.c:854:18: error: implicit declaration of function ‘IsNotCurrentUser’; did you mean ‘NtCurrentPeb’? [-Wimplicit-function-declaration]
854 | if ( IsNotCurrentUser( CheckUsername, CurrentUser, &UserDomain ) )
| ^~~~~~~~~~~~~~~~
| NtCurrentPeb
src/core/Token.c: In function ‘QueryObjectTypesInfo’:
src/core/Token.c:903:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
903 | DATA_FREE( ObjTypeInformation, PrevBufferLength );
| ^~~~~~~~~~~~~~~~~~
| |
| POBJECT_TYPES_INFORMATION {aka struct _OBJECT_TYPES_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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘POBJECT_TYPES_INFORMATION’ {aka ‘struct _OBJECT_TYPES_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘GetTypeIndexToken’:
src/core/Token.c:944:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
944 | DATA_FREE( ObjectTypes, ObjectTypesSize );
| ^~~~~~~~~~~
| |
| POBJECT_TYPES_INFORMATION {aka struct _OBJECT_TYPES_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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘POBJECT_TYPES_INFORMATION’ {aka ‘struct _OBJECT_TYPES_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘GetTokenInfo’:
src/core/Token.c:1017:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1017 | DATA_FREE( TokenStatisticsInformation,returned_tokinfo_length );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| PTOKEN_STATISTICS {aka struct _TOKEN_STATISTICS *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_STATISTICS’ {aka ‘struct _TOKEN_STATISTICS *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:1018:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1018 | DATA_FREE( TokenIntegrityInformation,cbSize );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| PTOKEN_MANDATORY_LABEL {aka struct _TOKEN_MANDATORY_LABEL *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PTOKEN_MANDATORY_LABEL’ {aka ‘struct _TOKEN_MANDATORY_LABEL *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:1019:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1019 | DATA_FREE( TokenImpersonationInformation,returned_tokimp_length );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| PSECURITY_IMPERSONATION_LEVEL {aka enum _SECURITY_IMPERSONATION_LEVEL *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSECURITY_IMPERSONATION_LEVEL’ {aka ‘enum _SECURITY_IMPERSONATION_LEVEL *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘GetProcessesFromHandleTable’:
src/core/Token.c:1069:19: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1069 | DATA_FREE(process_list, sizeof(PROCESS_LIST));
| ^~~~~~~~~~~~
| |
| PPROCESS_LIST {aka struct _PROCESS_LIST *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PPROCESS_LIST’ {aka ‘struct _PROCESS_LIST *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c: In function ‘ListTokens’:
src/core/Token.c:1245:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1245 | DATA_FREE( Tokens, 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PUSER_TOKEN_DATA’ {aka ‘struct _USER_TOKEN_DATA *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:1248:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1248 | DATA_FREE( handleTableInformation, handleTableInformationSize );
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| PSYSTEM_HANDLE_INFORMATION {aka struct _SYSTEM_HANDLE_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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSYSTEM_HANDLE_INFORMATION’ {aka ‘struct _SYSTEM_HANDLE_INFORMATION *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Token.c:1250:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1250 | DATA_FREE( ProcessList, sizeof( PROCESS_LIST ) )
| ^~~~~~~~~~~
| |
| PPROCESS_LIST {aka struct _PROCESS_LIST *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PPROCESS_LIST’ {aka ‘struct _PROCESS_LIST *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from src/core/Win32.c:4:
src/core/Win32.c: In function ‘LdrModulePebByString’:
src/core/Win32.c:146:22: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
146 | MemZero( Name, MAX_PATH );
| ^~~~
| |
| LPWSTR {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/Win32.c:1:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:151:18: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
151 | MemZero( Name, MAX_PATH );
| ^~~~
| |
| LPWSTR {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 )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c: In function ‘LdrModuleSearch’:
src/core/Win32.c:179:16: error: assignment to ‘PLDR_DATA_TABLE_ENTRY’ {aka ‘struct _LDR_DATA_TABLE_ENTRY *’} from incompatible pointer type ‘struct _LIST_ENTRY *’ [-Wincompatible-pointer-types]
179 | Entry = Instance->Teb->ProcessEnvironmentBlock->Ldr->InLoadOrderModuleList.Flink;
| ^
src/core/Win32.c:184:12: error: implicit declaration of function ‘EndsWithIW’ [-Wimplicit-function-declaration]
184 | if ( ! EndsWithIW( ModuleName, Dll ) )
| ^~~~~~~~~~
src/core/Win32.c:189:14: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
189 | MemZero( Dll, sizeof( Dll ) );
| ^~~
| |
| 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 )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:193:16: error: implicit declaration of function ‘StringCompareIW’; did you mean ‘StringNCompareIW’? [-Wimplicit-function-declaration]
193 | if ( ! StringCompareIW( Name, Entry->BaseDllName.Buffer ) ) {
| ^~~~~~~~~~~~~~~
| StringNCompareIW
src/core/Win32.c:194:22: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
194 | MemZero( Name, sizeof( Name ) );
| ^~~~
| |
| 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 )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:197:15: error: assignment to ‘PLDR_DATA_TABLE_ENTRY’ {aka ‘struct _LDR_DATA_TABLE_ENTRY *’} from incompatible pointer type ‘struct _LIST_ENTRY *’ [-Wincompatible-pointer-types]
197 | Entry = Entry->InLoadOrderLinks.Flink;
| ^
src/core/Win32.c:200:14: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
200 | MemZero( Name, sizeof( Name ) );
| ^~~~
| |
| 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 )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c: In function ‘LdrModuleLoad’:
src/core/Win32.c:351:14: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
351 | MemZero( NameW, sizeof( NameW ) );
| ^~~~~
| |
| 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 )
| ^
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘WCHAR *’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:352:14: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
352 | MemZero( &UnicodeString, sizeof( UnicodeString ) );
| ^~~~~~~~~~~~~~
| |
| UNICODE_STRING * {aka struct _UNICODE_STRING *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘UNICODE_STRING *’ {aka ‘struct _UNICODE_STRING *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c: In function ‘ProcessCreate’:
src/core/Win32.c:608:17: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
608 | MemSet( AnonPipe, 0, sizeof( ANONPIPE ) );
| ^~~~~~~~
| |
| PANONPIPE {aka struct _ANONPIPE *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PANONPIPE’ {aka ‘struct _ANONPIPE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
In file included from include/Demon.h:11:
src/core/Win32.c:766:24: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
766 | DATA_FREE( s, x );
| ^
| |
| PWCHAR {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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PWCHAR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:792:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
792 | DATA_FREE( AnonPipe, sizeof( ANONPIPE ) );
| ^~~~~~~~
| |
| PANONPIPE {aka struct _ANONPIPE *}
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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PANONPIPE’ {aka ‘struct _ANONPIPE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c: In function ‘WinScreenshot’:
src/core/Win32.c:1080:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1080 | MemSet( &BitFileHdr, 0, sizeof( BITMAPFILEHEADER ) );
| ^~~~~~~~~~~
| |
| BITMAPFILEHEADER * {aka struct tagBITMAPFILEHEADER *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘BITMAPFILEHEADER *’ {aka ‘struct tagBITMAPFILEHEADER *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1081:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1081 | MemSet( &BitInfoHdr, 0, sizeof( BITMAPINFOHEADER ) );
| ^~~~~~~~~~~
| |
| BITMAPINFOHEADER * {aka struct tagBITMAPINFOHEADER *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘BITMAPINFOHEADER *’ {aka ‘struct tagBITMAPINFOHEADER *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1082:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1082 | MemSet( &BitMapInfo, 0, sizeof( BITMAPINFO ) );
| ^~~~~~~~~~~
| |
| BITMAPINFO * {aka struct tagBITMAPINFO *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘BITMAPINFO *’ {aka ‘struct tagBITMAPINFO *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1083:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1083 | MemSet( &AllDesktops,0, sizeof( BITMAP ) );
| ^~~~~~~~~~~~
| |
| BITMAP * {aka struct tagBITMAP *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘BITMAP *’ {aka ‘struct tagBITMAP *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c: In function ‘listDir’:
src/core/Win32.c:1508:38: error: initialization of ‘UINT32’ {aka ‘unsigned int’} from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
1508 | UINT32 PathSize = NULL;
| ^~~~
src/core/Win32.c:1708:16: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1708 | DATA_FREE( Path, ( MAX_PATH + 2 + 1 ) * 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1714:20: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1714 | DATA_FREE( SubDir, sizeof( SUB_DIR ) );
| ^~~~~~
| |
| PSUB_DIR {aka struct _SUB_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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PSUB_DIR’ {aka ‘struct _SUB_DIR *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1726:28: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1726 | 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PDIR_OR_FILE’ {aka ‘struct _DIR_OR_FILE *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/core/Win32.c:1731:24: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
1731 | 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:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PROOT_DIR’ {aka ‘struct _ROOT_DIR *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/inject/InjectUtil.c: In function ‘GetReflectiveLoaderOffset’:
src/inject/InjectUtil.c:47:147: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
47 | ExportDir = ReflectiveLdrAddr + Rva2Offset( NtHeaders->OptionalHeader.DataDirectory[ IMAGE_DIRECTORY_ENTRY_EXPORT ].VirtualAddress, ReflectiveLdrAddr );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
src/inject/InjectUtil.c:48:86: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
48 | AddrOfNames = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfNames, ReflectiveLdrAddr );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
src/inject/InjectUtil.c:48:25: error: assignment to ‘UINT_PTR’ {aka ‘long long unsigned int’} from ‘PVOID’ {aka ‘void *’} makes integer from pointer without a cast [-Wint-conversion]
48 | AddrOfNames = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfNames, ReflectiveLdrAddr );
| ^
src/inject/InjectUtil.c:49:93: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
49 | AddrOfNameOrdinals = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfNameOrdinals, ReflectiveLdrAddr );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
src/inject/InjectUtil.c:49:25: error: assignment to ‘UINT_PTR’ {aka ‘long long unsigned int’} from ‘PVOID’ {aka ‘void *’} makes integer from pointer without a cast [-Wint-conversion]
49 | AddrOfNameOrdinals = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfNameOrdinals, ReflectiveLdrAddr );
| ^
src/inject/InjectUtil.c:54:92: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
54 | FunctionName = ( PCHAR )( ReflectiveLdrAddr + Rva2Offset( DEREF_32( AddrOfNames ), ReflectiveLdrAddr ) );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
src/inject/InjectUtil.c:59:96: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
59 | AddrOfFunctions = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfFunctions, ReflectiveLdrAddr );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
src/inject/InjectUtil.c:59:29: error: assignment to ‘UINT_PTR’ {aka ‘long long unsigned int’} from ‘PVOID’ {aka ‘void *’} makes integer from pointer without a cast [-Wint-conversion]
59 | AddrOfFunctions = ReflectiveLdrAddr + Rva2Offset( ExportDir->AddressOfFunctions, ReflectiveLdrAddr );
| ^
src/inject/InjectUtil.c:62:61: error: passing argument 2 of ‘Rva2Offset’ makes integer from pointer without a cast [-Wint-conversion]
62 | return Rva2Offset( DEREF_32( AddrOfFunctions ), ReflectiveLdrAddr );
| ^~~~~~~~~~~~~~~~~
| |
| PVOID {aka void *}
src/inject/InjectUtil.c:12:41: note: expected ‘UINT_PTR’ {aka ‘long long unsigned int’} but argument is of type ‘PVOID’ {aka ‘void *’}
12 | DWORD Rva2Offset( DWORD dwRva, UINT_PTR uiBaseAddress )
| ~~~~~~~~~^~~~~~~~~~~~~
In file included from include/Demon.h:11,
from src/Demon.c:1:
src/Demon.c: In function ‘DemonMetaData’:
src/Demon.c:234:24: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
234 | DATA_FREE( Adapter, dwLength );
| ^~~~~~~
| |
| PIP_ADAPTER_INFO {aka struct _IP_ADAPTER_INFO *}
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,
from include/Demon.h:4:
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘PIP_ADAPTER_INFO’ {aka ‘struct _IP_ADAPTER_INFO *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/Demon.c:252:13: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
252 | MemSet( &OsVersions, 0, sizeof( OsVersions ) );
| ^~~~~~~~~~~
| |
| OSVERSIONINFOEXW *
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘OSVERSIONINFOEXW *’
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/Demon.c:254:36: error: passing argument 1 of ‘Instance->Win32.RtlGetVersion’ from incompatible pointer type [-Wincompatible-pointer-types]
254 | Instance->Win32.RtlGetVersion( &OsVersions );
| ^~~~~~~~~~~
| |
| OSVERSIONINFOEXW *
src/Demon.c:254:36: note: expected ‘PRTL_OSVERSIONINFOW’ but argument is of type ‘OSVERSIONINFOEXW *’
src/Demon.c: In function ‘DemonInit’:
src/Demon.c:372:53: error: passing argument 1 of ‘Instance->Win32.RtlGetVersion’ from incompatible pointer type [-Wincompatible-pointer-types]
372 | if ( NT_SUCCESS( Instance->Win32.RtlGetVersion( &OSVersionExW ) ) ) {
| ^~~~~~~~~~~~~
| |
| OSVERSIONINFOEXW *
include/common/Macros.h:12:60: note: in definition of macro ‘NT_SUCCESS’
12 | #define NT_SUCCESS(Status) ( ( ( NTSTATUS ) ( Status ) ) >= 0 )
| ^~~~~~
src/Demon.c:372:53: note: expected ‘PRTL_OSVERSIONINFOW’ but argument is of type ‘OSVERSIONINFOEXW *’
372 | if ( NT_SUCCESS( Instance->Win32.RtlGetVersion( &OSVersionExW ) ) ) {
| ^~~~~~~~~~~~~
include/common/Macros.h:12:60: note: in definition of macro ‘NT_SUCCESS’
12 | #define NT_SUCCESS(Status) ( ( ( NTSTATUS ) ( Status ) ) >= 0 )
| ^~~~~~
src/Demon.c: In function ‘DemonConfig’:
src/Demon.c:708:51: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
708 | MemSet( Instance->Config.Transport.Headers[ i ], 0, Length );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^
src/Demon.c:724:48: error: passing argument 1 of ‘__stosb’ from incompatible pointer type [-Wincompatible-pointer-types]
724 | MemSet( Instance->Config.Transport.Uris[ i ], 0, Length + sizeof( WCHAR ) );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| |
| LPWSTR {aka short unsigned int *}
/usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1773:1: note: expected ‘unsigned char *’ but argument is of type ‘LPWSTR’ {aka ‘short unsigned int *’}
1773 | __buildstos(__stosb, unsigned char, "b|b")
| ^

sudo apt install havoc', which does not come with the /Teamserver directory, from what I've seen. Which is why the updated compiler needed to be manually downloaded.

Edited by Arnaud Rebillout
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information