Created
May 29, 2024 07:57
-
-
Save iomonad/0a74df101da6286c32fd6918a335e645 to your computer and use it in GitHub Desktop.
Flipper Zero NFC file to Proxmark3 binary file converter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Convert Flipper's NFC file to Proxmark3 compatible file | |
set -eu | |
if ! [ $# -eq 2 ] | |
then | |
echo "usage: $0 <input.nfc> <output.bin>" | |
exit 1 | |
fi | |
local F=$1 | |
local O=$2 | |
grep -E '^Block [0-9]{1,2}:' $F | sed -e 's/ //g' -e 's/.*://' | head -c -1 | xxd -ps -c16 -u -r > $F.bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment