Medium Live

Time to Eat

50 points

285 Solves

Reverse Engineering

Medium

Fireflew

Community Rating: 4.45 / 5

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

  • thekidofarcrania moderator badge

    Protected

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

  • topson

    thanks for the challenge learn something new <3

  • heinandre ctflearn++ badge

    Protected

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

  • idkmn

    anyone give me some hint?

    • A23187

      Protected

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

  • parazol

    Thanks, this one was really satisfying to solve

  • ubithelumper

    In case you are lost, renaming the variables could be helpful.

  • ejhokan

    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.

  • jpgauvin

    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.

  • 5punnr1ng

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

  • Xelpip

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

  • SquidBoy

    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)

  • Londek

    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.

  • aporkchop

    I got the flag but website keeps saying incorrect flag