22 lines
533 B
Markdown
22 lines
533 B
Markdown
|
== 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.
|