Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from itertools import *
  2. keystream = [243, 186, 253, 51, 29, 40, 68, 168, 37, 32, 222, 183, 222, 12, 111, 185]
  3. cipher = open('flag.pdf.enc','rb').read()
  4. plain = open('flag.pdf','wb')
  5.  
  6. for i,j in zip( cipher , cycle(keystream) ):
  7. plain.write( chr( int(i.encode('hex'),16) ^ j ) )
  8. #FLAG{15AD69452103C5DF1CF61E9D98893492}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement