mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-26 01:53:28 +08: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))
|
||||
$(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
||||
$(Q)$(CP) $(INSTALLSHARE) $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)
|
||||
$(Q)$(CP) src/pm3.py $(DESTDIR)$(PREFIX)$(PATHSEP)$(INSTALLSHARERELPATH)/pyscripts
|
||||
endif
|
||||
@true
|
||||
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
#/usr/local/lib/python3/dist-packages/pm3.py
|
||||
#/usr/lib/python3/dist-packages/pm3.py
|
||||
|
||||
# need access to pm3.py
|
||||
PYTHONPATH=../src ../../pm3 -c "script run testembedded.py"
|
||||
../../pm3 -c "script run testembedded.py"
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
#/usr/local/lib/python3/dist-packages/pm3.py
|
||||
#/usr/lib/python3/dist-packages/pm3.py
|
||||
|
||||
# need access to pm3.py
|
||||
PYTHONPATH=../src ../../pm3 -c "script run testembedded_grab.py" -i
|
||||
../../pm3 -c "script run testembedded_grab.py" -i
|
||||
|
|
13
pm3
13
pm3
|
@ -11,6 +11,7 @@ FINDBTRFCOMM=true
|
|||
FINDBTDIRECT=true
|
||||
|
||||
PM3PATH=$(dirname "$0")
|
||||
EVALENV=""
|
||||
FULLIMAGE="fullimage.elf"
|
||||
BOOTIMAGE="bootrom.elf"
|
||||
# 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?"
|
||||
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 are...
|
||||
# hope it's installed somehow, still not sure where fw images and pm3.py are...
|
||||
CLIENT="proxmark3"
|
||||
fi
|
||||
EVALENV=""
|
||||
# LeakSanitizer suppressions
|
||||
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
|
||||
PM3LIST=()
|
||||
SHOWLIST=false
|
||||
|
|
Loading…
Reference in a new issue