Skip to content

Commit 2585c8c

Browse files
author
Brent Cook
committed
Land rapid7#7461, convert futex_requeue (towelroot) module to use targetting and core_loadlib
2 parents b28f600 + 25a8283 commit 2585c8c

File tree

8 files changed

+1578
-877
lines changed

8 files changed

+1578
-877
lines changed

data/exploits/CVE-2014-3153.elf

-17.3 KB
Binary file not shown.

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,19 @@ 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 += -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+

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
all: install
33

44
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
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)