Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Teamserver-Client--Bug]: Error compiling x64 exe on aarch64 #533

Open
1 task done
AndreasDamen opened this issue Nov 29, 2024 · 5 comments
Open
1 task done

[Teamserver-Client--Bug]: Error compiling x64 exe on aarch64 #533

AndreasDamen opened this issue Nov 29, 2024 · 5 comments
Labels
clientside/teamserver Clientside problem, not implantrelated

Comments

@AndreasDamen
Copy link

AndreasDamen commented Nov 29, 2024

Contact Details

No response

What happened?

Having issues compiling a win exe on an aarch64 (rpi) (tried using the following solutions from other tickets i found here):

using /usr/bin/x86_64-w64-mingw32-gcc:

[*] 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 [502 bytes]
[*] compiling source
[-] couldn't compile implant: exit status 1
[-] compile output: In file included from include/Demon.h:10,
from src/core/CoffeeLdr.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/CoffeeLdr.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Command.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Command.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Dotnet.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Dotnet.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Download.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Download.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/HwBpEngine.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/HwBpEngine.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/HwBpExceptions.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/HwBpExceptions.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Jobs.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Jobs.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Kerberos.c:2:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Kerberos.c:2:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Memory.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Memory.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/MiniStd.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/MiniStd.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Obf.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Obf.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/ObjectApi.c:5:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/ObjectApi.c:5:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from include/core/MiniStd.h:4,
from src/core/Package.c:3:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from include/core/MiniStd.h:4,
from src/core/Package.c:3:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Parser.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Parser.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Pivot.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Pivot.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Runtime.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Runtime.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Socket.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Socket.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from include/core/MiniStd.h:4,
from src/core/Spoof.c:2:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from include/core/MiniStd.h:4,
from src/core/Spoof.c:2:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/SysNative.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/SysNative.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Syscalls.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Syscalls.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Thread.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Thread.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Token.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Token.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Transport.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Transport.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/TransportHttp.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/TransportHttp.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/TransportSmb.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/TransportSmb.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/core/Win32.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/core/Win32.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
src/core/Win32.c: In function ‘CfgAddressAdd’:
src/core/Win32.c:1263:5: error: unknown type name ‘CFG_CALL_TARGET_INFO’
1263 | CFG_CALL_TARGET_INFO Cfg = { 0 };
| ^~~~~~~~~~~~~~~~~~~~
src/core/Win32.c:1275:8: error: request for member ‘Flags’ in something not a structure or union
1275 | Cfg.Flags = CFG_CALL_TARGET_VALID;
| ^
src/core/Win32.c:1275:18: error: ‘CFG_CALL_TARGET_VALID’ undeclared (first use in this function)
1275 | Cfg.Flags = CFG_CALL_TARGET_VALID;
| ^~~~~~~~~~~~~~~~~~~~~
src/core/Win32.c:1275:18: note: each undeclared identifier is reported only once for each function it appears in
src/core/Win32.c:1276:8: error: request for member ‘Offset’ in something not a structure or union
1276 | Cfg.Offset = Function - ImageBase;
| ^
In file included from include/Demon.h:10,
from include/core/MiniStd.h:4,
from src/crypt/AesCrypt.c:2:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from include/core/MiniStd.h:4,
from src/crypt/AesCrypt.c:2:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/inject/Inject.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/inject/Inject.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/inject/InjectUtil.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/inject/InjectUtil.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/Demon.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/Demon.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^
In file included from include/Demon.h:10,
from src/main/MainExe.c:1:
include/common/Native.h:11222:5: error: unknown type name ‘PCFG_CALL_TARGET_INFO’
11222 | PCFG_CALL_TARGET_INFO ptOffsets;
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/common/Clr.h:6,
from include/Demon.h:12,
from src/main/MainExe.c:1:
include/Demon.h:317:19: error: ‘AddMandatoryAce’ undeclared here (not in a function)
317 | WIN_FUNC( AddMandatoryAce )
| ^~~~~~~~~~~~~~~
include/core/Win32.h:19:32: note: in definition of macro ‘WIN_FUNC’
19 | #define WIN_FUNC(x) __typeof__(x) * x;
| ^

using data/x86_64-w64-mingw32-cross/bin/x86_64-w64-mingw32-gcc:

[*] 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 [502 bytes]
[*] compiling source
[-] couldn't compile implant: exit status 2
[-] compile output: sh: 1: /home/ubuntu/c2-server/Havoc/data/x86_64-w64-mingw32-cross/bin/x86_64-w64-mingw32-gcc: Exec format error

Did You Do a Pull First?

Latest (You performed a pull first)

Did You Try With the Dev Branch?

Yes (You tried using the dev branch but the problem persist)

Relevant log output

No response

Did You Read Over Your Issue First?

  • I declare I made an effort and provided the necessary information for replication of the issue.
@AndreasDamen AndreasDamen added the clientside/teamserver Clientside problem, not implantrelated label Nov 29, 2024
@Dragon-yy
Copy link

Dragon-yy commented Dec 31, 2024

I have the same issue for Mac ,and the compiler download from "https://musl.cc/x86_64-w64-mingw32-cross.tgz" is not compatible for macOS.The original compiler which I used brew to install will making error.

The compiler I use:
i686-w64-mingw32-gcc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@Dragon-yy
Copy link

My teamserver error log

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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/winnt.h:27,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windef.h:9,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windows.h:69,
                 from include/Demon.h:4,
                 from src/core/Socket.c:1:
/usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/winnt.h:27,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windef.h:9,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windows.h:69,
                 from include/Demon.h:4:
/usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/winnt.h:27,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windef.h:9,
                 from /usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include/windows.h:69,
                 from include/Demon.h:4,
                 from src/core/Win32.c:1:
/usr/local/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/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 )

@ne0YT
Copy link

ne0YT commented Jan 29, 2025

did anyone figure something out here?

@AndreasDamen
Copy link
Author

No, haven't heard back.

@ne0YT
Copy link

ne0YT commented Jan 30, 2025

@AndreasDamen would be cool to build a UI for sliver instead. as it not only works on arm64 it also supports more agent OS's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clientside/teamserver Clientside problem, not implantrelated
Projects
None yet
Development

No branches or pull requests

3 participants