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 2009-06-04 03:44:27

proxcat
Contributor
Registered: 2008-11-28
Posts: 62
Website

Proxmark Python API

In case anyone else is interested, I'm working on a Python Proxmark API. The API is already partially functional but needs more testing. Some commands have not yet been ported.

A brief example is shown below:

python-proxmark# ./tune.py
125kHz v=123mV z=1273 ohms
134kHz v=0mV z=1273 ohms
13.56MHz v=99mV z=90 ohms

-[ tune.py ]-

pm3 = Proxmark()
antennas = pm3.tune()
for ant in antennas:
  print ant

Offline

#2 2009-12-05 15:31:54

proxcat
Contributor
Registered: 2008-11-28
Posts: 62
Website

Re: Proxmark Python API

For those interested parties, you can download my Python Proxmark API here: http://proxmark3.com/dl/pyprox.tgz.

Offline

#3 2011-08-31 02:02:05

toddxu
Member
Registered: 2011-08-11
Posts: 2

Re: Proxmark Python API

hi proxcat
I run #./proxmark.py in ubuntu, get this
Traceback (most recent call last):
  File "./proxmark.py", line 5, in <module>
    import usb
ImportError: No module named usb
how can i get module usb? do i need to install pyusb?

Offline

#4 2011-08-31 03:18:48

toddxu
Member
Registered: 2011-08-11
Posts: 2

Re: Proxmark Python API

proxcat wrote:

For those interested parties, you can download my Python Proxmark API here: http://proxmark3.com/dl/pyprox.tgz.

i solved last problem but got this
---------------------------------------------------------------------------------
pyprox$ sudo ./tune.py
Traceback (most recent call last):
  File "./tune.py", line 7, in <module>
    pm3 = Proxmark()
  File "/home/todd/de/proxmark3/pyprox/proxmark.py", line 61, in __init__
    self.dev.setConfiguration(conf)
  File "/usr/local/lib/python2.6/dist-packages/usb/legacy.py", line 252, in setConfiguration
    self.dev.set_configuration(configuration)
  File "/usr/local/lib/python2.6/dist-packages/usb/core.py", line 530, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/local/lib/python2.6/dist-packages/usb/core.py", line 92, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
AttributeError: 'NoneType' object has no attribute 'bConfigurationValue'
-----------------------------------------------------------------------------------
why can not find device? do i need install driver?

Offline

#5 2011-08-31 15:54:15

proxcat
Contributor
Registered: 2008-11-28
Posts: 62
Website

Re: Proxmark Python API

That code was written against firmware version 20090713. The code has not been maintained. It also relies on a specific version of libusb and python-usb.

On Ubuntu, you will need:

python-usb (0.4.1-4ubuntu1)
libusb-0.1-4 (2:0.1.12-13)
libusb-dev (2:0.1.12-13)

Hope this helps.

Offline

Board footer

Powered by FluxBB