Exploit a buffer overflow
问题 For my studies I try to create a payload so that it overflows the buffer and calls a "secret" function called "target" This is the code I use for testing on an i686 #include "stdio.h" #include "string.h" void target() { printf("target\n"); } void vulnerable(char* input) { char buffer[16]; strcpy(buffer, input); } int main(int argc, char** argv) { if(argc == 2) vulnerable(argv[1]); else printf("Need an argument!"); return 0; } Task 1 : Create a payload so that target() is being called. This