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