BASH ARENA · REAL CATALOGUE + CHALLENGES
536 LEVELS · 18 TRACKS · VISUAL GUIDE
Pipelines that resolve, not containers that boot.
A Docker terminal in the browser with 536 real Bash levels across 18 tracks. Each level hides a flag that only appears if your pipeline is right, and the server verifies it.
- real levels
- 536
- tracks
- 18
- screens in the guide
- 2
- parts explained
- 9
What it is and what it is for
bash-arena is a Docker terminal in the browser with 536 real Bash levels across 18 tracks: each level hides a flag that only appears if you solve the challenge with the right commands, and the server verifies it automatically. It adds XP, ranks, streaks, hints and a player PDF report.
Tracks go from basics, filtering, searching, processing, permissions, processes, networking, files, scripting and forensics to specialities such as grep and awk (50 levels each), their expert grep-pro and awk-pro versions, sysadmin, DNS and SQL, with a boss at the end of each block. After capturing a flag, the level stays open to review the solution with no penalty.
Each level is a declarative YAML with setup, reference solution, hints, lesson and cheat sheet, and every solution is tested in its real container. Each session runs in an ephemeral container with no network, no capabilities and CPU, memory and process limits; flags are generated per session with HMAC-SHA256 and only the server validates them.
When to use it
Learning the command line by playing
Progress through tracks with hints and XP, from the first cat to awk and sed pipelines.
Specialising in grep and awk
The grep-pro and awk-pro tracks train a single tool at expert level.
Running an arena for a group
Deploy the release with one command and give each student an isolated container.
How it works
Isolated session
The server creates a container with --network none, --cap-drop ALL, --pids-limit 128, 256 MB and 0.5 CPU.
Level setup
The YAML setup runs as root and hides an HMAC-generated flag for that session.
Terminal in the browser
xterm.js talks over WebSocket with the gateway; the user never touches the Docker socket.
Server-side validation
The flag is always checked on the backend; then XP, streak and achievements are added.
What changes on pwn3d.es
- On pwn3d.es the tool is explained with a visual guide: its interface recreated in CSS, screen by screen, with each part numbered and explained.
- pwn3d.es neither runs nor hosts the tool: to use it there are its official site and repository, always at their latest version.
Installation and usage
Installation
git clone https://github.com/D1se0/bash-arena.git
cd bash-arena
docker build -t bash-arena/dojo-base:latest -f docker/ubuntu-dojo.Dockerfile .
./scripts/deploy.sh # build + up → web en http://localhost:8091 · API en :18080
./scripts/status.shUsage
node scripts/test-levels.mjs # todos los tracks
node scripts/test-levels.mjs awk/l5 # subconjunto por substringReal examples
id: awk-l52 track: awk index: 52 title / goal / brief xp / difficulty setup: | # corre como root; aquí viaja $DOJO_FLAG solution: ... # sale con exit 0 e imprime la flag hints / teach / cheatsheet / keywords
Stack and dependencies
- React + Vite + xterm.js
- Client with web terminal over WebSocket
- Node
- Server: engine, WS gateway and Docker sessions
- Docker24+
- One ephemeral container per session on the dojo-base image
- YAML
- Declarative levels in levels/
- jsPDF
- Player PDF report
- Tailwind CSS
- Documentation site on GitHub Pages
git · repository code
Explore the repository
Related tools
Catalogue and concept adapted from bash-arena, released under the MIT licence. The challenge selection, synthetic datasets, engine and entire interface were rewritten for pwn3d.es without reusing its container execution, PTY or HMAC flags.