We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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
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.
The text was updated successfully, but these errors were encountered:
it's not the warnings; it's probably that the kernel is patched
Sorry, something went wrong.
Basically all non dead distros have patched this.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: