siunam's Website

My personal website

Home Writeups Blog Projects About E-Portfolio

Background

background

question

In this challenge, you have to exit the python script. At that time I was asking myself, if I’m inside a python editor, how do I exit? So I pressed Ctrl+D to exit that script.

question

And yes! I’ve successfully escape that python script!

Next, since the flag is in ./flag.txt, so I was googling How to cat a file inside the python editor, and I found this:

import os

os.system("command")

question

Finally!! We’ve the flag, let’s submit it.