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 2013-09-06 12:16:10

buzzy
Member
Registered: 2013-09-06
Posts: 9

New patch for connection with QT for GUI [request]

Hello,
I'm new here, but i'm using proxmark3 for a while now.
I've created a GUI for a Mifare interface in Qt inserting the source code from your git. Problem is when you will update the source, then i'll need to update my GUI, too, and so on.
So my request would be to be able start proxmark software in some kind of different mode without any interface but with communication with e.g. Qt program for a front end. That communication could be done via some file descriptor, etc.
What do you think about that?
Thanks.

Offline

#2 2013-09-06 22:45:25

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

You'd have to elaborate a bit more... You're talking about implementing some kind of unix-like file descriptor, like a socket, where pm3-software would listen for commands instead of from the commandline? That sounds a lot like building a RPC-interface. I don't mind if anybody would do it (except that it would have to be turned off by default, since there are security issues around that), but I doubt anyone else is going to volunteer unless you do it yourself...

Offline

#3 2013-09-10 12:07:32

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

Ok, let's say I volunteer. Will this patch be included into every new official version?

Offline

#4 2013-09-10 12:26:51

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

If you write a patch, and it looks good, I don't see why not. But before you start coding this, it would be good if you elaborated a bit more so we get a clearer picture of how this is going to work.

Offline

#5 2013-09-13 09:20:47

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

The idea is to send and receive the input and ouput through the file descriptor.  So basically we're gonna use pipes and redirect your application std output and input to our GUI. I'm thinking about some kinda mode in your program, that you can switch on by parameter when starting it. Otherwise, by default, your program will run in standart mode with the input and ouput going through the terminal.

Offline

#6 2013-09-13 09:24:00

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

Oh.
I thought you wanted to add a RPC-interface, or something like that. Just hijacking stdout, stderr and stdin shouldn't be an issue. But why not just use *nix pipes - why do you even need a patch?

Offline

#7 2013-09-13 10:02:03

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

I'm searching for the best way to get and send information to your program. So i though if i need an extra patch in you program, will it be accepted. Standard pipes may not be enough.

Offline

#8 2013-09-13 10:13:28

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

I can only speak for myself, but I see no problem with what you're proposing. If a patch comes along, I can check it and commit it if I still don't see any problems with it. I can't make any more guarantees than that...

If the patch means modifying each and every time the pm3 writes to stdout, however, it means that in order to review the patch I would need to spend hours, which I wont.
So, make a small enough patch, which works both in linux and windows, is 'clean' => it will be included. Ok ?

Offline

#9 2013-09-13 10:24:20

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

Deal.

Offline

#10 2013-10-07 11:25:32

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

Hey,
Here's the patch i'd like you to submit. It's small (1 variable and 2 ifs), so I think it won't be a problem for you. Patch just flushes the output after every PrintAndLog function, that's all.
I've uploaded moded files here:

proxmark3buzzy.tar.gz
http://www1.zippyshare.com/v/93966483/file.html

Thank you.

Offline

#11 2013-10-08 19:56:55

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

committed as r808

Offline

#12 2013-10-11 12:28:25

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

Thank you.

Also you can check that GUI I was talking about. We needed mifare part only, so it's pretty simple. Git:
https://github.com/ktu-tef-vkc/proxmark3-GUI.git

We also think that it could be committed to original proxmark release. Of course, if that's acceptable.

Offline

#13 2013-10-11 13:33:19

holiman
Contributor
Registered: 2013-05-03
Posts: 566

Re: New patch for connection with QT for GUI [request]

Cool!
How about uploading some screenshots?

Offline

#14 2013-10-11 14:02:41

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

I don't have much screens at the moment, but I think you can form your first impression:
ztrz.png

Offline

#15 2013-10-11 17:30:34

asper
Contributor
Registered: 2008-08-24
Posts: 1,409

Re: New patch for connection with QT for GUI [request]

Is this a linux gui? If so why not include windows gui settings.xml ? It will be cross-compatible !

Offline

#16 2013-10-13 14:59:28

buzzy
Member
Registered: 2013-09-06
Posts: 9

Re: New patch for connection with QT for GUI [request]

If that's possible to do, then it will be updated.

Offline

Board footer

Powered by FluxBB