-
Notifications
You must be signed in to change notification settings - Fork 26
Library Call Solution
Tim Guenther edited this page Jul 24, 2017
·
1 revision
- Follow the challenge set up guide.
- Download the apk and library folder:
adb pull /data/app/ruhrpott.owasp.com.vuln_app_1 .
- Retrieve function name and namespace:
Command:strings ./lib/x86/liblibcall.so | grep -i java
Output:Java_ruhrpott_owasp_com_vuln_1app_11__challenges_Library_stringFromJNI
- Create a new Android Studio project with the same namespace as the application. (
ruhrpott.owasp.com.vuln_app_1
) - Create the same class and function name in the folder
challenges
.
- Class:
LibraryCall.java
- Function:
stringFromJNI()
- Load library:
System.loadLibrary("libcall")
- Place the downloaded library under
/main/jniLibs/ge/
.
The a working Android Studio project can be found here.
Please open an issue in the case you found a mistake in the wiki.