mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Added 'proxmark.sh' from joanbono and entry in changelog
This commit is contained in:
parent
8e1e34e66f
commit
4229f7a1de
2 changed files with 46 additions and 29 deletions
20
proxmark3.sh
20
proxmark3.sh
|
@ -10,5 +10,23 @@ function wait4proxmark {
|
|||
echo $PM3
|
||||
}
|
||||
|
||||
function wait4proxmark_macOS {
|
||||
echo >&2 "Waiting for Proxmark to appear..."
|
||||
while true; do
|
||||
PM3=$(ls /dev/pm3-* /dev/cu.usbmodem* 2>/dev/null | head -1)
|
||||
if [[ $PM3 != "" ]]; then
|
||||
#echo >&2 -e "Found proxmark on $(ls /dev/pm3-* /dev/cu.usbmodem* 2>/dev/null | head -1)\n"
|
||||
break
|
||||
fi
|
||||
sleep .1
|
||||
done
|
||||
echo $PM3
|
||||
}
|
||||
|
||||
# start proxmark with first detected interface
|
||||
client/proxmark3 $(wait4proxmark)
|
||||
|
||||
if [[ $(uname | awk '{print toupper($0)}') == "LINUX" ]]; then
|
||||
client/proxmark3 $(wait4proxmark_Linux)
|
||||
elif [[ $(uname | awk '{print toupper($0)}') == "DARWIN" ]]; then
|
||||
client/proxmark3 $(wait4proxmark_macOS)
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue