jcadduono / android_external_dirtycow

CVE-2016-5195 (dirtycow/dirtyc0w) - recowvery fork
https://build.nethunter.com/android-tools/dirtycow/
146 stars 37 forks source link

errort in building #4

Open MatanTubul opened 7 years ago

MatanTubul commented 7 years ago

after executing the make coomand as you write in the instructions i get:

cc     dirtycow.c   -o dirtycow
cc     recowvery-applypatch.c   -o recowvery-applypatch
cc     recowvery-app_process.c   -o recowvery-app_process
cc     recowvery-run-as.c   -o recowvery-run-as
recowvery-app_process.c:5:31: fatal error: cutils/properties.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'recowvery-app_process' failed
make: *** [recowvery-app_process] Error 1
make: *** Waiting for unfinished jobs....
recowvery-run-as.c:6:28: fatal error: sys/capability.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'recowvery-run-as' failed
make: *** [recowvery-run-as] Error 1
recowvery-applypatch.c:24:21: fatal error: bootimg.h: No such file or directory
compilation terminated.
<builtin>: recipe for target 'recowvery-applypatch' failed
make: *** [recowvery-applypatch] Error 1
/tmp/ccGK5ysF.o: In function `exploit':
dirtycow.c:(.text+0x164): undefined reference to `pthread_create'
dirtycow.c:(.text+0x181): undefined reference to `pthread_create'
dirtycow.c:(.text+0x192): undefined reference to `pthread_join'
dirtycow.c:(.text+0x1a3): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'dirtycow' failed
make: *** [dirtycow] Error 1
jcadduono commented 7 years ago

doesn't look to me like you followed the instructions, that doesn't look like an android build log

you need to build from the root of android, not from this folder

MatanTubul commented 7 years ago

ok i succeded to run it and after i run "adb logcat -s recowvery" it got stuck with the following output:

--------- beginning of system
--------- beginning of main
jcadduono commented 6 years ago

You might notice that the branch is called android-6.0 There's no point in building this for devices newer than that and I won't support it either as the exploit has been patched by then. Android's libraries and build system makes drastic changes every major version. I can't just go adding support for new versions of Android every time one releases. This repository is only for the LG V20.

I compile this with the TWRP minimal build environment for android-6.0 as it has everything needed regarding dependencies for building native system binaries.

picorealm commented 3 years ago

ok i succeded to run it and after i run "adb logcat -s recowvery" it got stuck with the following output:

--------- beginning of system
--------- beginning of main

Try running logcat -s recowvery directly in an adb shell on the target device:

adb shell
logcat -s recowvery