I don't understand how to modify the value at the address of memory.how we can exploit the code?.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char*argv[])
{
int num1 = 1;
char input[128];
snprintf(input, sizeof input, argv[1]);
input[sizeof (input) - 1] = 0;
if(num1==1337){
printf("Congrats\n");
}
return 0;
}