Guest User

Untitled

a guest
Feb 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. from sys import argv
  2.  
  3. magic = 28 # Defined here in case it needs to be changed.
  4.  
  5. with open(argv[1], 'rb') as dwf:
  6. data = bytearray(dwf.read())
  7.  
  8. count = 0
  9.  
  10. for byte in data:
  11. if count < 100:
  12. data[count] = (data[count] ^ count * magic) % 255
  13. count += 1
  14. else:
  15. break
  16.  
  17. output = argv[1][:-3] + 'swf'
  18. with open(output, 'wb') as swf:
  19. swf.write(data)
Add Comment
Please, Sign In to add comment