# Behemoth wargame: Level 0


# ssh behemoth0@behemoth.labs.overthewire.org
behemoth0@behemoth.labs.overthewire.org's password:626568656d6f746830

behemoth0@melissa$ file /behemoth/behemoth0
/behemoth/behemoth0: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
behemoth0@melissa$ gdb -q /behemoth/behemoth0
(gdb) set disassembly-flavor intel
(gdb) break *0x080485db
Breakpoint 2 at 0x80485db
(gdb) run
Starting program: /behemoth/behemoth0
Password: aaa

Breakpoint 1, 0x080485db in main ()
(gdb) x/xw $esp
0xffffd6c0:     0xffffd6df
(gdb) x/s 0xffffd6df
0xffffd6df:      "aaa"
(gdb) x/xw $esp+0x4
0xffffd6c4:     0xffffd720
(gdb) x/s 0xffffd720
0xffffd720:      "eatmyshorts"
behemoth0@melissa$ /behemoth/behemoth0
Password: eatmyshorts
Access granted..
$ /usr/bin/whoami
behemoth1
$ /bin/cat /etc/behemoth_pass/behemoth1
61657365626f6f746976

No comments: