파이썬 포맷 스트링1 [TFC CTF 2022] pattern 1. 개요 파이썬 포맷 스트링 문제 2. 분석 참고 자료: https://lucumr.pocoo.org/2016/12/29/careful-with-str-format/ 포맷 스트링 부분에 {} 중괄호로 삽입가능해보입니다. import dataclasses import errno import os import random FLAG = os.environ.get("FLAG") if not FLAG: print("If you're running this locally, please create a fake flag env variable.") print("If you're seeing this on the remote server, please contact the admins.") exit(errno.ENO.. 2022. 7. 31. 이전 1 다음