0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

mod

Last updated at Posted at 2023-11-15

[picoCTF][Cryptography][basic-mod1]

Writeup

  • 解法が書いてあるので、翻訳ソフトで翻訳。
    DeepLって分かりやすい日本語に変換してくれます。
    screenshot 2.png
    screenshot 3.png

  • BingChatに作ってもらったプログラムを微修正。
python
# 入力データ
numbers = [128, 322, 353, 235, 336, 73, 198, 332, 202, 285, 57, 87, 262, 221, 218, 405, 335, 101, 256, 227, 112, 140]

# 文字セット
charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'

# 各数値を37で割った余りを計算し、文字セットにマッピング
result = ''.join([charset[n % 37] for n in numbers])

print('picoCTF{'+result+'}')
  • 自分で書くよりスマートで、なんとも言えない。
    screenshot.png

  • 以上です。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?