Someone has been poking around in my (pretend) homelab and left five flags behind. Each one looks like FLAG{something}. You’re logged in as guest: find them all using real Linux commands. Everything runs in your browser and the whole box is make believe, so type whatever you like.
How to play
- Type
helpto see the commands, andhintwhenever you’re stuck. The hints get you to each flag without giving it away. - A flag counts as soon as it shows up in your output, and the counter in the corner keeps track.
- Pipes work, so
cat /var/log/auth.log | grep Failed | wc -ldoes what you’d hope. Tab completes commands and file names, and the up arrow brings back what you typed. - Your progress and best time are saved in your browser, so you can come back later.
What it teaches
Each flag is one habit I use on real servers all the time:
- Hidden files. Anything starting with a dot doesn’t show up in a plain
ls. Plenty of secrets live in dotfiles. - Searching logs. Nobody reads a 300 line log from the top.
grep -ifinds the line you care about in a second. - Busy processes. When a server is slow,
ps auxshows what’s eating the CPU, and/proc/<pid>/cmdlineshows what that process really is. A process pretending to be a kernel thread is a classic crypto miner trick. - Cron and base64. Scheduled jobs live in
/etc/crontab. Text ending in=is usually base64, which is just encoding: anyone can decode it withbase64 -d. - Forgotten backups.
find / -name "*.bak"turns up the copies of config files people forget to delete.
If you want the commands in one place, my list of 50 commands every IT admin should know covers all of these and more. There are more games on the games page.
jack@jackwent:~$ ls -lht ~/tools
More tools and guides
total 8
-rw-r--r--24 Oct 261.3Kblock-attacksBlock the Attacks-rw-r--r--24 Oct 261.4Kpatch-fleetPatch the Fleet-rw-r--r--24 Oct 261.3KsubnetleSubnetle: A Daily Subnetting Puzzle-rw-r--r--21 Oct 262.5Kthreat-mapLive Attack Map: What Gets Blocked on My Sites and Network-rw-r--r--07 Oct 2611Kcommands.md50 Commands Every IT Admin Should Know-rw-r--r--07 Oct 262.8Kmemory-calcMemory Calculator-rw-r--r--07 Oct 263.8Ksubnet-calcSubnet Calculatordrwxr-xr-x17 Mar 248.0Kscripting/Useful PowerShell and Bash Scripts
jack@jackwent:~$ ls -lht ~/projects | head -3
Related projects
total 3
-rw-r--r--10 Oct 2610Kcabin-zigbee2mqtt.yamlHow I made my garden cabin office smart with Zigbee2MQTT and a network coordinator: presence, temperature, blinds, heating, smoke alarm and lights.-rw-r--r--07 Oct 267.6Kserver-alerts.yamlOne Home Assistant notification listing every offline server and pending update, which clears itself when everything is healthy. Full YAML included.-rw-r--r--24 Sept 2616Krfid-films.yamlTap a card, the film plays: an ESP32 RFID reader, ESPHome and a Home Assistant automation that starts Plex films on the living room TV.