ret2win_params.c
#include <stdio.h>
void hacked(int first, int second)
{
if (first == 0xdeadbeef && second == 0xc0debabe){
printf("This function is TOP SECRET! How did you get in here?! :O\n");
}else{
printf("Unauthorised access to secret function detected, authorities have been alerted!!\n");
}
return;
}
void register_name()
{
char buffer[16];
printf("Name:\n");
scanf("%s", buffer);
printf("Hi there, %s\n", buffer);
}
int main()
{
register_name();
return 0;
}