cybersecurity · beginner · ~15 min · safe pentest lab
Internalise the ethical and legal boundary before touching tools.
Write a main that prints the pentest-scope policy to stdout. The first control against accidentally illegal scanning is internal: state the rules out loud.
From main, print exactly these three lines to stdout, each ended with a newline:
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.
None — the program takes no input.
The three lines above, in order, each followed by \n. No extra leading or trailing output.
(no input) -> the three policy lines, each ending with a newline
None — the program takes no input.
Three exact policy lines on stdout, each terminated by a newline.
Output must match exactly — no extra or missing newlines.
#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.