Behemoth Level 0
Behemoth Level 0 — a program that asks for a password; learn to find what it compares your input to by tracing and string extraction.
Table of Contents
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,ltraceandgdb. - 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
- Run the binary in
/behemoth/and see what it asks. - Use
ltraceandstringsand compare what each shows. - 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.