ACR122U-tutorial
vsmartcard
ACR122U-tutorial | vsmartcard | |
---|---|---|
1 | 2 | |
21 | 677 | |
- | - | |
1.8 | 6.0 | |
over 2 years ago | 7 days ago | |
C | C | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ACR122U-tutorial
-
Create a C/C++ app with the ACR122U (Linux)
Let's now create the application. I will use the C language with the gcc compiler, but it's also compatible in C++ with g++. To communicate with the reader, we are going to use the PC/SC Lite API (WinSCard). All the code is written is a main.c file which is available on GitHub.
vsmartcard
-
On-device WebAuthn and what makes it hard to do well
It's been a few years, but the main references I remember using:
1. Windows: https://github.com/frankmorgner/vsmartcard/tree/master/virtu..., which is a fix-up of the older https://www.codeproject.com/Articles/134010/An-UMDF-Driver-f..., and https://github.com/Watfaq/SoftU2F-Win/tree/master/SoftU2FDri.... Note that neither of these actually implement CTAP2.
2. Linux: There's plenty to refer to on HID gadgets, but https://blog.hansenpartnership.com/webauthn-in-linux-with-a-... and the code at https://git.kernel.org/pub/scm/linux/kernel/git/jejb/fido2-c... were my entrypoint.
3. Mac: I ended up not implementing a Mac version, but GitHub themselves used to support a CTAP1/U2F software authenticator, now archived at https://github.com/github/SoftU2F. I was going to work from that.
For the service I looked at different software "devices" interfacing with these kinds of drivers (or just the browser directly in Firefox's case).
1. Generic NIST SP 800-73 PIV: https://github.com/CCob/PIVert. Very limited scope, pentest tool with no extraneous features. It uses the BixVReader driver.
-
⟳ 5 apps added, 63 updated at f-droid.org
Smart Card Reader (version 2.3): Use your phone as contact-less smart card reader
What are some alternatives?
WSCT-Core - Public repository for WSCT Core project.
NFC-Copy-Cat - NFC Copy Cat is a small device that combines two powerful cybersecurity tools, NFCopy and MagSpoof. NFCopy works by reading or emulating a NFC card; depending on the necessities of the researcher.
libnfc - Platform independent Near Field Communication (NFC) library
Simple-Flashlight - A simple modern flashlight with SOS, stroboscope & bright display, has no ads.
Xtra - Xtra is a Twitch player and browser for Android.
Simple-Voice-Recorder - An easy way of recording any discussion or sounds without ads or internet access
SoftU2F - Software U2F authenticator for macOS
SoftU2F-Win - Software U2F authenticator for Windows
tpm-fido - A WebAuthn/U2F token protected by a TPM (Go/Linux)
virtual-fido - A Virtual FIDO2 USB Device
Kotatsu - Manga reader for Android [Moved to: https://github.com/KotatsuApp/Kotatsu]