mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
move client scripts to tools
This commit is contained in:
parent
3245260c00
commit
f6a4f9cbe3
6 changed files with 0 additions and 0 deletions
31
tools/pm3_mfd2eml.py
Executable file
31
tools/pm3_mfd2eml.py
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
'''
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# pm3_eml2mfd.py
|
||||
# Converts PM3 Mifare Classic MFD binary dump file to emulator EML text file
|
||||
'''
|
||||
|
||||
from __future__ import with_statement
|
||||
import sys
|
||||
import binascii
|
||||
|
||||
READ_BLOCKSIZE = 16
|
||||
|
||||
def main(argv):
|
||||
argc = len(argv)
|
||||
if argc < 3:
|
||||
print 'Usage:', argv[0], 'input.mfd output.eml'
|
||||
sys.exit(1)
|
||||
|
||||
with file(argv[1], "rb") as file_inp, file(argv[2], "w") as file_out:
|
||||
while True:
|
||||
byte_s = file_inp.read(READ_BLOCKSIZE)
|
||||
if not byte_s:
|
||||
break
|
||||
hex_char_repr = binascii.hexlify(byte_s)
|
||||
file_out.write(hex_char_repr)
|
||||
file_out.write("\n")
|
||||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
Loading…
Add table
Add a link
Reference in a new issue