[GoogleCTF2022] TREEBOX Writeup(문제풀이)
문제 개요 Python Sandbox Escape(PyJail Break) 코드 분석 우선 문제에서는 파이썬 코드가 주어졌는데요. 최상단에 보면 python3 으로 실행한다고 되어 있습니다. #!/usr/bin/python3 -u # # Flag is in a file called "flag" in cwd. # # Quote from Dockerfile: # FROM ubuntu:22.04 # RUN apt-get update && apt-get install -y python3 # import ast import sys import os def verify_secure(m): for x in ast.walk(m): match type(x): case (ast.Import|ast.ImportFrom|as..