cybersecurity · beginner · ~15 min · safe pentest lab

Why you don't scan public targets

Internalise the ethical and legal boundary before touching tools.

Challenge

Print exactly these three lines (with a trailing newline) to stdout:

I will only test systems I am explicitly authorised to test.
Unauthorised scanning is illegal under laws like the UK Computer Misuse Act and US CFAA.
All exercises here target 127.0.0.1 or static text fixtures only.

The first technical control against accidentally illegal pentesting is internal: read the policy out loud.

Starter code

#include <stdio.h>

int main(void) {
    /* TODO: print the three policy lines */
    return 0;
}

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