/*
 * ansvif
 * A Not So Very Intelligent Fuzzer
 * Marshall Whittaker / oxagast
 *
 *
 *   __ _  _  __   ___  __  ____ ____ 
 *  /  ( \/ )/ _\ / __)/ _\/ ___(_  _)
 * (  O )  (/    ( (_ /    \___ \ )(  
 *  \__(_/\_\_/\_/\___\_/\_(____/(__)
 */
 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
void func(char **argv) {
  printf("running strcpy...\n");
  char arr[16];
  strcpy(arr, argv[2]);
  return;
}
void spawnme() {
  setuid(0);
  int stat = system("/bin/sh");
}
int main(int argc, char *argv[]) {
  int blah = 0;
  if (argc != 3) {
    printf("2 args yo.\n");
    exit(1);
  }
  if (argc == 3) {
    func(argv);
  }
  if (blah == 1)
    spawnme();
  else
    printf("wut?\n");
  exit(1);
}
