cybersecurity · beginner · ~15 min · safe pentest lab
Group tools by purpose.
Implement int tool_category(const char *name) returning 1 for recon ("nmap"), 2 for password attacks ("hydra", "john"), 3 for sniffing ("wireshark"), else 0.
#include <string.h>
int tool_category(const char *name) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.