BASH FORGE · SAFE ACADEMY
9 WORLDS · 90 LESSONS · VISUAL GUIDE
Learn Bash without running a shell.
Learn Bash by writing real scripts on Ubuntu 24.04 inside Docker: nine worlds, from Midgard to Asgard, and every script validated against test cases.
- worlds of Yggdrasil
- 9
- lessons
- 90
- screens in the guide
- 2
- parts explained
- 7
What it is and what it is for
Bash Forge is an open-source platform to learn Bash by writing and running real scripts on a real Ubuntu 24.04 inside Docker, from a web terminal with a Nordic finish. No simulations: every command really runs in an isolated sandbox.
The curriculum follows nine worlds of Yggdrasil, from Midgard (first contact, echo, paths and your first script) to Asgard (final projects such as rotating backups or a resource monitor), through variables, conditionals, loops, functions, I/O and processes, arrays and text and robustness with set -euo pipefail and ShellCheck. It adds up to 90 lessons, 8 challenges, 6 timed Boss Fights and 12 guided practice lessons (IF, FOR, WHILE and CASE).
Each lesson is validated by running your script as a black box against generated test cases and returns a teaching report. Progress includes XP, forge ranks (from Apprentice to Master Smith) and a daily streak, and the UI has its own design system with 24 Elder Futhark runes.
When to use it
Learning Bash from scratch
Follow the worlds in order, from the first echo to a capstone project, with automatic validation.
Practising a specific concept
Guided practice tracks train IF, FOR, WHILE or CASE without progression locks.
Training a team
Run the stack locally and give each person their own isolated user in the sandbox.
How it works
Browser
React and xterm.js open a session over HTTP and WebSocket.
web (nginx)
Serves the app and forwards /api and /ws to the sandbox over an internal network with no Internet access.
sandbox-server
ws + node-pty + validator: it creates an unprivileged Linux user per session; checks run as another user and cannot be read or altered.
No docker.sock
No container mounts /var/run/docker.sock, by design.
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-forge.git
cd bash-forge
./bashforge dev # construye, levanta el stack y espera al sandbox
# → http://localhost:8080Usage
./bashforge help # down, status, list, verify, lessons, check, purge…
./bashforge purge s # deja el sistema sin rastro del proyecto
ln -sf "$(pwd)/bin/bashforge" ~/.local/bin/bashforgeStack and dependencies
- React + xterm.js
- UI and web terminal
- WebSocket + node-pty
- Real terminal (bash -l) from the browser
- Ubuntu 24.04 en Docker
- Sandbox with one unprivileged user per session
- nginx
- Serves the SPA and proxies /api and /ws
- YAML
- Lessons in packages/lessons/<world>/<id>/lesson.yaml
git · repository code
Explore the repository
Related tools
Content adapted from bash-forge, released under the MIT licence. The workshop selection, evaluator, virtual filesystem and entire interface were rewritten for pwn3d.es without reusing the original PTY terminal.