cuckoosandbox / cuckoomon

DEPRECATED - replaced with "monitor"
122 stars 82 forks source link

Errors compiling cuckoomon 1.0.1 #41

Open jhg opened 9 years ago

jhg commented 9 years ago

I do:

git clone ... git checkout cuckoo1.0.1 make

Then:

i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c hook_thread.c -o objects/hook_thread.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c hook_reg_native.c -o objects/hook_reg_native.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c hook_socket.c -o objects/hook_socket.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c config.c -o objects/config.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c log.c -o objects/log.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c cuckoomon.c -o objects/cuckoomon.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c hook_misc.c -o objects/hook_misc.o i586-mingw32msvc-cc -Wall -std=c99 -s -O2 -Idistorm3.2-package/include -Ibson -c hook_reg.c -o objects/hook_reg.o In file included from log.c:25:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from log.c:22: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from log.c:25:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from log.c:22: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from log.c:25:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from log.c:22: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from log.c:25:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from log.c:22: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from log.c:25:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from log.c:22: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from log.c:25:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from log.c:22: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ In file included from cuckoomon.c:21:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from cuckoomon.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from cuckoomon.c:21:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from cuckoomon.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from cuckoomon.c:21:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from cuckoomon.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from cuckoomon.c:21:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from cuckoomon.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from log.c:26:0: misc.h:36:5: error: conflicting types for ‘wcsnicmp’ int wcsnicmp(const wchar_t a, const wchar_t b, int len); ^ In file included from log.c:20:0: /usr/share/mingw-w64/include/string.h:163:15: note: previous declaration of ‘wcsnicmp’ was here int cdecl wcsnicmp(const wchar_t _Str1,const wchar_t _Str2,size_t _MaxCount) MINGW_ATTRIB_DEPRECATED_MSVC2005; ^ In file included from hook_misc.c:22:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_misc.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from hook_misc.c:22:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_misc.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from hook_misc.c:22:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_misc.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_misc.c:22:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_misc.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_misc.c:22:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_misc.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from hook_misc.c:22:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_misc.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ In file included from hook_misc.c:25:0: misc.h:36:5: error: conflicting types for ‘wcsnicmp’ int wcsnicmp(const wchar_t a, const wchar_t b, int len); ^ In file included from /usr/share/mingw-w64/include/guiddef.h:148:0, from /usr/share/mingw-w64/include/winnt.h:602, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_misc.c:20: /usr/share/mingw-w64/include/string.h:163:15: note: previous declaration of ‘wcsnicmp’ was here int cdecl wcsnicmp(const wchar_t _Str1,const wchar_t _Str2,size_t _MaxCount) MINGW_ATTRIB_DEPRECATED_MSVC2005; ^ In file included from hook_thread.c:22:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_thread.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from hook_thread.c:22:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_thread.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from hook_thread.c:22:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_thread.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_thread.c:22:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_thread.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_thread.c:22:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_thread.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from hook_thread.c:22:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_thread.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ In file included from cuckoomon.c:21:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from cuckoomon.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from cuckoomon.c:21:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from cuckoomon.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ In file included from cuckoomon.c:22:0: misc.h:36:5: error: conflicting types for ‘wcsnicmp’ int wcsnicmp(const wchar_t a, const wchar_t b, int len); ^ In file included from /usr/share/mingw-w64/include/guiddef.h:148:0, from /usr/share/mingw-w64/include/winnt.h:602, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from cuckoomon.c:20: /usr/share/mingw-w64/include/string.h:163:15: note: previous declaration of ‘wcsnicmp’ was here int cdecl wcsnicmp(const wchar_t _Str1,const wchar_t _Str2,size_t _MaxCount) MINGW_ATTRIB_DEPRECATED_MSVC2005; ^ In file included from hook_reg_native.c:22:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg_native.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from hook_reg_native.c:22:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg_native.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from hook_reg_native.c:22:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg_native.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_reg_native.c:22:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg_native.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_reg_native.c:22:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg_native.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from hook_reg_native.c:22:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg_native.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ In file included from hook_thread.c:25:0: misc.h:36:5: error: conflicting types for ‘wcsnicmp’ int wcsnicmp(const wchar_t a, const wchar_t b, int len); ^ In file included from /usr/share/mingw-w64/include/guiddef.h:148:0, from /usr/share/mingw-w64/include/winnt.h:602, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_thread.c:20: /usr/share/mingw-w64/include/string.h:163:15: note: previous declaration of ‘wcsnicmp’ was here int cdecl wcsnicmp(const wchar_t _Str1,const wchar_t _Str2,size_t _MaxCount) MINGW_ATTRIB_DEPRECATED_MSVC2005; ^ In file included from hook_socket.c:21:0: /usr/share/mingw-w64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]

warning Please include winsock2.h before windows.h

^ In file included from hook_reg.c:22:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from hook_reg.c:22:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from hook_reg.c:22:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_reg.c:22:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_reg.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_reg.c:22:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from hook_reg.c:22:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_reg.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ hook_reg.c: In function ‘New_RegOpenKeyExA’: hook_reg.c:37:9: error: ‘ret’ undeclared (first use in this function) ret = 1; ^ hook_reg.c:37:9: note: each undeclared identifier is reported only once for each function it appears in hook_reg.c:39:47: error: lvalue required as left operand of assignment } else if (strstr(lpSubKey, "ControlSet") =! NULL) { ^ hook_reg.c:35:10: warning: unused variable ‘et’ [-Wunused-variable] LONG et; ^ In file included from hook_socket.c:23:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_socket.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ In file included from hook_socket.c:23:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_socket.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from hook_socket.c:23:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, _LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_socket.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_socket.c:23:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from hook_socket.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from hook_socket.c:23:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_socket.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from hook_socket.c:23:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from hook_socket.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ Makefile:41: recipe for target 'objects/hook_misc.o' failed make: _* [objects/hook_misc.o] Error 1 make: * Se espera a que terminen otras tareas.... In file included from cuckoomon.c:23:0: hooking.h:106:38: error: expected ‘)’ before ‘’ token return_value (calling_convention Old_##apiname)(VA_ARGS); \ ^ hooks.h:1154:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, getaddrinfo, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_getaddrinfo’ return_value callingconvention New##apiname(VAARGS**) ^ hooks.h:1154:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, getaddrinfo, ^ hooking.h:106:38: error: expected ‘)’ before ‘’ token return_value (callingconvention *Old##apiname)(VA_ARGS); \ ^ hooks.h:1161:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, GetAddrInfoW, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_GetAddrInfoW’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1161:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, GetAddrInfoW, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1284:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(struct hostent , WSAAPI, gethostbyname, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_gethostbyname’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1284:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(struct hostent , WSAAPI, gethostbyname, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1288:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, socket, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_socket’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1288:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, socket, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1294:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, connect, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_connect’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1294:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, connect, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1300:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, send, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_send’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1300:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, send, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1307:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, sendto, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_sendto’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1307:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, sendto, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1316:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, recv, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_recv’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1316:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, recv, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1323:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, recvfrom, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_recvfrom’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1323:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, recvfrom, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1332:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, accept, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_accept’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1332:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, accept, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1338:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, bind, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_bind’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1338:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, bind, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1344:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, listen, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_listen’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1344:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, listen, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1349:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, select, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_select’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1349:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, select, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1357:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, setsockopt, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_setsockopt’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1357:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, setsockopt, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1365:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, ioctlsocket, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_ioctlsocket’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1365:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, ioctlsocket, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1371:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, closesocket, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_closesocket’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1371:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, closesocket, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1375:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, shutdown, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_shutdown’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1375:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, shutdown, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1380:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSARecv, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSARecv’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1380:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSARecv, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1390:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSARecvFrom, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSARecvFrom’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1390:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSARecvFrom, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1402:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSASend, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSASend’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1402:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSASend, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (calling_convention Old##apiname)(VA_ARGS); \ ^ hooks.h:1412:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSASendTo, ^ Makefile:41: recipe for target 'objects/hookthread.o' failed make: ** [objects/hook_thread.o] Error 1 hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSASendTo’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1412:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(int, WSAAPI, WSASendTo, ^ Makefile:41: recipe for target 'objects/hook_reg_native.o' failed make: * [objects/hook_reg_native.o] Error 1 Makefile:41: recipe for target 'objects/log.o' failed make: * [objects/log.o] Error 1 hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (callingconvention *Old##apiname)(VA_ARGS); \ ^ hooks.h:1424:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, WSASocketA, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSASocketA’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1424:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, WSASocketA, ^ hooking.h:106:38: error: expected ‘)’ before ‘_’ token return_value (callingconvention *Old##apiname)(VA_ARGS); \ ^ hooks.h:1433:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, WSASocketW, ^ hooking.h:107:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘New_WSASocketW’ return_value callingconvention New##apiname(VA_ARGS) ^ hooks.h:1433:8: note: in expansion of macro ‘HOOKDEF’ extern HOOKDEF(SOCKET, WSAAPI, WSASocketW, ^ In file included from config.c:21:0: ntapi.h:75:0: warning: "ARRAYSIZE" redefined

define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))

^ Makefile:41: recipe for target 'objects/hook_socket.o' failed make: *\ [objects/hook_socket.o] Error 1 In file included from /usr/share/mingw-w64/include/minwindef.h:146:0, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from config.c:20: /usr/share/mingw-w64/include/winnt.h:635:0: note: this is the location of the previous definition

define ARRAYSIZE(A) RTL_NUMBER_OF_V2(A)

^ hook_reg.c:47:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ cuckoomon.c:33:6: error: ‘Newgetaddrinfo’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:267:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, getaddrinfo), ^ cuckoomon.c:33:33: error: ‘Oldgetaddrinfo’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:267:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, getaddrinfo), ^ cuckoomon.c:33:6: error: ‘NewGetAddrInfoW’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:268:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, GetAddrInfoW), ^ cuckoomon.c:33:33: error: ‘OldGetAddrInfoW’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:268:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, GetAddrInfoW), ^ cuckoomon.c:33:6: error: ‘Newgethostbyname’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:300:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, gethostbyname), ^ cuckoomon.c:33:33: error: ‘Oldgethostbyname’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:300:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, gethostbyname), ^ cuckoomon.c:33:6: error: ‘Newsocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:301:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, socket), ^ cuckoomon.c:33:33: error: ‘Oldsocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:301:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, socket), ^ cuckoomon.c:33:6: error: ‘Newconnect’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:302:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, connect), ^ cuckoomon.c:33:33: error: ‘Oldconnect’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:302:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, connect), ^ cuckoomon.c:33:6: error: ‘Newsend’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:303:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, send), ^ cuckoomon.c:33:33: error: ‘Oldsend’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:303:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, send), ^ cuckoomon.c:33:6: error: ‘Newsendto’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:304:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, sendto), ^ cuckoomon.c:33:33: error: ‘Oldsendto’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:304:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, sendto), ^ cuckoomon.c:33:6: error: ‘Newrecv’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:305:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, recv), ^ cuckoomon.c:33:33: error: ‘Oldrecv’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:305:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, recv), ^ cuckoomon.c:33:6: error: ‘Newrecvfrom’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:306:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, recvfrom), ^ cuckoomon.c:33:33: error: ‘Oldrecvfrom’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:306:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, recvfrom), ^ cuckoomon.c:33:6: error: ‘Newaccept’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:307:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, accept), ^ cuckoomon.c:33:33: error: ‘Oldaccept’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:307:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, accept), ^ cuckoomon.c:33:6: error: ‘Newbind’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:308:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, bind), ^ cuckoomon.c:33:33: error: ‘Oldbind’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:308:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, bind), ^ cuckoomon.c:33:6: error: ‘Newlisten’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:309:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, listen), ^ cuckoomon.c:33:33: error: ‘Oldlisten’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:309:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, listen), ^ cuckoomon.c:33:6: error: ‘Newselect’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:310:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, select), ^ cuckoomon.c:33:33: error: ‘Oldselect’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:310:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, select), ^ cuckoomon.c:33:6: error: ‘Newsetsockopt’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:311:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, setsockopt), ^ cuckoomon.c:33:33: error: ‘Oldsetsockopt’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:311:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, setsockopt), ^ cuckoomon.c:33:6: error: ‘Newioctlsocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:312:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, ioctlsocket), ^ cuckoomon.c:33:33: error: ‘Oldioctlsocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:312:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, ioctlsocket), ^ cuckoomon.c:33:6: error: ‘Newclosesocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:313:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, closesocket), ^ cuckoomon.c:33:33: error: ‘Oldclosesocket’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:313:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, closesocket), ^ cuckoomon.c:33:6: error: ‘Newshutdown’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:314:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, shutdown), ^ cuckoomon.c:33:33: error: ‘Oldshutdown’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:314:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, shutdown), ^ cuckoomon.c:33:6: error: ‘NewWSARecv’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:316:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSARecv), ^ cuckoomon.c:33:33: error: ‘OldWSARecv’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:316:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSARecv), ^ cuckoomon.c:33:6: error: ‘NewWSARecvFrom’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:317:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSARecvFrom), ^ cuckoomon.c:33:33: error: ‘OldWSARecvFrom’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:317:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSARecvFrom), ^ cuckoomon.c:33:6: error: ‘NewWSASend’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:318:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASend), ^ cuckoomon.c:33:33: error: ‘OldWSASend’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:318:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASend), ^ cuckoomon.c:33:6: error: ‘NewWSASendTo’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:319:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASendTo), ^ cuckoomon.c:33:33: error: ‘OldWSASendTo’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:319:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASendTo), ^ cuckoomon.c:33:6: error: ‘NewWSASocketA’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:320:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASocketA), ^ cuckoomon.c:33:33: error: ‘OldWSASocketA’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:320:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASocketA), ^ cuckoomon.c:33:6: error: ‘NewWSASocketW’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:321:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASocketW), ^ cuckoomon.c:33:33: error: ‘OldWSASocketW’ undeclared here (not in a function) &New##funcname, (void ) &Old##funcname} ^ cuckoomon.c:321:5: note: in expansion of macro ‘HOOK’ HOOK(ws2_32, WSASocketW), ^ In file included from config.c:21:0: ntapi.h:295:16: error: redefinition of ‘struct _TRANSMIT_FILE_BUFFERS’ typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from config.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:10:16: note: originally defined here typedef struct _TRANSMIT_FILE_BUFFERS { ^ In file included from config.c:21:0: ntapi.h:300:3: error: conflicting types for ‘TRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, _LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from config.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:3: note: previous declaration of ‘TRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from config.c:21:0: ntapi.h:300:27: error: conflicting types for ‘LPTRANSMIT_FILE_BUFFERS’ } TRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from /usr/share/mingw-w64/include/winsock.h:40:0, from /usr/share/mingw-w64/include/windows.h:92, from config.c:20: /usr/share/mingw-w64/include/psdk_inc/_xmitfile.h:15:52: note: previous declaration of ‘LPTRANSMIT_FILE_BUFFERS’ was here } TRANSMIT_FILE_BUFFERS, PTRANSMIT_FILE_BUFFERS, LPTRANSMIT_FILE_BUFFERS; ^ In file included from config.c:21:0: ntapi.h:386:28: error: conflicting types for ‘readfsdword’ static inline unsigned int readfsdword(unsigned int index) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from config.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1246:1: note: previous definition of ‘readfsdword’ was here buildreadseg(readfsdword, unsigned LONG32, "fs") ^ In file included from config.c:21:0: ntapi.h:393:20: error: conflicting types for ‘writefsdword’ static inline void writefsdword(unsigned int index, unsigned int value) ^ In file included from /usr/share/mingw-w64/include/winnt.h:26:0, from /usr/share/mingw-w64/include/minwindef.h:146, from /usr/share/mingw-w64/include/windef.h:8, from /usr/share/mingw-w64/include/windows.h:69, from config.c:20: /usr/share/mingw-w64/include/psdk_inc/intrin-impl.h:1267:1: note: previous definition of ‘writefsdword’ was here buildwriteseg(writefsdword, unsigned LONG32, "fs") ^ config.c: In function ‘read_config’: config.c:29:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘DWORD’ [-Wformat=] getenv("TEMP"), GetCurrentProcessId()); ^ Makefile:41: recipe for target 'objects/hook_reg.o' failed make: _* [objects/hook_reg.o] Error 1 Makefile:41: recipe for target 'objects/cuckoomon.o' failed make: * [objects/cuckoomon.o] Error 1 Makefile:41: recipe for target 'objects/config.o' failed make: * [objects/config.o] Error 1

jbremer commented 9 years ago

Ok. As mentioned you should try the new monitor, though. You can test it out in the 'monitor' branch of Cuckoo (and/or compile your own version and use those DLLs in the monitor branch of Cuckoo).

RaydelMiranda commented 9 years ago

The last version does not compiles either.

In file included from hook_reg.c:22:0:
 ntapi.h:295:16: error: redefinition of 'struct _TRANSMIT_FILE_BUFFERS'
 typedef struct _TRANSMIT_FILE_BUFFERS {
                         ^

I'm using MinGW with gcc 4.8.1.

Complete error log:

jbremer commented 9 years ago

Please test & try out the new monitor instead ;-) https://github.com/jbremer/monitor

CuckooMon is no longer supported & maintained.

jhg commented 8 years ago

@jbremer a question, new monitor will be move to cuckoo-sandbox organization, or will be your repo the fact "main"?

jbremer commented 8 years ago

It will be moved at the very latest before our 2.0 release :)

jhg commented 8 years ago

Perfect :+1: