RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.81k stars 1.01k forks source link

[idea]PM3 shell scripts #929

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi to all. Can you please corect the sysntacs of the .sh scripts for the do some of commands? It's does't work. Problems with cd/r and git not see the .git

Arch Linux the scripts for i3blocks:

#!/bin/sh

cd ~/proxmark3
git fetch
git pull
make clean && make all
pm3-flash-all

and

#!/bin/sh

cd ~/proxmark3
cd client
proxmark3 /dev/ttyACM0
doegox commented 4 years ago

So my guess is that you need something like this

#!/bin/sh

[ -d ~/proxmark3 ] || git clone https://github.com/RfidResearchGroup/proxmark3.git
cd ~/proxmark3
git pull
make clean && make -j && ./pm3-flash-all

and

cd ~/proxmark3/client
./proxmark3 /dev/ttyACM0

Or just

cd ~/proxmark3
./pm3
ghost commented 4 years ago
  • Your scripts assume the repo is already cloned in ~/proxmark3, right ?

Yes

You can take a look to the pic and see that's problem in in \r and other WTF moments. Some thimes Linux make me cry...

See on i3blocks two links, now it's more clear for you, why me asking and .sh scripts. Mayme for you that's will be cool also :)

image

Why it's not working?

doegox commented 4 years ago

It seems you're using a windows editor, try convert your scripts with dos2unix

ghost commented 4 years ago

using a windows editor

Exactly! Thx to encoding...