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-05-15 15:37:26

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Usb commands of own proxmark protocol

Hi,

I am using Python, serial and usb commands of Proxmark3. I am sending raw data via usb, and i understood the structure of data sent thanks to Wireshark :
- Each command refers to a corresponding code (stored in include/usb_cmd.h) packed into 8 bytes,
- Each 3 arguments are packed into 8 bytes,
- Additional data may come after this frame of 32 bytes (default keys for example).

However, i have a concerning problem. Arguments for usb commands do not seem to be documented, and are hard coded into source code in hex.

Is there somewhere i can find explanations for arguments, is someone made this work on the past, or do I have to go trough the C source code and/or Wireshark output to understand each usb commands ?

Thanks in advance.

Offline

#2 2018-05-15 15:49:21

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

Re: Usb commands of own proxmark protocol

the commands are quite easy to find,  or the needed usb command structure used.

https://github.com/Proxmark/proxmark3/b … /usb_cmd.h

What is used as in/out parameters, can only be found with looking at each implementation. 

However like many before you have come to realise that the client implement so much functionality that making a new client is quite useless given the amount of effort to put into just to get the same functionality as current client.

Offline

#3 2018-05-15 16:05:25

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Re: Usb commands of own proxmark protocol

Thanks you for your answer. The existing client is indeed powerfull, but it cannot be used to create more automated tests, if you do not want to parse log ...

Thanks anyway !

Offline

#4 2018-05-15 16:23:40

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

Re: Usb commands of own proxmark protocol

and that would be one of the reason for the built-in support for lua scripting. To increase the flexibilty to the client.

Offline

#5 2018-05-15 16:36:20

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Re: Usb commands of own proxmark protocol

Yes, I began with existing and my own Lua scripts, but i wanted to see how far i could go.

Offline

#6 2018-12-12 19:45:32

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

Re: Usb commands of own proxmark protocol

And how far did you go?

Offline

#7 2018-12-12 19:54:38

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Re: Usb commands of own proxmark protocol

Well, I decided to use libNFC which was more adapted to what I wanted to do. There is a function in the API which permits to send raw bytes, and receive raw bytes.

I kept Proxmark and usb commands for MiFARE classic cracks.

Offline

#8 2018-12-12 20:04:24

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

Re: Usb commands of own proxmark protocol

...you mean like pm3's raw commands? i.e. hf 14a raw

Offline

#9 2018-12-12 20:08:23

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Re: Usb commands of own proxmark protocol

yes exactly, but libNFC corresponded more to the project and can be generalized on more hardware.

Offline

#10 2018-12-12 20:21:25

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

Re: Usb commands of own proxmark protocol

Interesting,  which project ?

Offline

#11 2018-12-12 20:22:52

GCo
Contributor
Registered: 2018-05-09
Posts: 8

Re: Usb commands of own proxmark protocol

A private one I worked on smile

Offline

Board footer

Powered by FluxBB