A Linux wargame
This is the practice ground for the operating systems security course. It is a ladder of levels on a shared Linux machine. Each level is a user account: you log in as that user over SSH, look around, and find the password of the next level. Each level page says what to look for, which commands may help, and gives hints if you need them.
How to connect
You need a terminal with an SSH client. On Linux and macOS it is already installed. On Windows, open PowerShell or Windows Terminal.
The first level is rung0. I give its password in class.
ssh -p 2222 rung0@play.ctf.wail.ly
The first time you connect, ssh does not know the server yet. It shows the server's key fingerprint, which starts with SHA256:, and asks Are you sure you want to continue connecting (yes/no/[fingerprint])?. Compare that fingerprint with this one: SHA256:a9w1tMBgM9A/jFy31GOMyfyTNvFmp37kMHfXMqinlQQ. If they are the same, type yes and press Enter: ssh remembers the server and does not ask again. If they differ, do not connect, and tell me.
Nothing shows on screen while you type the password: that is normal.
The game listens on port 2222, not on the usual SSH port, so keep -p 2222 in the command. Each level page shows its own connection line. If a command seems stuck and the prompt does not come back, press Ctrl+C: it stops the command. When you find a password, write it down: you need it to log in to the next level.
Levels
- Shell warm-up 8 levels
Rules
- No spoilers. Do not publish passwords or solutions, here or anywhere else. Discussing an idea with someone is fine; handing them the command is not.
- Leave the host alone. Do not try to break the machine, slow it down or get out of the game. If you think you have found a flaw in the machine itself, tell me rather than using it.
- Leave the other players alone. Several people play the same level as the same user at the same time. Do not delete, change or hide what you find, and do not disturb other sessions.
- I follow the class on a board that shows one mark per session on each level. A mark is a session, not a person: it does not say who you are.
Privacy
- There are no accounts. You do not sign up, and nothing asks for your name.
- Like any SSH server, the game server keeps standard connection logs, which include the address you connect from. They are kept for at most 14 days and are used to fix connection problems and to deal with abuse.
- Players connected at the same time can see the address others connect from, with ordinary system commands. The server cannot hide it.
- My board shows the sessions on each level and how long they last. It never shows addresses or what you type.
- I also keep for 400 days when each session on a level started and ended, with no name and no address, to see which levels are too hard.