Author: Will Hong
The program provided allows you to write to a file and read what you wrote from it. Try playing around with it and see if you can break it!
Connect to the program with netcat:
$ nc saturn.picoctf.net 55826
The program's source code with the flag redacted can be downloaded here.
Hint 1
Try passing in things the program doesn't expect. Like a string instead of a number.You can write some data to the database and also read it again. If you select read (2) and instead of giving a valid number for the entry id you pass a string, the flag is printed.
Show flag
picoCTF{M4K3_5UR3_70_CH3CK_Y0UR_1NPU75_149F090A}