Open ghost opened 7 years ago
You need NDK (Native Develop Toolkit) in your $PATH so that ndk-build is available. Look up how to setup ndk for your machine and then build the jni challenge.
I've done setting up the PATH and now i have this
Challenge 13 has been made such to get code execution with the strcpy buffer overflow. To make it easy we did
LOCAL_DISABLE_NO_EXECUTE := true
in app/src/main/jni/Android.mk
. I think in default setting clang is the compiler for ndk and its broken probably for this flag. So if you're not hell bent on getting RCE from shellcode, you can turn this flag to false and it'll compile.
Other option is to switch to GCC altogether. From /toolchains
in your ndk path find out your GCC version and add the following in app/src/main/jni/Application.mk
NDK_TOOLCHAIN_VERSION=<gcc-version>
This will disable NX in jni libs.
watch this video to clear all doubts: https://www.youtube.com/watch?v=PXvEh_QhGt8
Hello,
I am having this ndk issue when running the command "make" ndk-buildmake: ndk-build: command not foundmakefile:35: recipe for target 'all' failedmake: *** [all] error 127