pwn3d.es

Visual guide

Bash Arena

How bash-arena works: pick a level, solve the challenge in a real Docker terminal, and the flag only appears if your pipeline is right.

536
real levels
18
tracks
HMAC
per-session flags
0
network in the container
>_ pwn3d.esLEARNBash Arena
  1. 01 Arena
  2. 02 Progress

2 screens · 9 parts explained

The arena: challenge on the left, terminal on the right

Each level pairs a brief, a short lesson and a real Bash terminal inside a throwaway container.

BASH//ARENAArenaLevelsProgressCheatsheet1 240 XP · 🔥 6

grep · 50

  • 01 · match
  • 02 · -i
  • 03 · -v
  • 04 · -c
  • 05 · -o
  • 06 · -E
  • 07 · -r
  • 08 · -l
  • 09 · -w
  • ★ boss

grep-07 · 30 XP

Find the lost token

Somewhere under /srv/app a line contains “token=”. Print only the value, nothing else from the line.

Hints

  • Hint 1 · freegrep can search whole directories
  • Hint 2 · −5 XPlook at -o and -hlocked

player@arena:~$

grep -r "token=" /srv/app

/srv/app/conf/.env.bak:token=Zx9-41b

grep -rhoP "token=\K\S+" /srv/app

Zx9-41b

✔ correct output

flag{arena_9c41e07d}

Flag captured · +30 XP · the level is now open to review the solution with no penalty.

CSS mock-up: a recreation of the interface to explain it, not the running tool. Hover a note to see its area.
  1. Track levels

    Each track goes from simple to hard and ends with a boss. Solved levels are green.

  2. The brief

    It says what output is expected, not which command to use. Many solutions are valid.

  3. Hints with a cost

    The first is free; the next ones cost some XP, so trying first pays off.

  4. Real terminal

    A throwaway container with no network, no capabilities and CPU, memory and process limits. What you type really runs.

  5. The flag

    It only appears when the result is right. It is generated per session with HMAC-SHA256 and validated server-side, so it cannot be copied from another player.

How it is used

  1. Pick a track

    Start with fundamentals or jump straight to grep, awk or forensics.

  2. Read the challenge

    Each level brings a brief, a short lesson and a cheatsheet.

  3. Solve it in the terminal

    Try commands until the output matches; the flag appears by itself.

  4. Review and level up

    Check the reference solution with no penalty and move on.

Key concepts

Pipeline
Chaining commands with | so one command’s output is the next one’s input.
Flag
A secret string proving you solved the challenge.
HMAC
A keyed signature that makes each flag unique per session and prevents sharing.
Throwaway container
An isolated environment created for your session and destroyed afterwards.

Want to use it for real?

This guide explains each part of the interface. The full, always up-to-date tool lives on its official site and repository.