TVX CTF 2026Reverse Engineering
Summer Is Over
A tiny .NET executable decodes its flag from a 26-byte blob and compares it with the user's input.
- Competition
TVX CTF 2026
- Category
- Reverse EngineeringEasy · estimated
- Source status
- Locally verified · challenge binary accepted
- Document
- PDF edition4 min read
Brief
The challenge
- Competition
- TVX CTF 2026
- Category
- Reverse Engineering
- Difficulty
- Easy — estimated, not an official rating
- Points
- 100
- Solves
- 122 on the challenge card when captured
- Challenge author
- NotSaad
- Verification
- Locally verified: the challenge binary printed “accepted” (recorded in source)
Difficulty: Easy (estimated). TVX CTF 2026 did not publish difficulty ratings; the challenge cards show only points and solve counts. A small .NET program whose decoder is fully visible after decompilation. Reimplementing a few byte operations recovers the flag. The card showed 122 solves when captured, the most in this set.
01
Overview
When something fades away, something else comes to light.

A tiny .NET executable decodes its flag from a 26-byte blob and compares it with the user's input.
Solution path in brief
SummerIsOver.exe is a tiny .NET assembly. It decodes the flag from a 26-byte blob at runtime and compares it with your input. Decompiling it with ILSpy shows the whole decoder, and running that decoder in Python prints the flag:
blob[permuted index] → XOR → XOR schedule → subtract → rotate right → XOR → reverse every 4-byte block → flag02
Initial investigation
Triage confirmed it was a .NET assembly, which decides the tooling.
Triage
The file is only 4,608 bytes. It's a 32-bit PE with a CLR header (data directory 14 is set), so it's a .NET assembly and a decompiler gives back near-original C#:
ilspycmd SummerIsOver.exeThe full output is saved in Program.decompiled.cs.
03
Tools used
ILSpy /
ilspycmdPython 3 (
solve.py)
04
Step-by-step process
Step 1: The program
Main builds the flag with Reveal(), reads a line, and prints accepted or rejected:
string text = Reveal();Console.Write("flag> ");string text2 = Console.ReadLine() ?? string.Empty;Console.WriteLine((text2 == text) ? "accepted" : "rejected");The flag never appears as a string literal. It's built from two static byte arrays, a 26-byte blob and an 8-byte schedule.
Step 2: The decoder
For each output position i, Reveal() does the following:
Reads
blob[(i * 5 + 1) % 26]. Because 5 and 26 are coprime, this is a permutation of the blob.XORs it with
(51 + 11*i) & 0xFF.XORs it with
schedule[i % 8].Subtracts
(3*i*i + 25) & 0xFF.Rotates the byte right by
i % 5 + 1bits.XORs it with
(33 + 7*i) & 0xFF.
A second pass then reverses the bytes inside each 4-byte block. The last block has only 2 bytes, so only those 2 get swapped.
Every step is deterministic and needs no input, so the decoder doesn't have to be inverted. It only has to be run.
05
Commands and code
Solve script
solve.py reimplements Reveal(), masking with & 0xFF wherever C# truncates to byte:
blob = [233, 147, 146, 170, 148, 228, 241, 180, 70, 143, 4, 16, 157, 84, 163, 89, 78, 57, 138, 62, 119, 57, 99, 250, 2, 251]schedule = [109, 18, 169, 64, 243, 39, 136, 91]def ror(v, c): return ((v >> c) | (v << (8 - c))) & 0xFFn = len(blob)arr = []for i in range(n): b = blob[(i * 5 + 1) % n] b ^= (51 + 11 * i) & 0xFF b ^= schedule[i % len(schedule)] b = (b - ((i * i * 3 + 25) & 0xFF)) & 0xFF b = ror(b, i % 5 + 1) arr.append(b ^ ((33 + 7 * i) & 0xFF))out = [0] * nfor i in range(n): base = i // 4 * 4 size = min(4, n - base) out[base + size - 1 - (i - base)] = arr[i]print(bytes(out).decode())> python solve.pyTVX{4nd_S0_7h3_5un_Sh1n35}Full source: solve.py
blob = [233, 147, 146, 170, 148, 228, 241, 180, 70, 143, 4, 16, 157, 84, 163, 89, 78, 57, 138, 62, 119, 57, 99, 250, 2, 251]schedule = [109, 18, 169, 64, 243, 39, 136, 91]def ror(v, c): return ((v >> c) | (v << (8 - c))) & 0xFFn = len(blob)arr = []for i in range(n): b = blob[(i * 5 + 1) % n] b ^= (51 + 11 * i) & 0xFF b ^= schedule[i % len(schedule)] b = (b - ((i * i * 3 + 25) & 0xFF)) & 0xFF b = ror(b, i % 5 + 1) arr.append(b ^ ((33 + 7 * i) & 0xFF))out = [0] * nfor i in range(n): base = i // 4 * 4 size = min(4, n - base) out[base + size - 1 - (i - base)] = arr[i]print(bytes(out).decode())06
Technical explanation
The decoder applies a permuted read, two XOR stages, a subtraction, a rotate-right and a final XOR, then reverses each 4-byte block. Every operation is invertible and none depends on input, so copying the decoder into Python is enough. There is nothing to invert.
Key lessons
Check for a CLR header first. A .NET binary decompiles to readable C#, so there's no need to read x86.
When a flag is decoded at runtime without using your input, don't invert the decoder. Run it, either by reimplementing it or by breaking on the comparison.
In Python, remember to mask with
& 0xFFwherever C# casts tobyte.
07
Flag
Flag
TVX{4nd_S0_7h3_5un_Sh1n35}
Locally verified · challenge binary accepted
08
Verification status
Status: Locally verified: the challenge binary printed “accepted” (recorded in source).
The source records the challenge binary printing accepted for the decoded flag. Platform acceptance is not documented.
Evidence recorded in the source
The binary accepts the decoded string:
> 'TVX{4nd_S0_7h3_5un_Sh1n35}' | .\SummerIsOver.exeflag> acceptedSource evidence in the archive: WRITEUP.md, Program.decompiled.cs, solve.py, images/00_challenge.png.
09
Conclusion
A warm-up reversing challenge: decompile, copy the decoder, run it.
Prepared by Adam Omar Saleh from the archived solve notes in summer_is_over/. Commands, code, output and screenshots are reproduced from the source; no results were added. Difficulty is an estimate.