cybersecurity · beginner · ~15 min · safe pentest lab
Restore the overwritten first byte.
Implement unsigned char recover_first(unsigned char first, unsigned char hint) returning hint if the entry is deleted (first == 0xE5), otherwise first unchanged.
unsigned char recover_first(unsigned char first, unsigned char hint) {
/* TODO */
return first;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.