File tree Expand file tree Collapse file tree 8 files changed +1578
-877
lines changed
external/source/exploits/CVE-2014-3153
modules/exploits/android/local Expand file tree Collapse file tree 8 files changed +1578
-877
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,19 @@ LOCAL_PATH := $(call my-dir)
3
3
4
4
include $(CLEAR_VARS )
5
5
6
- LOCAL_MODULE := exploit
7
- LOCAL_SRC_FILES := exploit.c
8
- LOCAL_CFLAGS := -fno-stack-protector -O0
6
+ LOCAL_MODULE := debugexploit
7
+ LOCAL_SRC_FILES := futex_requeue.c main.c
8
+ LOCAL_LDFLAGS += -llog
9
+ LOCAL_CFLAGS += -DDEBUG
10
+ LOCAL_CFLAGS += -fno-stack-protector -O0
9
11
include $(BUILD_EXECUTABLE )
10
12
13
+ include $(CLEAR_VARS )
14
+
15
+ LOCAL_CFLAGS += -fno-stack-protector -O0
16
+ LOCAL_MODULE := exploit
17
+ LOCAL_SRC_FILES := futex_requeue.c main.c
18
+
19
+ include $(BUILD_SHARED_LIBRARY )
20
+
21
+
Original file line number Diff line number Diff line change 2
2
all : install
3
3
4
4
build :
5
- ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
5
+ ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_ABI=armeabi
6
6
7
7
install : build
8
- mv libs/armeabi/exploit ../../../../data/exploits/CVE-2014-3153.elf
8
+ mv libs/armeabi/libexploit.so ../../../../data/exploits/CVE-2014-3153.so
9
9
10
- test : build
11
- adb push libs/armeabi/exploit /data/local/tmp/exploit
12
- adb shell " cd /data/local/tmp; ./exploit id"
10
+ push : build
11
+ adb push libs/armeabi/debugexploit /data/local/tmp/futex
12
+
13
+ run : push
14
+ adb shell " /data/local/tmp/futex"
13
15
14
16
clean :
15
17
rm -rf libs
You can’t perform that action at this time.
0 commit comments