- Category: Web
- Impact: Medium
- Solves: 14
In addition to the Advent of Cyber 2023 room
, we have an annex Side Quest task at our disposal.
Four rooms need to be completed to finish the Christmas
side quests challenge:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""<?php | |
function source() { // require("key.php"); | |
echo "<pre>"; | |
highlight_string(file_get_contents(__FILE__)); | |
echo "</pre>"; | |
} | |
function quit() { | |
// source(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import Aer, ClassicalRegister, QuantumCircuit, QuantumRegister, execute | |
from qiskit.tools.monitor import job_monitor | |
from random import choice, randint # from qiskit.circuit.library import U3Gate | |
chunk_size = 16 | |
expected_key_length = 10 | |
delta = 2 * chunk_size | |
roundtrips = (4 * expected_key_length + delta) // chunk_size | |
alice_qubits = QuantumRegister(chunk_size, name="q") | |
alice_bases = ClassicalRegister(chunk_size, name="b") |