Cookie Consent by

Latest entries | Category CTF writeups | Page 5

CTF writeups

DarkCTF 2020: Rev/so_much


207 points

strcmp printf File


I've used ghidra to have a look into the decompiled code.

After quick examination I've came to conclusion that the code base on strcmp function. I've decided to override this function with my own implementation.

Prepared below code:

#define _GNU_SOURCE

int strcmp ( char * str1, char * str2 )
return 0;

int main()
return 0;

Compiled it and executed the program with LD_PRELOAD.

gcc -ldl -fpic -nostartfiles -shared mystrcmp.c -o
sudo LD_PRELOAD=./ ./so_much anything


DarkCTF 2020: Misc/Minetest 1

Misc/Minetest 1

303 points

``` Just a sanity check to see whether you installed Minetest successfully and got into the game

Challenge ```


Just install the game and import the given world. Once started we've got some logical gates. If you make circuit to have true on the output flag will show up.