CTF/LINE CTF 2022
-
[Study] LINE CTF 2022 Memo Drive WriteupCTF/LINE CTF 2022 2022. 3. 28. 07:47
주어진 페이지에 접근해보자. 아래와 같이 메모를 작성하고 읽을 수 있는 기능이 구현되어 있다. 주어진 소스코드를 분석해보자. 우선 Dockerfile에 플래그 위치가 나타나있다. ${MEMO}/memo/flag 를 읽어 플래그를 획득 할 수 있다는 점을 기억하자. FROM python:3.9.0 LABEL maintainer "t0rchwo0d_LINE" ENV SALT="ONLY_FOR_LOCAL_TEST" ENV MEMO /usr/local/opt/memo-drive RUN mkdir -p "${MEMO}" RUN apt-get -qq update && \ apt-get -qq -y upgrade && \ apt-get -qq -y install htop net-tools vim COPY ./memo..
-
[Clear] LINE CTF 2022 gotm WriteupCTF/LINE CTF 2022 2022. 3. 28. 06:56
주어진 URL에 접근해보면 당장에는 빈 페이지로 보이지만, 주어진 소스를 보면 go언어로 만들어져있는 사이트이며, 유효한 경로와 해당 기능이 어떤 핸들러에 매핑되어 동작하는지 확인 할 수 있다. // (3/3) of full source func main() { admin := Account{admin_id, admin_pw, true, secret_key} acc = append(acc, admin) http.HandleFunc("/", root_handler) http.HandleFunc("/auth", auth_handler) http.HandleFunc("/flag", flag_handler) http.HandleFunc("/regist", regist_handler) log.Fatal(http...