-
-
Save 0xBADCA7/95ea37194a8a8884847a31f92fcfcd27 to your computer and use it in GitHub Desktop.
BCTF 2016 steganography 150: midifan Writeup
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 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