Proxmark3 community

Research, development and trades concerning the powerful Proxmark3 device.

Remember; sharing is caring. Bring something back to the community.


"Learn the tools of the trade the hard way." +Fravia

You are not logged in.

Announcement

Time changes and with it the technology
Proxmark3 @ discord

Users of this forum, please be aware that information stored on this site is not private.

#1 2018-09-01 03:07:59

Elsin10
Contributor
Registered: 2018-02-27
Posts: 41

Help using Python script

I know that there are lua scripts but there isn't a command that do this: pm3_eml2mfd.py. I need the dump file to be MFD
So how do i run that script ?

I've installed Python but i don't know how to use it.

Can someone help me ?

Thanks

Offline

#2 2018-09-01 16:17:19

app_o1
Contributor
Registered: 2013-06-22
Posts: 247

Re: Help using Python script

What does the script does? Read the code...

Offline

#3 2018-09-07 04:46:22

Elsin10
Contributor
Registered: 2018-02-27
Posts: 41

Re: Help using Python script

app_o1 wrote:

What does the script does? Read the code...

the script does this

#!/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
'''

from __future__ import with_statement
import sys
import binascii

def main(argv):
    argc = len(argv)
    if argc < 3:
        print 'Usage:', argv[0], 'input.eml output.mfd'
        sys.exit(1)
    
    with file(argv[1], "r") as file_inp, file(argv[2], "wb") as file_out:
        for line in file_inp:
            line = line.rstrip('\n').rstrip('\r')
            print line
            data = binascii.unhexlify(line)
            file_out.write(data)

if __name__ == '__main__':
    main(sys.argv)

I don't know how to program in python or lua. I need help to use the script with the python cmd shell

Offline

#4 2018-09-07 12:34:07

app_o1
Contributor
Registered: 2013-06-22
Posts: 247

Re: Help using Python script

Elsin10 wrote:

I don't know how to program in python or lua. I need help to use the script with the python cmd shell

Do you see your python version when you do:

python

Then just do:

python pm3_eml2mfd.py

Keep your eml file in the same folder as the python script and run it.

Offline

#5 2018-09-10 02:31:00

Elsin10
Contributor
Registered: 2018-02-27
Posts: 41

Re: Help using Python script

app_o1 wrote:
Elsin10 wrote:

I don't know how to program in python or lua. I need help to use the script with the python cmd shell

Do you see your python version when you do:

python

Then just do:

python pm3_eml2mfd.py

Keep your eml file in the same folder as the python script and run it.

Thank you. I will give it a try

Offline

Board footer

Powered by FluxBB