Challenge Description:
any symbols to help me find the flag?
so the first thing i did was check the binary it turned out to be a 64 bit linux elf pie executable packed with upx.
running strings and opening it showed almost nothing useful at first because the binary was packed and the section headers were missing. i unpacked the binary using upx.
a bunch of functions appeared: main, rol8, ror8, expected, f_0 ... f_43.
the challenge title was basically screaming at us to look at the symbols — the symbols ended up being the entire solution path.
looking at main we can see the program reads user input using fgets:
decompiled main
fgets(input, 0x30, stdin);
strcspn(input,"
") == 0x2c // 44 bytes
srand(time(0));
r = rand() % 44;
if(i == r)
exit(0); // always exits before validation
so the program always exits before reaching the real validation logic. the real validation happens through f_0 -> f_1 -> f_2 -> ... -> f_43, each validating exactly one character.
since every function only depends on one character i brute forced each position independently.
for each function i extracted the operations and tested printable characters until the comparison matched — doing this for all 44 functions recovered the entire flag.
Flag
dalctf{symb0ls_4r3_4lw4ys_3xtr3m3ly_h3lpfu1}