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

Multiple warning #2

Open
anonymousgalaxylord opened this issue Feb 3, 2022 · 2 comments
Open

Multiple warning #2

anonymousgalaxylord opened this issue Feb 3, 2022 · 2 comments

Comments

@anonymousgalaxylord
Copy link

Hi,

I am getting issues while doing make fuse or kctf.

make fuse
gcc -no-pie -static exploit_fuse.c fakefuse.c util.c -I./libfuse libfuse3.a -o exploit -masm=intel -pthread exploit_fuse.c: In function ‘modprobe_hax’: exploit_fuse.c:227:5: warning: null argument where non-null required (argument 2) [-Wnonnull] 227 | execve(modprobe_trigger, NULL, NULL); | ^~~~~~ 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 | __attribute__((naked)) win() | ^~~ 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 | printf("[*] kmalloc 1024 chunk: 0x%llx\n", kmalloc_1024); | ~~~^ ~~~~~~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lx 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 | printf("[*] kmalloc 512 chunk: 0x%llx\n", kmalloc_512); | ~~~^ ~~~~~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %lx 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.

@chop0
Copy link
Member

chop0 commented Feb 11, 2022

it's not the warnings; it's probably that the kernel is patched

@10maurycy10
Copy link

it's not the warnings; it's probably that the kernel is patched

Basically all non dead distros have patched this.

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

3 participants