C3¶
Writeup de Arnold-26, repris avec son autorisation. Source :
cylab-academy-writeups— challenge #407, résolu le 2026-11-23. Flags tronqués.
Catégorie : Cryptography · Challenge : #407 · Résolu le : 2026-11-23
Énoncé¶
This is the Custom Cyclical Cipher!
Download the ciphertext here.
Download the encoder here.
Enclose the flag in our wrapper for submission. If the flag was "example" you would submit "academy{...}".
Résolution¶
Méthode : cipher cyclique + selfinput cubique.
Deux couches. 1) Inverser convert.py : le chiffrement fait lookup2[(lookup1.index(c) - prev) % 40] ; pour déchiffrer on calcule cur = (prev + lookup2.index(ch)) % 40 puis lookup1[cur]. On obtient un script Python 2 selfinput. 2) Ce script imprime les caractères aux indices cubiques (1, 8, 27, 64...) de lui-même. On applique la même regle au texte.