Last Hope

Writeup for Last Hope (AI) - HackTheBox Cyber Apocalypse - Intergalactic Chase CTF (2023) 💜

Description

The quantum data came back and analyzed. DISASTER! Our best scientists all agree: Unfortunately our species and our whole culture are about to be eliminated. Due to abnormal behavior of the black hole's singularity our planet is about to get swallowed. Project "ONESHOT" is our last hope...

Solution

Asked ChatGPT to write me a script to run the quantum_artifact.qasm file (Quantum Assembly).

from qiskit import QuantumCircuit, execute, Aer

# load the quantum circuit from the file
circuit = QuantumCircuit.from_qasm_file('quantum_artifact.qasm')

# execute the circuit on the local simulator
backend = Aer.get_backend('qasm_simulator')
result = execute(circuit, backend).result()

# print the measurement counts
counts = result.get_counts(circuit)
print(counts)
{
    "01001000010101000100001001111011011000010101111101100111011011000011000101101101011100000111001100110011010111110011000001100110010111110110100000110000011100000011001101111101": 1024
}

Convert from binary to ASCII gets us the flag!

Flag: HTB{a_gl1mps3_0f_h0p3}.

Last updated