Let’s dissect the prompt:
While it may seem simple, teaches the "42 way": navigating the man pages , understanding environment variables, and learning the precision required to satisfy an automated tester. It is a building block for more complex scripting tasks in the Shell01 module, such as finding files ( find_sh ) or extracting MAC addresses. 42piscine/shell01/ex01/print_groups.sh at main - GitHub Shell01 Ex01
In a CTF context, a Shell challenge typically grants the user access to a remote server (often via SSH) with low-level privileges. The goal is usually to find a hidden file, read a protected document, or exploit a misconfiguration to gain higher privileges (escalation). Let’s dissect the prompt: While it may seem
What if $FT_USER is empty? The subject likely expects you to trust the environment. What if the user has no supplementary groups? The command should still output the primary group. The goal is usually to find a hidden