Semtex
Semtex is an older (currently offline) wargame of 13 levels on network programming, reverse engineering, buffer overflows and combinatorial analysis.
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Semtex
Semtex is offline.
Wargame?
This network is a legal environment where you can learn coding/hacking techniques without destroying anything. You have to solve Semtex 0 to get a username/password for login. Once logged in, you have to make your way from one level to the next, each one containing a small security hole/feature that has been installed for you. Your mission is to find out how to exploit the weakness and to cause interesting behavior :)
Rules?
Well you can do anything you want on this box, code, hack, learn, … its all there for gaining knowledge. Please refrain from DOS attacks of any kind, it ruins the fun of you and of others. As long as you behave, everything is possible.
Contribute?
This wargame is from the community for the community. If you want to contribute, send a level plus exploit to aton at packetdropped dot org.
Network programming, reverse engineering, buffer overflows and combinatorial analysis.
Contact : aton at packetdropped dot org
Study guide
This guide describes what each Semtex level asks for, using the upstream level pages, without passwords or complete solutions.
Status
The upstream page states that Semtex is offline. The pages here are therefore best read as a syllabus of ideas you can practise yourself, rather than a game you can currently connect to. Check the upstream Semtex page in case that changes.
What Semtex teaches
The maintainers describe the game as a legal environment in which you solve small security holes or features, each installed for you, and learn coding and hacking techniques without destroying anything. The skills it names are network programming, reverse engineering, buffer overflows and combinatorial analysis. You are asked to refrain from denial-of-service attacks, because they ruin the fun for everyone else.
Connecting (historically)
Level 0 gives you credentials for semtex1, used with SSH on port 2229 at semtex.labs.overthewire.org. Other levels refer to extra hosts and tools such as /semtex/ and /rdx/.
The skills ladder
| Levels | Theme | Core skills |
|---|---|---|
| 0 | Getting started | raw TCP, cleaning a data stream, executable formats |
| 1–4 | Reversing and tricks | encryption algorithms, function interception, brute force, ptrace |
| 5–6 | Network games | proxying, multiple source addresses, ICMP and raw sockets |
| 7–9 | Covert channels and tunnels | restricted shells, big-number maths, timing channels, ICMP tunnels |
| 10–12 | Protocol weaknesses | weak authentication schemes, process plumbing, race conditions |
Skills to bring
C or Python, comfort with sockets (Beej’s guide is linked from Level 0), the ability to read assembly, and willingness to write small tools for each level.
Take-aways
Several levels teach ideas that are very relevant today: covert channels, ICMP tunnelling to bypass firewalls, weak challenge-response schemes and spoofed source addresses. Treat them as study cases, and only experiment on systems you own or are authorised to test.