cybersecurity · beginner · ~15 min · safe pentest lab

Tool category

Group tools by purpose.

Challenge

Implement int tool_category(const char *name) returning 1 for recon ("nmap"), 2 for password attacks ("hydra", "john"), 3 for sniffing ("wireshark"), else 0.

Starter code

#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.