Skip to content

Instantly share code, notes, and snippets.

@iomonad
Created May 29, 2024 07:57
Show Gist options
  • Save iomonad/0a74df101da6286c32fd6918a335e645 to your computer and use it in GitHub Desktop.
Save iomonad/0a74df101da6286c32fd6918a335e645 to your computer and use it in GitHub Desktop.
Flipper Zero NFC file to Proxmark3 binary file converter
#!/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