write-ups-challenges-2020-2021/tiny/README.md

22 lines
533 B
Markdown
Raw Normal View History

2022-11-24 17:03:20 +00:00
== Title ==
Tiny
== Description ==
I made a compiler for a subset of C and compiled some code with it.
Can you figure out what it does?
== Flag ==
IGCTF{CompilersAreFun}
== Files ==
Participants should receive the "challenge" file.
== Deployment ==
/
== Solution/Writeup ==
The binary can be decompiled with a program such as Ghidra.
In Ghidra, a function "check_flag" can be found.
The source code of this function will contain a large set of assignments to an array (by default in hex).
Decoding this hex will yield the flag.