Quintec writeups and other thoughts

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...

Wiesner's Quantum Bank

We’re Wiesner’s Quantum Bank, the biggest name in quantum money storage. Check out our new remote service: nc crypto.utctf.live 1234 First Steps No source provided :( Let’s connect through netcat then: <== Welcome to Wiesner's Quantum Bank! ==> Due to totally legitimate reasons, we only have one Schroedinger Buck (SB)...