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

Demon Agent unable to compile #105

Closed
sjab83 opened this issue Oct 1, 2022 · 9 comments
Closed

Demon Agent unable to compile #105

sjab83 opened this issue Oct 1, 2022 · 9 comments

Comments

@sjab83
Copy link

sjab83 commented Oct 1, 2022

Using Debian 11 with all prerequisites installed, trying to compile the default Payload config of

  • Listener: Agent - HTTPs
  • Arch x64
  • Format Windows Exe
  • Sleep 2
  • Indirect Syscall Checked
  • Sleep Technique WaitForSingleObjectEx
[-] Couldn't compile implant: exit status 1
[-] Compile output: In file included from Include/Demon.h:11,
from Source/Core/Command.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Config.c:2:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Core.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Jobs.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/MiniStd.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Include/Core/Package.h:4,
from Source/Core/Package.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Parser.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Pivot.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/SleepObf.c:3:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Source/Core/SleepObf.c: In function ‘CfgAddressAdd’:
Source/Core/SleepObf.c:42:5: error: called object is not a function or function pointer
42 | Instance->Win32.SetProcessValidCallTargets( NtCurrentProcess(), ImageBase, Len, 1, &Cfg );
| ^~~~~~~~
In file included from Include/Demon.h:11,
from Include/Core/MiniStd.h:4,
from Source/Core/Spoof.c:2:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Syscalls.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Token.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Core/Transport.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Include/Core/Win32.h:4,
from Source/Core/Win32.c:5:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Source/Core/WinUtils.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Include/Core/MiniStd.h:4,
from Source/Crypt/AesCrypt.c:2:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Inject/Inject.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Inject/InjectUtil.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Source/Inject/InjectUtil.c: In function ‘ThreadCreate’:
Source/Inject/InjectUtil.c:161:45: error: ‘PROC_THREAD_ATTRIBUTE_NUM’ undeclared (first use in this function); did you mean ‘PROC_THREAD_ATTRIBUTE_ENTRY’?
161 | MemSet( &ThreadAttr, 0, sizeof( PROC_THREAD_ATTRIBUTE_NUM ) );
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| PROC_THREAD_ATTRIBUTE_ENTRY
Source/Inject/InjectUtil.c:161:45: note: each undeclared identifier is reported only once for each function it appears in
In file included from Include/Demon.h:11,
from Source/Loader/CoffeeLdr.c:2:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Loader/ObjectApi.c:6:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
In file included from Include/Demon.h:11,
from Source/Main/MainExe.c:1:
Include/Demon.h:165:19: error: ‘InitializeProcThreadAttributeList’ undeclared here (not in a function)
165 | WIN_FUNC( InitializeProcThreadAttributeList )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:166:19: error: ‘UpdateProcThreadAttribute’ undeclared here (not in a function)
166 | WIN_FUNC( UpdateProcThreadAttribute )
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
Include/Demon.h:361:19: error: ‘SetProcessValidCallTargets’ undeclared here (not in a function)
361 | WIN_FUNC( SetProcessValidCallTargets )
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Include/Core/WinUtils.h:105:33: note: in definition of macro ‘WIN_FUNC’
105 | #define WIN_FUNC(x) __typeof__ (x) * x;
| ^
@Marshall-Hallenbeck
Copy link

Getting the same error. It also prevents you from attempting to generate a new one and requires a restart of the team server, at least for me.

@Cracked5pider
Copy link
Member

Download http://musl.cc/x86_64-w64-mingw32-cross.tgz and extract it. Then replace the Compiler64 and Compiler86 in the profile/havoc.yaotl to the path for musl compiler (for each arch).

@rundro
Copy link

rundro commented Oct 1, 2022

i just tested with the musl compiler from @Cracked5pider and can confirm this fixed the issue. Thanks!

@Cracked5pider
Copy link
Member

I might add it as default compiler to use in future release

@korang
Copy link

korang commented Oct 3, 2022

i just tested with the musl compiler from @Cracked5pider and can confirm this fixed the issue. Thanks!

Did you have to do the make/make install before using?

@rundro
Copy link

rundro commented Oct 3, 2022

i just tested with the musl compiler from @Cracked5pider and can confirm this fixed the issue. Thanks!

Did you have to do the make/make install before using?

I did not, just changed the compiler paths in the havoc.yaotl profile.

@Andi-A
Copy link

Andi-A commented Oct 5, 2022

What permission did you assign the folder

Compile output: sh: 1: /usr/bin/x86_64-w64-mingw32-cross: Permission denied

@sjab83
Copy link
Author

sjab83 commented Oct 5, 2022

Use the full path in the .yaotl profile. /user/bin/x86_64-w64-mingw32-cross/bin/x86_64-w64-mingw32-gcc

@Andi-A
Copy link

Andi-A commented Oct 5, 2022

/user/bin/x86_64-w64-mingw32-cross/bin/x86_64-w64-mingw32-gcc

Fixed. Thank you very much !

@chbGSmCm chbGSmCm closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants