cr4ck 1t plzzz author:P1L0T An encrypted message ...

Créé le : 25 août 2026

Répondu en utilisant GPT-5.6 Thinking par Chat01

Question

cr4ck 1t plzzz

author:P1L0T An encrypted message intercepted from a historic World War II tactical radio network awaits your decryption skills.The secret lies within the daily settings of the spinning wheels and reflection of the gears used to mask the flag.

flag format:CYBERCOM{}
LCNZRMHGWMBSNXME

Python

python
import importlib.util, sys, os, math, itertools, string, re, json, statistics print(importlib.util.find_spec("wordfreq")) print(importlib.util.find_spec("wordninja"))

Python

python
import string, itertools, math, collections, re alpha=string.ascii_uppercase rotor_wirings={ 'I':"EKMFLGDQVZNTOWYHXUSPAIBRCJ", 'II':"AJDKSIRUXBLHWTMCQGZNPYFVOE", 'III':"BDFHJLCPRTXVZNYEIWGAKMUSQO", 'IV':"ESOVPZJAYQUIRHXLNFTGKDCMWB", 'V':"VZBRGITYUPSDNHLXAWMJQOFECK", } notches={'I':'Q','II':'E','III':'V','IV':'J','V':'Z'} reflectors={'B':"YRUHQSLDPXNGOKMIEBFZCWVJAT",'C':"FVPJIAOYEDRZXWGCTKUQSBNMHL"} def enc(ct, order=('I','II','III'), pos='AAA', rings='AAA', refl='B', plug=None): # order left-to-right slow, middle, fast p=[alpha.index(x) for x in pos] r=[alpha.index(x) for x in rings] maps=[[alpha.index(c) for c in rotor_wirings[o]] for o in order] invs=[] for m in maps: inv=[0]*26 for i,j in enumerate(m): inv[j]=i invs.append(inv) ref=[alpha.index(c) for c in reflectors[refl]] out=[] for ch in ct: # step with double stepping; notch checked at window position mid_at = alpha[p[1]] == notches[order[1]] fast_at = alpha[p[2]] == notches[order[2]] if mid_at: p[0]=(p[0]+1)%26 if mid_at or fast_at: p[1]=(p[1]+1)%26 p[2]=(p[2]+1)%26 x=alpha.index(ch) # right to left for idx in (2,1,0): x=(maps[idx][(x+p[idx]-r[idx])%26]-p[idx]+r[idx])%26 x=ref[x] # left to right inverse for idx in (0,1,2): x=(invs[idx][(x+p[idx]-r[idx])%26]-p[idx]+r[idx])%26 out.append(alpha[x]) return ''.join(out) ct="LCNZRMHGWMBSNXME" for ord in [('I','II','III'),('III','II','I')]: print(ord, enc(ct,ord))

Réflexion

Implemented Enigma decryption and scoring

Worked for 44s

Réponse

Cracked it. 🔓

Enigma settings

  • Rotors: I – II – III
  • Reflector: B
  • Ring settings: AAA
  • Starting positions: AAA
  • Plugboard: none

LCNZRMHGWMBSNXMEPROJECTLEVIATHAN

Flag: CYBERCOM{PROJECTLEVIATHAN}

Partager cette Q&R