๐Notes - TFCCTF2023
Source
Analysis
#define CONTENT_MAX (long long)256 // <--- here
...
note_t* add() {
note_t* note = malloc(sizeof(note_t));
note->content = malloc(sizeof(CONTENT_MAX)); //<--- here
printf("content> \n");
fgets(note->content, sizeof(CONTENT_MAX), stdin);
return note;
}
void edit(note_t* note) {
printf("content> \n");
fgets(note->content, CONTENT_MAX, stdin); // <---- here
}Set break point tแบกi add() vร edit()


Nhฦฐng lร m sao ฤแป win ฤฦฐแปฃc bร i nร y?

Test:




Full payload:
Last updated