added a simple pm3 mock script for testing

use the PM3_BIN env var to use it
This commit is contained in:
Niklas Kapelle 2025-04-27 15:51:44 +02:00
parent 6ad018db7a
commit 84a4e8dbae
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

17
pm3_mock.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
generate_random_hex() {
openssl rand -hex 4 | tr '[:lower:]' '[:upper:]'
}
echo "Proxmark 3 mock script"
echo "Outputs a random ID every 1 to 5 seconds"
while true; do
random_id=$(generate_random_hex)
echo "[+] UID.... $random_id"
if (( RANDOM % 2 == 0 )); then
echo "[+] UID.... $random_id"
fi
sleep "$((RANDOM % 5 + 1))"
done