mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 12:59:44 -07:00
- Added very basic scripting support to PM3 client-side (proxmark3 application)
- Created several scripts to aid in EML/MFD file conversion - Created script which generates PM3-scripts for emulation based on MFD/EML input files
This commit is contained in:
parent
2115626711
commit
1f947c4b09
6 changed files with 243 additions and 18 deletions
34
client/pm3_eml2mfd.py
Normal file
34
client/pm3_eml2mfd.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
'''
|
||||
# Andrei Costin <zveriu@gmail.com>, 2011
|
||||
# pm3_eml2mfd.py
|
||||
# Converts PM3 Mifare Classic emulator EML text file to MFD binary dump file
|
||||
'''
|
||||
|
||||
import sys
|
||||
import binascii
|
||||
|
||||
def main(argv):
|
||||
argc = len(argv)
|
||||
if argc < 3:
|
||||
print 'Usage:', argv[0], 'input.eml output.mfd'
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
file_inp = open(argv[1], "r")
|
||||
file_out = open(argv[2], "wb")
|
||||
line = file_inp.readline()
|
||||
while line:
|
||||
line = line.rstrip('\n')
|
||||
line = line.rstrip('\r')
|
||||
print line
|
||||
data = binascii.unhexlify(line)
|
||||
file_out.write(data)
|
||||
line = file_inp.readline()
|
||||
|
||||
finally:
|
||||
file_inp.close()
|
||||
file_out.close()
|
||||
|
||||
main(sys.argv)
|
Loading…
Add table
Add a link
Reference in a new issue