Post

Simple Elf

This is a writeup of the reversing challenge Simple ELF from the Security Valley CTF

Premise

Can you deal with dwarfs and elfs`

Link: https://github.com/SecurityValley/PublicCTFChallenges/tree/master/reversing/the_elf

Challenge files:

crackme-01

Observations

When simply attempting to run the file, we get the following output:

1
2
3
Sometimes, there is something inside me. Can you get it?
S
Whoops, that was weird??

Which doesn’t allow us as users to do a lot, so we move on to another method.

Solution

If we run the strings command, simply:

1
strings crackme-01

We’re able to find our flag among the strings outputted. To simplify it even further, we can run:

1
strings crackme-01 | grep SecVal

When running the second command, we get the flag in plaintext: SecVal{[REDACTED]}

Tools used:

  • A standard linux terminal
  • strings
  • grep
This post is licensed under CC BY 4.0 by the author.