File tree Expand file tree Collapse file tree 7 files changed +1584
-876
lines changed
external/source/exploits/CVE-2014-3153
modules/exploits/android/local Expand file tree Collapse file tree 7 files changed +1584
-876
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,24 @@ 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 += -pie -fPIE
16
+ # LOCAL_LDFLAGS += -pie -fPIE
17
+
18
+ LOCAL_LDFLAGS += -llog
19
+ LOCAL_CFLAGS += -DDEBUG
20
+ LOCAL_CFLAGS += -fno-stack-protector -O0
21
+ LOCAL_MODULE := exploit
22
+ LOCAL_SRC_FILES := futex_requeue.c main.c
23
+
24
+ include $(BUILD_SHARED_LIBRARY )
25
+
26
+
Original file line number Diff line number Diff line change 5
5
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
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