Skip to content

Instantly share code, notes, and snippets.

@0xBADCA7
Forked from elliptic-shiho/solve.py
Created May 15, 2016 20:26
Show Gist options
  • Save 0xBADCA7/95ea37194a8a8884847a31f92fcfcd27 to your computer and use it in GitHub Desktop.
Save 0xBADCA7/95ea37194a8a8884847a31f92fcfcd27 to your computer and use it in GitHub Desktop.
BCTF 2016 steganography 150: midifan Writeup
from scryptos import *
d = open("out.csv").read().split("\n")
bits = ""
for x in d:
r = x.split(", ")
if len(r) > 4:
if int(r[3]) == 0:
if r[2] == "Note_on_c":
bits += str(int(r[1]) % 2)
print hex(int(bits[::-1], 2), 2)[2:].decode("hex")[::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment