4 # Andrei Costin <zveriu@gmail.com>, 2011
6 # Converts PM3 Mifare Classic MFD binary dump file to emulator EML text file
15 print('Usage:', argv
[0], 'input.mfd output.eml')
18 with
open(argv
[1], "rb") as file_inp
, open(argv
[2], "w") as file_out
:
20 byte_s
= file_inp
.read(READ_BLOCKSIZE
)
23 hex_char_repr
= byte_s
.hex()
24 file_out
.write(hex_char_repr
)
27 if __name__
== '__main__':