Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 584 Bytes

File metadata and controls

24 lines (16 loc) · 584 Bytes

SC

  • Category: Crypto
  • Score: 100/500
  • Solves: 224/286
  • Score(MFCTF): 100/500
  • Solves(MFCTF): 82/124

Description

SC? SuperChat?

Overview

一個很簡單的 Substitution cipher,使用了同個替換同時加密了 cipher.pyflag.txt

Solution

利用 cipher.pycipher.py.enc 可以找出那個替換,將它反過來就能解密 flag.txt

Ti = str.maketrans(open('cipher.py.enc').read(), open('cipher.py').read())
print(open('flag.txt.enc').read().translate(Ti).strip())