^~~
exploit_kctf.c: In function ‘main’:
exploit_kctf.c:621:25: warning: format ‘%p’ expects argument of type ‘void *’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
621
printf("[*] kbase: %p\n", kbase);
~^ ~
uint64_t {aka long unsigned int}
void *
%ld
exploit_kctf.c:640:42: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
640
exploit_kctf.c:641:41: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
641
Hi,
I am getting issues while doing make fuse or kctf.
~strip exploit**make kctf**
gcc -no-pie -static exploit_kctf.c util.c -o exploit -masm=intel -pthread exploit_kctf.c:379:24: warning: return type defaults to ‘int’ [-Wimplicit-int] 379~~^ ~~~~~~~^ ~~~~~strip exploit `
After getting the exploit with warnings, it is not exploiting the kernel. Could you please help me with that?
Thanks in advance; looking forward to quick fixes.