FormulaOne
FormulaOne is a wargame rescued from intruded.net, played over SSH on port 2232, whose first task is to work out where its first level's source lives.
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
FormulaOne
FormulaOne is a wargame that has been rescued from the demise of intruded.net, previously hosted on formulaone.intruded.net.
FormulaOne’s levels are called formulaone0, formulaone1, … etc. and can be accessed on formulaone.labs.overthewire.org through SSH on port 2232.
Data for the levels can be found in /formulaone/.
The source code for the first level can be accessed by logging in to a wargame hosted on the same server. Your first task is figuring out which wargame that is.
Study guide
This guide is spoiler-free. It explains how to approach FormulaOne and what each stage asks of you, but upstream deliberately withholds level descriptions, so there are no level-specific claims here beyond what the index says.
What FormulaOne teaches
FormulaOne is another wargame rescued from intruded.net. Its index gives very little away beyond where to connect.
Connecting
FormulaOne is reached with SSH at formulaone.labs.overthewire.org on port 2232. Levels are accounts called formulaone0, formulaone1 and so on, and the level data is in /formulaone/. These games were rescued from the defunct intruded.net with thanks to adc, morla and reth.
Prerequisites
The index gives no difficulty rating. Treat it as an advanced game and finish Bandit, Leviathan and Narnia first.
The first puzzle
The index says: the source code for the first level can be accessed by logging in to a wargame hosted on the same server, and your first task is figuring out which wargame that is. Think about which accounts and directories you can already reach.
A reconnaissance checklist
ls -l /formulaone/and look at the permissions. A setuid bit marks the program that is your route to the next user.fileandstringson the binary.- Run it normally, then with odd input.
ltraceandstracefor library and system calls.gdborobjdump -dfor the logic.- Decide what kind of flaw you are looking at before choosing an attack.
How the levels are numbered
The page for Level N is the account formulaoneN. Each level’s password is typically stored in a file readable only by the next user, and your task is to get the program for level N to read or reveal it.
Tools
gdb, objdump, ltrace, strace, ghidra, gcc, nc, pwntools, and a notes file for addresses, offsets and observations.
Keep it ethical
Everything here is for the wargame servers. Do not attack other systems, and do not share passwords or complete solutions that would spoil the game for others.