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