// gcc -g -O0 -m32 -no-pie -fno-pie -fno-stack-protector -mpreferred-stack-boundary=2 function.c #include #include void admin_stuff() { printf("Welcome back administrator!\n"); } int main(int argc, char *argv[]) { char buffer[8] = {0}; if(argc != 2) { printf("A single argument is required.\n"); return 1; } printf("Copying \"%s\"\n", argv[1]); strcpy(buffer, argv[1]); return 0; }