Favorite Color
60 points Medium

What's your favorite color? Would you like to share with me? Run the command: ssh [email protected] -p 1001 (pw: guest) to tell me!

Flag
Rating 4.70
5
4
3
2
1

Discussion

I got to admit that thekidofarcrania gives the best opportunities to learn new things!

0

I had some weird issues with the server yesterday. I got the shell, but when I entered the command to show the flag, I just got a segmentation fault. Tried it today, and everything worked fine (executed the same commands as yesterday).

0
Protected
-1

If you think you've got your solution, try it outside of GDB! (Learnt this the hard way ...)

0
Protected
0

very difficult

0

I tested it on my local machine. But buf is ABOVE good. So with a buffer overflow I cannot get to an address below the starting point. What am I missing?

0

Maybe you don't need to alter the "good" variable.

1
Protected
2
Protected
0

How is it possible to get out of good &= buf[i] ^ buf[i]; anything else than 0? XOR of 2 same characters is always 0 and 0 XOR 0 is always 0.

1

That is the point. You can't so you have to bypass the check

1

this is where i got stuck. You can't bypass it. Get around the check and find a way to go directly to the system command

1