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 2017-06-02 12:10:27

redbris
Contributor
Registered: 2017-05-27
Posts: 30

[Solved] Python - Windows - pm3_mfd2eml.py

Howdy All..

Well I am slowly getting there, thanks to everyone for previous helps, now the next question, while not exactly a PM3 question, not exactly a Windows Question, And Not exactly a Python Question.

Problem is : I've managed after much reading and lots of questions, to get the keys out of an Mifare classic card that didnt respond to any of the default keys. I've managed to get the information extracted out into the dump file, now when I run it from a DOS prompt (Windows 7, Python is latest from python.org 64 bit installation) I get the following

>python pm3_mfd2eml.py dumpdata.bin test.eml
  File "pm3_mfd2eml.py", line 18
    print 'Usage:', argv[0], 'input.mfd output.eml'
                 ^
SyntaxError: Missing parentheses in call to 'print' 

also

>python pm3_mfd2eml.py 'dumpdata.bin test.eml'
  File "pm3_mfd2eml.py", line 18
    print 'Usage:', argv[0], 'input.mfd output.eml'
                 ^
SyntaxError: Missing parentheses in call to 'print' 

You dont need to give me the answer smile Just any thoughts on reading... The python installation had inserted itself into path% so running 'python' from anywhere gets me into a CLI... I just dont get what its doing, I am thinking its a formatting issue, but I have presented it the way I thought it should be, but I am very very sure that I am missing something here..

nb. This is where you all say, dont do that use the GUI or something similar smile

Last edited by redbris (2017-06-02 12:55:52)

Offline

#2 2017-06-02 12:30:33

redbris
Contributor
Registered: 2017-05-27
Posts: 30

Re: [Solved] Python - Windows - pm3_mfd2eml.py

Install Python 2.x Stream... and it works... The Secret was with the error wink

Offline

#3 2017-06-02 13:18:21

iceman
Administrator
Registered: 2013-04-25
Posts: 9,536
Website

Re: [Solved] Python - Windows - pm3_mfd2eml.py

you don't need to run python..
We have the lua scripts now instead.   

try:

script list
script run dumptoemul -h

Offline

#4 2017-06-02 16:25:10

ntk
Contributor
Registered: 2015-05-24
Posts: 701

Re: [Solved] Python - Windows - pm3_mfd2eml.py

there is a slight changing in format in python later then 2.7, many scripts won't run any more in python 3.0. V3.0 is stricter in format. In doubt just test script on python 2.x

Offline

#5 2017-06-05 03:04:35

redbris
Contributor
Registered: 2017-05-27
Posts: 30

Re: [Solved] Python - Windows - pm3_mfd2eml.py

iceman wrote:

you don't need to run python..
We have the lua scripts now instead.   

try:

script list
script run dumptoemul -h

I was going to ask about this, I've seen it mentioned a few times, but couldnt find a write up (well yet anyway!)

Offline

#6 2017-06-05 08:29:43

iceman
Administrator
Registered: 2013-04-25
Posts: 9,536
Website

Re: [Solved] Python - Windows - pm3_mfd2eml.py

Try reading the helptext, it usually explains it well.

Offline

Board footer

Powered by FluxBB