mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
WSL: detect auth problems to run wmic
This commit is contained in:
parent
7870dd6fc0
commit
e95186e5c7
2 changed files with 9 additions and 0 deletions
7
pm3
7
pm3
|
@ -54,6 +54,13 @@ function wait4proxmark_Windows {
|
|||
}
|
||||
|
||||
function wait4proxmark_WSL {
|
||||
# Test presence of wmic
|
||||
wmic.exe computersystem get name >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "[!] Cannot run wmic.exe, are you sure your WSL is authorized to run Windows processes? (cf WSL interop flag)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo >&2 "[=] Waiting for Proxmark3 to appear..."
|
||||
while true; do
|
||||
device=$(wmic.exe path Win32_SerialPort where "PNPDeviceID like '%VID_9AC4&PID_4B8F%'" get DeviceID,PNPDeviceID 2>/dev/null | awk 'NR==2')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue