Medium Live

Favorite Color

60 points

658 Solves

Binary

thekidofarcrania moderator badge

Community Rating: 4.72 / 5

Headline

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

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!

First 10 Solvers

Rank Username
1 kronos
2 tanix
3 vidar
4 voidmercy
5 95570e9a
Rank Username
6 nously
7 kilocaleb
8 sploitem
9 adragos
10 defntvdm

Comments

    • scarfaace

      0.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.

      • StefanCicos

        0.0

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

    • Disasm

      2

      Hmm ... I always get that: Enter your favorite color: Me too! That's my favorite color too! You get a shell! Flag is in flag.txt Segmentation fault (core dumped) It seems the process does not have enough privilege to call system() and a shell is not spawned. That is why it goes to the normal path and crashes with segfault when the stack is restored. You might want to revisit the permissions on the guest user.

      • Kuber19

        0.0

        I have got the same problem :/

      • momo1

        1

        I got the same output, And it took me way too long to overcome this error, but it is not a problem with the CTF. it is possible to get a shell. if you get this error, you missed something.

    • elliot_pwn

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.

    • elliot_pwn

      Protected 0.0

      [REDACTED] This comment is only shown to users who have solved this challenge.

    • camus_

      0.0

      took time but great learning expericence

    • AntonioCaesar

      0.0

      why i can't type the password? it's bug or feature?

          • thekidofarcrania moderator badge

            0.0

            Oh... I think you can type the password but it just doesn't show up, but it's still there