mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
py scripts
This commit is contained in:
parent
39a20b6226
commit
923d2942c2
4 changed files with 13 additions and 13 deletions
|
@ -684,6 +684,7 @@ endif
|
||||||
ifneq (,$(INSTALLSHARE))
|
ifneq (,$(INSTALLSHARE))
|
||||||
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
||||||
$(Q)$(CP) $(INSTALLSHARE) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
$(Q)$(CP) $(INSTALLSHARE) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
||||||
|
$(Q)$(CP) src/pm3.py $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)/pyscripts
|
||||||
endif
|
endif
|
||||||
@true
|
@true
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#/usr/local/lib/python3/dist-packages/pm3.py
|
../../pm3 -c "script run testembedded.py"
|
||||||
#/usr/lib/python3/dist-packages/pm3.py
|
|
||||||
|
|
||||||
# need access to pm3.py
|
|
||||||
PYTHONPATH=../src ../../pm3 -c "script run testembedded.py"
|
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#/usr/local/lib/python3/dist-packages/pm3.py
|
../../pm3 -c "script run testembedded_grab.py" -i
|
||||||
#/usr/lib/python3/dist-packages/pm3.py
|
|
||||||
|
|
||||||
# need access to pm3.py
|
|
||||||
PYTHONPATH=../src ../../pm3 -c "script run testembedded_grab.py" -i
|
|
||||||
|
|
13
pm3
13
pm3
|
@ -11,6 +11,7 @@ FINDBTRFCOMM=true
|
||||||
FINDBTDIRECT=true
|
FINDBTDIRECT=true
|
||||||
|
|
||||||
PM3PATH=$(dirname "$0")
|
PM3PATH=$(dirname "$0")
|
||||||
|
EVALENV=""
|
||||||
FULLIMAGE="fullimage.elf"
|
FULLIMAGE="fullimage.elf"
|
||||||
BOOTIMAGE="bootrom.elf"
|
BOOTIMAGE="bootrom.elf"
|
||||||
# try pm3 dirs in current repo workdir
|
# try pm3 dirs in current repo workdir
|
||||||
|
@ -23,17 +24,23 @@ if [ -d "$PM3PATH/client/" ]; then
|
||||||
echo >&2 "[!!] In devel workdir but no executable found, did you compile it?"
|
echo >&2 "[!!] In devel workdir but no executable found, did you compile it?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
# Devel mode: point to workdir pm3.py module
|
||||||
|
EVALENV+=" PYTHONPATH=$PM3PATH/client/src"
|
||||||
# try install dir
|
# try install dir
|
||||||
elif [ -x "$PM3PATH/proxmark3" ]; then
|
elif [ -x "$PM3PATH/proxmark3" ]; then
|
||||||
CLIENT="$PM3PATH/proxmark3"
|
CLIENT="$PM3PATH/proxmark3"
|
||||||
|
EVALENV+=" PYTHONPATH=$PM3PATH/../share/proxmark3/pyscripts/"
|
||||||
|
# or /usr/[local/]lib/python3/dist-packages/pm3.py ?
|
||||||
else
|
else
|
||||||
# hope it's installed somehow, still not sure where fw images are...
|
# hope it's installed somehow, still not sure where fw images and pm3.py are...
|
||||||
CLIENT="proxmark3"
|
CLIENT="proxmark3"
|
||||||
fi
|
fi
|
||||||
EVALENV=""
|
|
||||||
# LeakSanitizer suppressions
|
# LeakSanitizer suppressions
|
||||||
if [ -e .lsan_suppressions ]; then
|
if [ -e .lsan_suppressions ]; then
|
||||||
EVALENV="export LSAN_OPTIONS=suppressions=.lsan_suppressions"
|
EVALENV+=" LSAN_OPTIONS=suppressions=.lsan_suppressions"
|
||||||
|
fi
|
||||||
|
if [ "$EVALENV" != "" ]; then
|
||||||
|
EVALENV="export $EVALENV"
|
||||||
fi
|
fi
|
||||||
PM3LIST=()
|
PM3LIST=()
|
||||||
SHOWLIST=false
|
SHOWLIST=false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue