Commit graph

34 commits

Author SHA1 Message Date
Marcos Del Sol Vives
5d7cdcf1d9 Added PowerShell fallback for WSL
If WSLENV is not set (which, for my clean installation of Win10 with Debian,
it was not), PATH is not populated with Windows' entries and is missing
PowerShell executable, causing the COM port listing to fail.

This commit adds a fallback with the default path if not found in PATH, and
also replaces the wmic.exe check (which is no longer used) with a PSH check.
2020-10-10 12:14:31 +02:00
Marcos Del Sol Vives
8a0bbe21d4 Replace awk with sed for WSL
The WSL distribution of Debian uses mawk instead of gawk by default, which
does not support matching into an array as it is currently being done for
extracting the COM port from the device name.

This commit replaces awk by sed, which also simplifies the building of
/dev/ttySx paths.
2020-10-10 12:14:31 +02:00
Philippe Teuwen
5305c33ec1 Add LeakSanitizer suppressions to skip libfontconfig warnings 2020-10-07 02:05:16 +02:00
iceman1001
4daa8aac2c Revert "chg: empty call to powershell.exe triggers colors on ProxSpace"
This reverts commit a5b406bffa.
2020-06-24 11:53:00 +02:00
iceman1001
a5b406bffa chg: empty call to powershell.exe triggers colors on ProxSpace 2020-06-24 11:33:19 +02:00
Philippe Teuwen
def55011be and the other one... 2020-06-12 02:02:53 +02:00
Philippe Teuwen
d229364a21 Variant for fix #777 independent of sentence and nr of com port digits 2020-06-12 02:01:27 +02:00
iceman1001
47262ce1e9 fix #777 thanks @doegox 2020-06-12 01:34:42 +02:00
iceman1001
fde1fd8732 improved helptext 2020-06-05 11:43:27 +02:00
Philippe Teuwen
6d1beb07c1 pm3: attempt to detect BT dongle when udevadm is not available 2020-05-18 01:16:29 +02:00
Philippe Teuwen
11f02967bc pm3: test access to /dev/ttyXXX files as prerequisite for linux 2020-05-18 01:05:49 +02:00
Philippe Teuwen
227c4e89bd pm3: shellcheck 2020-05-17 12:23:03 +02:00
Philippe Teuwen
e3180be45c pm3: err msgs on stderr 2020-05-17 12:12:13 +02:00
Philippe Teuwen
be1659b1bf pm3: textual and --list with no device, exit 1 2020-05-17 12:06:39 +02:00
Philippe Teuwen
bc767f167f pm3 without udev: change detection routine 2020-05-16 15:58:24 +02:00
Philippe Teuwen
4edea34b6b pm3 script for linux: alternative if udevadm is not available (termux) 2020-05-16 14:24:21 +02:00
Philippe Teuwen
ba08d5794c silent err if dbus absent 2020-04-29 15:29:34 +02:00
Philippe Teuwen
4c085245c5 pm3 for direct bt devices 2020-04-29 15:15:25 +02:00
iceman1001
73e6f0d07e chg: moved WSL/PS3.x bt native to be tested first. Since call to Win32_serialport crashes it. 2020-04-29 14:07:26 +02:00
iceman1001
f80f123061 Chg: Bt dongle, bt direct listing of serial ports on WSL and PS3.x, now using powershell.exe since wmic is deprecated 2020-04-29 12:00:49 +02:00
Philippe Teuwen
cdd1aef34f pm3: stop as soon as enough devs found 2020-04-21 22:51:36 +02:00
Philippe Teuwen
691e70ed74 pm3 script: check if pm3 actually present behind rfcomm interface 2020-04-21 22:51:36 +02:00
Philippe Teuwen
779d9bce97 pm3 bt: add help 2020-04-21 22:51:36 +02:00
Philippe Teuwen
0c8624ccd1 Add BT detection in pm3 script for linux 2020-04-21 22:51:36 +02:00
Joe Harrison
7d157606ee Use /usr/bin/env in shebangs
Stop assuming that bash is in /bin, and that perl and python are in
/usr/bin, etc.
Instead, use env command to find these commands in the path.
2020-02-18 00:00:24 +00:00
Philippe Teuwen
5e85d53c3e pm3 serial detection on OS X more robust
Official firmwares < 2018.02 had a different USB Model string (PM3<>proxmark3).
Better to detect based on the vendor string (proxmark.org) which is more stable,
to ease reflashing devices with old firmwares to the RDV4 firmware.
2019-11-18 13:11:28 +01:00
Philippe Teuwen
5dc2c7c392 pm3 serial detection on Linux more robust. Fixes #475
Official firmwares < 2018.02 had a different USB Model string (PM3<>proxmark3).
Better to detect based on the vendor string (proxmark.org) which is more stable,
to ease reflashing devices with old firmwares to the RDV4 firmware.
Thanks @fishilico for having pointed it out.
2019-11-17 11:52:30 +01:00
Philippe Teuwen
e978b180b4 Better device detection in pm3 script, add -n option 2019-10-01 01:32:37 +02:00
Philippe Teuwen
e95186e5c7 WSL: detect auth problems to run wmic 2019-09-24 11:45:38 +02:00
Philippe Teuwen
6385ee960f searchFile for firmwares 2019-09-09 19:55:27 +02:00
Philippe Teuwen
98189d6ef8 typo 2019-09-09 13:24:45 +02:00
Philippe Teuwen
936243a488 add -h to scripts 2019-09-09 12:58:11 +02:00
Philippe Teuwen
afe891647f merge flasher in client 2019-09-09 01:35:15 +02:00
Philippe Teuwen
595fde5312 update scripts to work with make install 2019-08-30 23:35:29 +02:00
Renamed from proxmark3.sh (Browse further)