I saw them put someone in jail. Can you find out who it is? They said this is the best prison ever built. You sure can't break it, can you?
We netcat into the given IP and notice that the python interpreter is open and many common commands are banned. So like with any python jail we try different things to bypass the banned commands. We see
print(dir()) works and hence decide to proceed along those lines. We try
We then try
This prints a lot of useful classes among which was the
file class. So we try to open the flag file with
We see it does not have the flag and asks us to check the source code for flag. So I randomly tried
and got the source code which had the flag