Skip to content

Instantly share code, notes, and snippets.

@RDxR10
Created October 2, 2020 11:30
Show Gist options
  • Save RDxR10/38c63680727a2097438910559411bb39 to your computer and use it in GitHub Desktop.
Save RDxR10/38c63680727a2097438910559411bb39 to your computer and use it in GitHub Desktop.
Solution to Misc/Amidst Bits and Bases from darkCTF 2020
decoded_list=[]
for (i,j) in zip(bases,states):
#print(i,j)
if i=='Z':
if j=='|0>':
decoded_list.append('0')
if j=='|1>':
decoded_list.append('1')
if i=='X':
if j=='|+>':
decoded_list.append('0')
if j=='|->':
decoded_list.append('1')
print(decoded_list)
d_l = ''.join([str(n) for n in decoded_list])
print(d_l)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment