strings ./level3You may be able to see the password in the returned results, but it is not blatantly obvious. If we use the linux command ltrace to find the strcmp function used we may be able to determine what our input is being compared to while it is executing.
ltrace ./level3After the program executes we see strcmp("h0no33", "kakaka") and then it asks for the password. We know this is not the right comparison, so enter something in again, and you will see the proper strcmp with the actual password. Disregard the \n at the end, it is a new line terminated string.
When you input the password it expects you are dropped into a shell. You can run the whoami command to figure out which user you are, although it should be no surprise that it is Leviathan4. Use the following command to get the password to log in to leviathan4 directly.
cat /etc/leviathan_pass/leviathan4
No comments:
Post a Comment