>_ infosec reads

Essay

Practice Your Shell: OverTheWire and UnderTheWire

Posted Nov 24, 2026


Level 1ls

Level 12Decompressing the same file for the ninth time.

Level 20Explaining awk to a coworker, unprompted.

You don't learn a shell by reading about it. You learn it by needing a file and not knowing where it is.

OverTheWire and UnderTheWire are wargames. You connect to a server. Somewhere on it is the password for the next level. Finding it takes a command you probably don't know yet. Then you know it.

OverTheWire: Bash

Start with Bandit. It assumes nothing. The first level is logging in.

ssh bandit0@bandit.labs.overthewire.org -p 2220

The starting password is on the Bandit page. After that you earn them. Early levels are files with awkward names, hidden files, and one useful line in a very large file. Later ones cover permissions, encoding, compression, network tools, cron and git. By the end you've used find, grep, sort, uniq, strings, base64, tar, nc and SSH keys, because you had to.

When Bandit is done, the same site has harder games for web security, binaries and cryptography.

UnderTheWire: PowerShell

UnderTheWire is the same idea for PowerShell. Start with Century. It teaches you to ask the system questions the PowerShell way: Get-ChildItem, Get-Content, Where-Object, Select-Object, and pipelines that pass objects, not text. The later games move into Active Directory, the registry, event logs and services, which is where Windows administration and Windows attacks both live. Connection details are on the site.

If you work in security and can't read PowerShell, you can't read most of what attackers run on Windows. Turn on script block logging and you'll have plenty to read.

How to do it

One or two levels a day. Fifteen minutes.

Read the man page or Get-Help before you search the web. The point is learning to find the answer on the machine, because one day the machine won't have internet.

Don't use walkthroughs. They exist for every level. Using one is buying a gym membership and watching someone else lift.

Don't ask an AI for the answer either. Ask it to explain the command after you've solved the level. That is a different activity.

Keep notes. They become the cheat sheet you actually use at work.

Why bother

Every incident ends up at a command line. Logs are text. The person who can cut through ten gigabytes of them with grep and awk, or pull the right events with Get-WinEvent, is the person who finds the thing. The tools were installed the whole time.

Both are free. Both have rules. Read them.

← all essays