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 2011-10-23 08:53:58

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

Visual Basic Software problem with libusb and libusbvb

Maybe I posted in the wrong section but, as I ask there:
http://proxmark.org/forum/viewtopic.php?id=1007
I need to know what commands to send over libusb in order to make Proxmark3 answer, I always receive a -22 error form libusb... libusbvb is a conversion library to use the standard libusb;  scan_bus command works but know I need specific Proxmark3 commands and syntax... can anyone can help me with ONLY 1 EXAMPLE so that I can interface Proxmark3 with a Visual Basic software ? This is the library I used:

http://picusb.googlecode.com/files/libusbwin32_vb6.zip

Last edited by asper (2011-10-23 09:12:51)

Offline

#2 2011-10-23 12:53:41

vivat
Contributor
Registered: 2010-10-26
Posts: 332

Re: Visual Basic Software problem with libusb and libusbvb

VB is not very good choice-it is slow and eats huge amounts of memory. There is no standard or API how pm3 communicates with client software. But the client supports very basic(poor) scripting support.

Offline

#3 2011-10-23 18:18:09

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

Re: Visual Basic Software problem with libusb and libusbvb

Yes, you are perfectly right but I only know Visual Basic so I would like to interact with this programming platform so can you explain me only 1 command and correspondant proxmark3 answer in order for me to understand command structure and send it via libusbvb ?

I tryed to send number (0, 1 or 2) or 0000, 0001 ecc. and also written commands (like usb_reset) with no luck...

Offline

#4 2011-10-23 18:50:36

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

You can use the cli command for send command to proxmark3.
You can execute the command from VB and parse the reply.

Offline

#5 2011-10-23 19:02:03

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

Re: Visual Basic Software problem with libusb and libusbvb

Really ???

You mean for example:

cli.exe hf 14a

and I will receive the lsit of 14a commands ??? (I have not pm3 right now to test with)

Last edited by asper (2011-10-23 19:15:25)

Offline

#6 2011-10-23 19:19:45

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

Sorry I tried the cli command but it does not work as I thought. There are some bugs.
The help is only on proxmark.exe, but also a simple "cli hw tune" doesn't work.
Maybe you can parse the output of proxmark.exe and write on it. Is VB or VB.NET?
With VB.Net there are Process.StandardOutput and Process.StandardInput.

Offline

#7 2011-10-23 19:23:22

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

Re: Visual Basic Software problem with libusb and libusbvb

I mainly use VB but can you please make an example either in VB and VB.NET ?

Anyway the cli command I am trying to use right now without PM3 seems to accept commands... are you sure that cli hw tune does not work ?

Last edited by asper (2011-10-23 19:29:59)

Offline

#8 2011-10-23 19:32:54

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

Sorry but my knowledges in VB and VB.NET are few.
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardinput%28v=VS.80%29.aspx
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.standardoutput%28v=VS.80%29.aspx

I see the code of cli. Definitely not for you, make a infinite loop on OpenProxmark and execute 2 command. I trying to patch it.

Offline

#9 2011-10-23 19:38:16

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

Re: Visual Basic Software problem with libusb and libusbvb

I thank you really really much man !

If I will be able to send commands to pm3 I will sahre any GUI I am going to build with VB.

Offline

#10 2011-10-23 19:45:14

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

Re: Visual Basic Software problem with libusb and libusbvb

But is it possible that no one has ever built a GUI for proxmark3 ?

Offline

#11 2011-10-23 19:45:30

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

You can use also the scripting. Make a file with commands to send and execute proxmark3.exe with file.

Example file test.scr

hf 14a list
quit

proxmark3 test.scr

using 'scripting' commands file test.scr
....
recorded activity:
 ETU     :rssi: who bytes
---------+----+----+-----------
....

Thank you for your future GUI. I hope is useful for windows users. I use linux.

Offline

#12 2011-10-23 19:50:25

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

Re: Visual Basic Software problem with libusb and libusbvb

I think a working "cli.exe" will be really better of scripting also because all scripts run under the proxmark3.exe... any chance to have a working cli.exe with the commands PM3 can understand ?

Offline

#13 2011-10-23 19:53:37

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

Proxmark3 missing for many things, the GUI is not in the roadmap.
Many people write proxmark3 is a good reader. Yes but only for Mifare and some tag in 125KHz. I have a tag ISO14443B and doesn't work, the SRIX4K in the past work, now with last SVN doen't work, maybe is my hardware, but with Mifare work.

Offline

#14 2011-10-23 19:56:26

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

asper wrote:

I think a working "cli.exe" will be really better of scripting also because all scripts run under the proxmark3.exe... any chance to have a working cli.exe with the commands PM3 can understand ?

I'm working on it. I hope there are only little changes todo otherwise I need to stop.

Offline

#15 2011-10-23 19:57:25

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

Re: Visual Basic Software problem with libusb and libusbvb

For SRIX4K we have full datasheet (also nda commands), it only needs someone able to program it in PM3; also Philips PCF7931 uses a 125kHz frequency, has full nda datasheet (use google) but is not implemented. A GUI will be of great use expecially to dose who are not good at "command line"; I know that PM3 is something "elitary" but I would like to make it better... so if someone can provide a way to communicate (using cli.exe, showing me the protocol or other ways) I will be happy to make a GUI.

Thank you for your effort man for cli.exe ! I do not need the full commands set (es no "help" commands needed), only commands that can be executed ONLY by PM3 (es. snooping ect.); if you have news please post them there ! smile

THANK YOU AGAIN !

Last edited by asper (2011-10-23 20:01:08)

Offline

#16 2011-10-23 20:06:20

jonor
Contributor
Registered: 2009-09-17
Posts: 97

Re: Visual Basic Software problem with libusb and libusbvb

asper wrote:

For SRIX4K we have full datasheet (also nda commands), it only needs someone able to program it in PM3

In the past I developed a simple patch for read SRIX4K with PM3. It was easy, PM3 read the SRI512, so I changed the last sector to read the big memory of SRIX4K. nda commands are Authentications?

Offline

#17 2011-10-23 20:10:17

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

Re: Visual Basic Software problem with libusb and libusbvb

It is the Authenticate Command, 0Ah, details of which SHOULD not be released to the public but they are.

Last edited by asper (2011-10-23 20:11:51)

Offline

Board footer

Powered by FluxBB