mirror of
https://github.com/Djeeberjr/fw-anwesenheit.git
synced 2025-07-04 09:54:17 +00:00
added a simple pm3 mock script for testing
use the PM3_BIN env var to use it
This commit is contained in:
parent
6ad018db7a
commit
84a4e8dbae
17
pm3_mock.sh
Executable file
17
pm3_mock.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user