Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- # from pprint import pprint
- lines = [ line.strip()[10:58].split() for line in sys.stdin ]
- words = [ chr(int(word, 16)) for line in lines for word in line ]
- headers, content = ''.join(words).split('\r\n\r\n')
- print "Headers:\n\n{}\n\n<Content {} bytes hidden>".format(headers, len(content))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement