Quintec writeups and other thoughts

corCTF 2022

Another year, another successful CTF :) with a rather impressive 36.96 / 37.380 rating on CTFTime. Sadly, behind the scenes, this year was less successful for me specifically - besides the two challenges that ended up in the CTF, I had two harder crypto challenges that did not make it...

Quantum Engine

Let’s take a look at the source code: import socketserver from secrets import flag import signal from qiskit import * import itertools class CircuitException(Exception): pass class Circuit: def __init__(self, inputGates) -> None: self.a = 0 self.b = 0 self.c = 0 self.inputGates = inputGates def append_HGate(self, qbit): qbit = int(qbit)...

corCTF 2021

Here are writeups for my challenges in corCTF 2021: fibinary fibinary was a simple encoding challenge where each character was encoded in “base Fibonacci” - a binary number where each successive place value represented the next Fibonacci number. For example, 110100 would represent 8 + 5 + 0 + 3...

Mr. Radar

We are given the location of a radar and several radar pulse returns of a satellite, and want to determine its orbital parameters. We first trace out the path of the satellite, using Skyfield to do the appropriate calculations. The functions latlon and from_altaz were particularly helpful to be able...

Real Mersenne

Do you believe in games of luck? I hope you make your guesses real or you’ll be floating around. nc crypto.zh3r0.cf 4444 Source Analysis import random from secret import flag from fractions import Fraction def score(a,b): if abs(a-b)<1/2**10: # capping score to 1024 so you dont get extra lucky return...