Leviathan3 - leviathan4

From JaxHax
Revision as of 15:54, 31 May 2015 by Travis (talk | contribs) (Created page with "<syntaxhighlight lang="bash"> leviathan3@melinda:~$ ls -la total 32 drwxr-xr-x 2 root root 4096 Mar 21 06:46 . drwxr-xr-x 167 root root 4096 Mar 21...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
leviathan3@melinda:~$ ls -la
total 32
drwxr-xr-x   2 root       root       4096 Mar 21 06:46 .
drwxr-xr-x 167 root       root       4096 Mar 21 06:46 ..
-rw-r--r--   1 root       root        220 Apr  9  2014 .bash_logout
-rw-r--r--   1 root       root       3637 Apr  9  2014 .bashrc
-rw-r--r--   1 root       root        675 Apr  9  2014 .profile
-r-sr-x---   1 leviathan4 leviathan3 9962 Mar 21 06:46 level3

leviathan3@melinda:~$ ./level3 
Enter the password> fsasf
bzzzzzzzzap. WRONG

leviathan3@melinda:~$ ltrace ./level3 
__libc_start_main(0x80485fe, 1, 0xffffd7b4, 0x80486d0 <unfinished ...>
strcmp("h0no33", "kakaka")                       = -1
printf("Enter the password> ")                   = 20
fgets(Enter the password> testte
"testte\n", 256, 0xf7fcac20)               = 0xffffd5ac
strcmp("testte\n", "snlprintf\n")                = 1
puts("bzzzzzzzzap. WRONG"bzzzzzzzzap. WRONG
)                       = 19
+++ exited (status 0) +++

leviathan3@melinda:~$ ./level3 
Enter the password> snlprintf
[You've got shell]!

$ cat /etc/leviathan_pass/leviathan4
vuH0coox6m

$ exit