File tree Expand file tree Collapse file tree 6 files changed +853
-0
lines changed
external/source/exploits/CVE-2013-6282
modules/exploits/android/local Expand file tree Collapse file tree 6 files changed +853
-0
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments