Exploit databaseDownload repository ZIP
GH-1f60d8f04674094813b8a8149a1b3d34
lienby/pssroot
Sources for CVE-2016-5195
80 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files6
lienby/pssrootRevision e91e39b5d8b2
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
native_c/jni/dcow.c
C · 735 bytes#include <err.h>
#include <dlfcn.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/types.h>
#ifdef DEBUG
#include <android/log.h>
#define LOGV(...) { __android_log_print(ANDROID_LOG_INFO, "exploit", __VA_ARGS__); printf(__VA_ARGS__); printf("\n"); fflush(stdout); }
#elif PRINT
#define LOGV(...) { __android_log_print(ANDROID_LOG_INFO, "exploit", __VA_ARGS__); printf(__VA_ARGS__); printf("\n"); fflush(stdout); }
#else
#define LOGV(...)
#endif
extern int dcow(int argc, const char *argv[]);
int main(int argc, const char *argv[])
{
return dcow(argc, argv);
}