25 lines
No EOL
1.1 KiB
Markdown
25 lines
No EOL
1.1 KiB
Markdown
# Seven is Seven:
|
|
## Description:
|
|
As-tu déjà vu un ancien <a href="https://cdn.peerat.dev/pacXcei0423/7segments.png">afficheur 7 segments</a> ?
|
|
|
|
Tu vas devoir l'étudier de près pour comprendre ces <a href="https://cdn.peerat.dev/pacXcei0423/seven">infos</a>.
|
|
## Solution:
|
|
L'indice (style hover): Encoding could be made multiple time, why not seven
|
|
|
|
On arrive face à plusieurs dispositions de segment dans un fichier:
|
|
J'ai donc télécharger le fichier et écrit un script en python pour obtenir un résultat "compréhensible" :
|
|
|
|
```python
|
|
seven = {'abcdef':0, 'bc':1, 'abdeg':2, 'abcdg':3,'bcfg':4, 'acdfg':5, 'acdefg':6, 'abc':7,'abcdefg':8, 'abcdfg':9}
|
|
rep = ''
|
|
with open('ui.txt') as f:
|
|
for i in f.read().split(' '):
|
|
rep += str(seven[i])
|
|
|
|
```
|
|
On obtient une très longue suite de chiffre j'ai donc utilisé cyberchef
|
|
et essayé la conversion from hex 7 fois comme l'indice nous l'indiquait:
|
|
<img src="https://cdn.discordapp.com/attachments/919873849015828510/1102188548356051035/image.png">
|
|
|
|
On obtient un format qui ressemble à un flag: il suffit de faire une rotation césar de +7
|
|
Et on obtient le flag : pacBcei{53V3N 15 53V3N 50rrY} |