Skip to content

Instantly share code, notes, and snippets.

@jcchurch
Created November 5, 2011 18:04
Show Gist options
  • Save jcchurch/1341829 to your computer and use it in GitHub Desktop.
Save jcchurch/1341829 to your computer and use it in GitHub Desktop.
Convert the binary in the Phreaknic program to ASCII
#!/usr/bin/env python
message = "010100000110100101100111001000000111100101101111011101010010011101110010011001010010000001100001001000000110010001101001011000110110101100101110"
bytes = []
i = 0
while i < len(message):
bytes.append( message[i:i+8] )
i += 8
print "".join([chr(int(x, 2)) for x in bytes])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment