Skip to content

Commit 7ac3859

Browse files
committed
convert futex_requeue module to use targetting and core_loadlib
1 parent 3a998fa commit 7ac3859

File tree

7 files changed

+1584
-876
lines changed

7 files changed

+1584
-876
lines changed

external/source/exploits/CVE-2014-3153/Android.mk

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,24 @@ LOCAL_PATH := $(call my-dir)
33

44
include $(CLEAR_VARS)
55

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
911
include $(BUILD_EXECUTABLE)
1012

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+

external/source/exploits/CVE-2014-3153/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ build:
55
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
66

77
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
99

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"
1315

1416
clean:
1517
rm -rf libs

0 commit comments

Comments
 (0)