CVE-2019-11932 icon indicating copy to clipboard operation
CVE-2019-11932 copied to clipboard

Getting Error while compiling

Open praveensinghinfo opened this issue 6 years ago • 1 comments

I modified listener ip to my machine's ip address. Then used command : gcc -o exploit egif_lib.c exploit.c

::::::: Then Getting this error ::::::

In file included from egif_lib.c:5: ./gif_lib.h:23:14: error: typedef redefinition with different types ('long' vs 'long long') typedef long __int64_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: note: previous definition is here typedef long long __int64_t; ^ In file included from egif_lib.c:5: ./gif_lib.h:24:23: error: typedef redefinition with different types ('unsigned long' vs 'unsigned long long') typedef unsigned long __uint64_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:47:33: note: previous definition is here typedef unsigned long long __uint64_t; ^ In file included from egif_lib.c:5: ./gif_lib.h:59:23: error: typedef redefinition with different types ('int64_t' (aka 'long long') vs 'int16_t' (aka 'short')) typedef int64_t int_fast16_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:41:26: note: previous definition is here typedef int16_t int_fast16_t; ^ In file included from egif_lib.c:5: ./gif_lib.h:60:23: error: typedef redefinition with different types ('uint64_t' (aka 'unsigned long long') vs 'uint16_t' (aka 'unsigned short')) typedef uint64_t uint_fast16_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:45:25: note: previous definition is here typedef uint16_t uint_fast16_t; ^ In file included from egif_lib.c:5: ./gif_lib.h:61:23: error: typedef redefinition with different types ('int64_t' (aka 'long long') vs 'int32_t' (aka 'int')) typedef int64_t int_fast32_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:42:26: note: previous definition is here typedef int32_t int_fast32_t; ^ In file included from egif_lib.c:5: ./gif_lib.h:62:23: error: typedef redefinition with different types ('uint64_t' (aka 'unsigned long long') vs 'uint32_t' (aka 'unsigned int')) typedef uint64_t uint_fast32_t; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:46:25: note: previous definition is here typedef uint32_t uint_fast32_t; ^ 6 errors generated. In file included from exploit.c:1: In file included from ./gif_lib.h:290: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:78: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/machine/types.h:35: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/types.h:70: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: error: typedef redefinition with different types ('long long' vs 'long') typedef long long __int64_t; ^ ./gif_lib.h:23:14: note: previous definition is here typedef long __int64_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:290: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:78: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/machine/types.h:35: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/types.h:70: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:47:33: error: typedef redefinition with different types ('unsigned long long' vs 'unsigned long') typedef unsigned long long __uint64_t; ^ ./gif_lib.h:24:23: note: previous definition is here typedef unsigned long __uint64_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:290: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:78: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/machine/types.h:35: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/types.h:79: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_int64_t.h:30:33: error: typedef redefinition with different types ('long long' vs '__int64_t' (aka 'long')) typedef long long int64_t; ^ ./gif_lib.h:42:23: note: previous definition is here typedef __int64_t int64_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:292: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:72: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stdint.h:63: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:26: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/_types/_uint64_t.h:31:28: error: typedef redefinition with different types ('unsigned long long' vs '__uint64_t' (aka 'unsigned long')) typedef unsigned long long uint64_t; ^ ./gif_lib.h:43:23: note: previous definition is here typedef _uint64_t uint64_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:292: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:72: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stdint.h:63: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:41:26: error: typedef redefinition with different types ('int16_t' (aka 'short') vs 'int64_t' (aka 'long')) typedef int16_t int_fast16_t; ^ ./gif_lib.h:59:23: note: previous definition is here typedef int64_t int_fast16_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:292: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:72: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stdint.h:63: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:42:26: error: typedef redefinition with different types ('int32_t' (aka 'int') vs 'int64_t' (aka 'long')) typedef int32_t int_fast32_t; ^ ./gif_lib.h:61:23: note: previous definition is here typedef int64_t int_fast32_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:292: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:72: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stdint.h:63: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:45:25: error: typedef redefinition with different types ('uint16_t' (aka 'unsigned short') vs 'uint64_t' (aka 'unsigned long')) typedef uint16_t uint_fast16_t; ^ ./gif_lib.h:60:23: note: previous definition is here typedef uint64_t uint_fast16_t; ^ In file included from exploit.c:1: In file included from ./gif_lib.h:292: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:72: In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/stdint.h:63: /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:46:25: error: typedef redefinition with different types ('uint32_t' (aka 'unsigned int') vs 'uint64_t' (aka 'unsigned long')) typedef uint32_t uint_fast32_t; ^ ./gif_lib.h:62:23: note: previous definition is here typedef uint64_t uint_fast32_t; ^ exploit.c:62:5: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memcpy(buffer, hexData, sizeof(hexData)); ^ exploit.c:62:5: note: include the header <string.h> or explicitly provide a declaration for 'memcpy' exploit.c:77:34: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration] memcpy(buffer + 32, command, strlen(command)); ^ exploit.c:77:34: note: include the header <string.h> or explicitly provide a declaration for 'strlen' exploit.c:139:13: warning: passing 'unsigned char [1000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get_hex(buffer, size, hex_dump, 5000, 16); ^~~~~~ exploit.c:6:15: note: passing argument to parameter 'buf' here get_hex(char buf, int buf_len, char hex, int hex_len, int num_col) { ^ 3 warnings and 8 errors generated.

praveensinghinfo avatar Oct 06 '19 11:10 praveensinghinfo

had u made sure of the hex values? while changing ip?

also please contact the owner.. i only shared it

dorkerdevil avatar Oct 06 '19 11:10 dorkerdevil