Buffer Overflow 1
Descrição do Desafio:
Passo a Passo da Solução
1. Análise do arquivo fornecido
void vuln(){
char buf[BUFSIZE];
gets(buf);
printf("Okay, time to return... Fingers Crossed... Jumping to 0x%x\n", get_return_address());
}void win() {
char buf[FLAGSIZE];
FILE *f = fopen("flag.txt","r");
if (f == NULL) {
printf("%s %s", "Please create 'flag.txt' in this directory with your",
"own debugging flag.\n");
exit(0);
}
fgets(buf,FLAGSIZE,f);
printf(buf);
}2. Exploit
3. Solução
3.1 Solução com Python
Flag
Autor da WriteUp
Atualizado