PicoCTF Challenge: GDB Baby Step1
Challenge Overview:
- The following was the description for the challenge:
Deep dive
- The approach is very straight forward
- The approach is kinda always the same.
- Whenever you get a binary, you have to make it executeable, otherwise you won’t be able to run.
- Starting GDB
- This step was unncessary but it always important to understand the behaviour of the program. You have to run it and see the output, and in our case, when we try to run the binary it just exits.
- Futhermore we see that by using the
ltracecommand, which is very useful as well. It also tells us that the program just exits.
- Following the instructions from the description:
- Python script?
python3 -c "print(int('0x86342',16))" - Takes the hex and converts it to a decimal. The
16representhex -callows us to execute python from the terminal.
- Python script?