4 # Andrei Costin <zveriu@gmail.com>, 2011
6 # Converts PM3 Mifare Classic emulator EML text file to MFD binary dump file
16 print('Usage:', argv
[0], 'input.eml output.mfd')
19 with
open(argv
[1], "r") as file_inp
, open(argv
[2], "wb") as file_out
:
21 line
= line
.rstrip('\n').rstrip('\r')
23 data
= binascii
.unhexlify(line
)
26 if __name__
== '__main__':