Skip to content

Instantly share code, notes, and snippets.

@Hodgegoblin
Last active November 6, 2017 17:36
Show Gist options
  • Save Hodgegoblin/3af1f58ff8ffbcc9105f8e486e58d03c to your computer and use it in GitHub Desktop.
Save Hodgegoblin/3af1f58ff8ffbcc9105f8e486e58d03c to your computer and use it in GitHub Desktop.
#!/user/bin/env python
""""
Compressed RTF extractor
Quick script to take an RTF stream (stream.bin) from an OLE2 compound document (.msg) and decompress printing the resulting RTF
""""
from compressed_rtf import compress, decompress
filename = "stream.bin"
with open(filename, 'rb') as f:
content = f.read()
junk = decompress(content)
print junk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment