Xorathrust
First, we were given 2 files.

Figure below shows the content of the Python file.

I knew that the script was doing something else, so I tried to run the script, hoped to get a clearer idea on what it was doing. Then, an error was returned, saying that “flag.txt” was not found.

Hmmm, what now? Since I have another file in hand, I decided to give it a shot by renaming the file to “flag.txt”.

I ran the script again after the renaming, and there was no output this time.

Before I had a deeper thought, my muscle memory of doing the “ls” command somehow did the trick for me. I saw that there was a new file being generated.

Yes, reading the content of the file did returned the correct flag.

Final flag: KCTF{ju5t_4_b45ic_x0r}
Last updated
Was this helpful?