Last active
November 6, 2017 17:36
-
-
Save Hodgegoblin/3af1f58ff8ffbcc9105f8e486e58d03c to your computer and use it in GitHub Desktop.
This file contains 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
#!/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