cybersecurity · beginner · ~15 min · safe pentest lab
Grep source for an unsafe call.
Implement int uses_strcpy(const char *code) returning 1 if the source string contains "strcpy(", else 0.
#include <string.h>
int uses_strcpy(const char *code) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.