Medium Live

Time to Eat

50 points

328 Solves

Reverse Engineering

Fireflew

Community Rating: 4.47 / 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.

My friend sent me some Python code, but something tells me he was hungry when he wrote it. Do you think you can put your reverse engineering skills to use and get it to output the flag?

First 10 Solvers

Rank Username
1 EdbR
2 comet
3 Andreyman76
4 vunguyen92
5 Gilad ctflearn++ badge
Rank Username
6 b4el7d
7 Exolon
8 amnesia
9 Peace-Maker
10 lamchcl

Comments

    • michaelmichael

      0.0

      tried to sort through the code for a while, but ultimately brute forced it

    • falca

      0.0

      after 1h analysis, I found it too easy to reverse without analyzing all functions

    • aporkchop

      0.0

      I got the flag but website keeps saying incorrect flag

    • Londek

      0.0

      Really good challange! It deserves Medium because for me without big python knowledge (sry i sit in java and c#) it wasnt hard and wasnt easy. I made 100% re and 0% brainless bruteforce. I just weren't sure about first digit, so i "bruteforced it in my brain" with knowing its <5 and >0 so i think we can keep it in reversing category because i knew what i were doing.

    • SquidBoy

      0.0

      Started to reverse engineer, but once I found the length it was just a question of finding how it derived it's check from it (as much by trying simple inputs as looking at the code)

    • Xelpip

      0.0

      finally I solved it in 100% re 0% bruteforce ^^

    • 5punnr1ng

      0.0

      great challenge, I was too lazy too figure out the first 3 digits, so I ended up brute forcing them, still very enjoyable

    • jpgauvin

      0.0

      in the function "EAt(eat, eats):". I've insect a string builder that adds 1 for the first if and 2 for else. I end up with a sequence that let me reconstruct the sequence "E10a23t9090t9ae0140". I had to increment one position manually and after a few try, I found the answer.

    • ejhokan

      0.0

      This was a little harder on me than the hard binary Reversing challenge I did earlier. Don't RE much python. Renaming some of the variables and function names, once I figured out what they did helped me. Use PyCharm or WingIDE to help with debugging.