Skip to content

Commit 57e4bcb

Browse files
author
Brent Cook
committed
Land rapid7#7454, add CVE-2013-6282, put_user/get_user exploit for Android
2 parents 8b816fe + 2652f34 commit 57e4bcb

File tree

6 files changed

+853
-0
lines changed

6 files changed

+853
-0
lines changed

data/exploits/CVE-2013-6282.so

23.5 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
LOCAL_PATH := $(call my-dir)
2+
3+
include $(CLEAR_VARS)
4+
5+
#LOCAL_LDFLAGS += -llog
6+
#LOCAL_CFLAGS += -DDEBUG
7+
LOCAL_MODULE := exploit
8+
LOCAL_SRC_FILES := exploit.c
9+
10+
include $(BUILD_SHARED_LIBRARY)
11+
12+
include $(CLEAR_VARS)
13+
14+
LOCAL_LDFLAGS += -llog
15+
LOCAL_CFLAGS += -DDEBUG
16+
LOCAL_MODULE := debugexploit
17+
LOCAL_SRC_FILES := exploit.c
18+
19+
include $(BUILD_EXECUTABLE)
20+
21+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
all: install
3+
4+
build:
5+
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-16 APP_ABI=armeabi
6+
7+
install: build
8+
mv libs/armeabi/libexploit.so ../../../../data/exploits/CVE-2013-6282.so
9+
10+
push: build
11+
adb push libs/armeabi/debugexploit /data/local/tmp/exploit
12+
13+
run: push
14+
adb shell 'chmod 777 /data/local/tmp/exploit'
15+
adb shell '/data/local/tmp/exploit'
16+
17+
clean:
18+
rm -rf libs
19+
rm -rf obj
20+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
BUILDING:
3+
4+
Download the android ndk, e.g:
5+
https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip
6+
(I used android-ndk-10d)
7+
8+
Unzip it and install ensure ndk-build is in your PATH
9+
10+
make
11+

0 commit comments

Comments
 (0)