timwr / CVE-2016-5195

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

How to compile with "aarch64-linux-gnu-gcc" #63

Open TonyStark opened 7 years ago

TonyStark commented 7 years ago

In my linux i dont have NDK, and cant install due to storage/space problem. so my android is running on aarch64 then how to compile using "aarch64-linux-gnu-gcc" command? can you give me new makefile?

thanks

refi64 commented 7 years ago

Not the main dev, but I think you need the NDK, since this depends on headers in the NDK.

You could always try buying a decently-sized USB stick and putting the NDK there. That's what I used to do.

TonyStark commented 7 years ago

@kirbyfan64 okay, i have usb drive. i will download ndk. can you guide me how to setup ndk to working properly or tutorial link?

refi64 commented 7 years ago

@TonyStark TBH there's not much to set up. Unzip it somewhere, then put the directory on your path export PATH=$PATH:/path/to/where/ndk/was/extracted.

TonyStark commented 7 years ago

@kirbyfan64 okay im trying, and reply after some progress

TonyStark commented 7 years ago

@kirbyfan64 hi, well i successfully build with ndk but after execution it is not working somehow.... `[stark]:CVE-2016-5195|$ adb shell /system/bin/run-as

uid /system/bin/run-as 2000

uid 0

0 u:r:runas:s0

context 0 u:r:shell:s0

root@MODELXXX:/ # id`

as you can see id command does not print anything....

TonyStark commented 7 years ago

is there any way to get aboot.img from /dev/block??