Skip to content

Behemoth Level 0

Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.

There is no information for this level, intentionally.

Study guide

Level map: logged in as behemoth0, find the password for behemoth1.

What this level teaches

Static and dynamic analysis of a simple password-checking binary, as in Leviathan.

Key ideas

  • Hard-coded comparisons. A program that compares input to a built-in string reveals that string to tools such as strings, ltrace and gdb.
  • What the program does on success. It starts a shell with the privileges of the next user, which is why it is useful.
  • Two angles. Try both a static look (strings, disassembly) and a dynamic one (ltrace).

How to approach it

  1. Run the binary in /behemoth/ and see what it asks.
  2. Use ltrace and strings and compare what each shows.
  3. Once you have a shell, read the next password from /etc/behemoth_pass/.

Why it matters

Hard-coded credentials in binaries are found constantly in real firmware and applications.