A small set of scripts to read, test, and write Nova to NFC-enabled devices.
nfcread.py | ||
nfctest.py | ||
nfcwrite.py | ||
README.md |
NFC Scripts
This is a collection of scripts to read and write Nova code (or any arbitrary payload) to NFC devices using nfcpy
.
Reading a Card
nfcread.py
reads from an NFC device, converts the base64 payload into bytes, and decompressses those bytes using zlib
.
nfcread.py
Writing a Card
nfcwrite.py
writes a payload to an NFC device after compressing it with zlib
and encoding the resulting bytes using base64
.
The script can accept input via stdin
, as well as multiple files.
nfcwrite.py [-w] [-s] [-i] [-m] <file(s)>
-w: Write to an NFC device.
-s: Sleep, waiting for the writer to warm up.
-i: Use standard input as payload to write.
-m: Minify Nova code.
Testing Cards
nfctest.py
just runs nfcread.py
in a loop, allowing you to view multiple cards back to back.
nfctest.py