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 2015-07-24 20:50:10

Stanger
Contributor
Registered: 2015-07-22
Posts: 21

Couldn't open the scripts-directory

I want to clone a mifare classic card with my phone. I first used the dump command in the hf mf sector but the keys weren't dumped. I decide to give "Mifare Classic Tool" a try.(Really a great app and when I got it dumping a non-blank card I will definitely donate!!) The reading went well but when I want it to dump the data it tells that in every sector block 0 and 3 are read-only. So I tried to factory format the card first with the app and again it told me the same parts are read-only. I searched for a format script within the proxmark with the script list command but I only gain a debug that tells me:
Couldn't open the scripts-directory. I run on linux and downloaded the software straight from github.

I look forward to the comments

Thank you

Offline

#2 2015-07-24 21:03:29

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

Re: Couldn't open the scripts-directory

you need to run the proxmark3.exe inside the client folder.

Offline

#3 2015-07-24 22:07:23

Stanger
Contributor
Registered: 2015-07-22
Posts: 21

Re: Couldn't open the scripts-directory

iceman wrote:

you need to run the proxmark3.exe inside the client folder.

I'm amazed thanks!! What is the difference between running ./client/proxmark3 and moving into the map and then running it btw?

It's kinda weird that the android app still says that the blocks are read-only after formatting it. I have the working keys for it... I thought only the manufacture block is read-only.

Offline

#4 2015-07-24 22:14:47

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

Re: Couldn't open the scripts-directory

since the pathing for the lualibs are is relative to the clientfolder,  same goes for other commads like load/save. They all are based from the client folder. 

The read-only could come from the accessbits in the sectortrailer. You'll maybe need key B? or maybe its perma-locked.

Offline

#5 2015-07-24 22:57:23

Stanger
Contributor
Registered: 2015-07-22
Posts: 21

Re: Couldn't open the scripts-directory

Nice program you made;) I just ran it and walked through the code searching for a keyfile implementation but lucky for me all the keys were default. The proxmark gave some write write errors so I am afraid its perma-locked but I don't know how I did this. Here is what I did:

Made a dump of a mifare classic card
Wrote the dump on a blank card(acces bits were also written)
Format the just written card

It won't format the trailer sectors and some others. So if it's caused by the accesbits how do I change them?

Offline

#6 2015-07-24 23:00:58

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

Re: Couldn't open the scripts-directory

if its not a chinese magic tag, you might be in some trouble.

You will have to examine all sectortrailers and see which rights has been set.
Its easy to make a tag unwritable if you don't know what you are doing.


And, no, I didn't make this program.  There is many many more ppl who's deserves that gratitude than me.

Offline

#7 2015-07-24 23:31:01

Stanger
Contributor
Registered: 2015-07-22
Posts: 21

Re: Couldn't open the scripts-directory

No chinese so this is the first one I broke:( I locked up the trailer and the first block. Is it still possible to increase or decrease the data of the locked first block?


Before I lock my next card, do you know what this mean:

Remark:
With each memory access the internal logic verifies the format of the access conditions. If it detects a format violation the whole sector is irreversibly blocked.

What is meant with format violation?

Offline

#8 2015-07-24 23:40:13

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

Re: Couldn't open the scripts-directory

I would make a educated guess and say that if you write wrong bytes (which is possible) you will run a high chance of blocking that sector.   There is a Access Conditions Calculator software ,  linked somewhere in this forum which will you help.
http://www.proxmark.org/forum/viewtopic.php?id=1408

Offline

#9 2015-07-24 23:53:21

Stanger
Contributor
Registered: 2015-07-22
Posts: 21

Re: Couldn't open the scripts-directory

I will check it tomorrow, thanks for the help!

Offline

Board footer

Powered by FluxBB