Get Python support of experimental_client_with_swig working again

This commit is contained in:
Philippe Teuwen 2023-11-13 10:10:44 +01:00
parent 97f2770982
commit e0be057f62
7 changed files with 4 additions and 8 deletions

View file

@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
## [unreleased][unreleased]
- Fixed Python support of `experimental_client_with_swig` (@doegox)
- Use proxmark3 as a generic smartcard reader with other software with `smart relay` (@gm3197)
- Added `tools\mfkeys\staticnested` - program to recover static nested keys (@iceman1001)
- Added `pm3_gen_dictionary.py` - python script to extract and save all keys from MFC dump files. (@iceman1001)

View file

@ -837,7 +837,6 @@ endif
ifneq (,$(INSTALLSHARE))
$(Q)$(INSTALLSUDO) $(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
$(Q)$(INSTALLSUDO) $(CP) $(INSTALLSHARE) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
$(Q)$(INSTALLSUDO) $(CP) src/pm3.py $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)/pyscripts
endif
@true

View file

@ -8,4 +8,4 @@
#/usr/lib/python3/dist-packages/pm3.py
# need access to pm3.py
PYTHONPATH=../../src ./test.py
PYTHONPATH=../../pyscripts ./test.py

View file

@ -1,3 +1,3 @@
#!/bin/bash
PYTHONPATH=../../src ipython3 -i ./test_grab.py
PYTHONPATH=../../pyscripts ipython3 -i ./test_grab.py

View file

@ -1,3 +1,3 @@
#!/bin/bash
PYTHONPATH=../../src ipython3 -i ./test.py
PYTHONPATH=../../pyscripts ipython3 -i ./test.py

4
pm3
View file

@ -27,13 +27,9 @@ if [ ! "$1" == "--list" ]; then
echo >&2 "[!!] In devel workdir but no executable found, did you compile it?"
exit 1
fi
# Devel mode: point to workdir pm3.py module
EVALENV+=" PYTHONPATH=$PM3PATH/client/src"
# try install dir
elif [ -x "$PM3PATH/proxmark3" ]; then
CLIENT="$PM3PATH/proxmark3"
EVALENV+=" PYTHONPATH=$PM3PATH/../share/proxmark3/pyscripts/"
# or /usr/[local/]lib/python3/dist-packages/pm3.py ?
else
# hope it's installed somehow, still not sure where fw images and pm3.py are...
CLIENT="proxmark3"