cybersecurity · beginner · ~15 min · safe pentest lab

Should you stop?

Honour the stop conditions in the RoE.

Challenge

Implement int must_stop(int found_critical, int roe_stop_on_critical) returning 1 if a critical finding occurred AND the rules of engagement say to stop on critical findings.

Starter code

int must_stop(int found_critical, int roe_stop_on_critical) {
    /* TODO */
    return 0;
}

Solve this exercise in the browser editor — compile and run against the test harness, no setup required.