Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1.  
  2. import sys
  3. # from pprint import pprint
  4.  
  5. lines = [ line.strip()[10:58].split() for line in sys.stdin ]
  6. words = [ chr(int(word, 16)) for line in lines for word in line ]
  7. headers, content = ''.join(words).split('\r\n\r\n')
  8.  
  9. print "Headers:\n\n{}\n\n<Content {} bytes hidden>".format(headers, len(content))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement