#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char shellcode[] =
  "\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
  "\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
  "\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41";

int foo(char *arg) {
	char buf[64];
  	strcpy(buf, arg);
  	return 0;
}
void hacked(){
	printf("Hacked!!\n");
}
int main(int argc, char *argv[]) {
  	printf("Target1 running.\n");
  	foo(shellcode);

  	return 0;
}
