Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import argv
- magic = 28 # Defined here in case it needs to be changed.
- with open(argv[1], 'rb') as dwf:
- data = bytearray(dwf.read())
- count = 0
- for byte in data:
- if count < 100:
- data[count] = (data[count] ^ count * magic) % 255
- count += 1
- else:
- break
- output = argv[1][:-3] + 'swf'
- with open(output, 'wb') as swf:
- swf.write(data)
Add Comment
Please, Sign In to add comment