Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • 문제: 주어진 PDF 문서의 음영 마크를 읽어라!

Image Modified

  • 풀이환경: 리눅스(Debian 4.18.10-2kali)

  • 풀이도구: pdftotext


  • 풀이: pdftotext를 사용하여 pdf내 문자열을 txt파일로 저장후 읽으면, 정답을 확인 할 수 있다.


    Code Block
    #/bin/bash
    
    curl "https://storage.googleapis.com/gctf-2018-attachments/5a0fad5699f75dee39434cc26587411b948e0574a545ef4157e5bf4700e9d62a" -o letter.zip 2>/dev/null
    unzip -a letter.zip 2>/dev/null
    pdftotext challenge.pdf
    cat challenge.txt | grep "CTF"