hyln9 / VIKIROOT

CVE-2016-5195 (Dirty COW) PoC for Android 6.0.1 Marshmallow
GNU General Public License v3.0
266 stars 96 forks source link

how compile the project by ndk? #7

Closed pppdddxxx closed 7 years ago

pppdddxxx commented 7 years ago

I download your poc,and compile it by ndk,but,when i execute it on phone,it failed as follows:

Reverse shell target: 127.0.0.1:1111

Exploit process starts.

Inject: patch 1/2

[2] + Stopped (signal) ./exploit 1111

my Android.mk's content is : LOCAL_MODULE := exploit LOCAL_CFLAGS := -Os -fPIE -Wall LOCAL_SRC_FILES := exploit.c LOCAL_LDFLAGS := -pthread -s -pie -Wall could you tell me why? thanks