Skip to content

Instantly share code, notes, and snippets.

@hoggren
hoggren / unload_smartcard.sh
Last active February 12, 2018 16:48
Unload OSX / macOS smartcard driver
#!/bin/bash
#
# Unload OSX / macOS smartcard driver
# Useful for libnfc
#
# Solves the error:
# ~ $ nfc-list
# nfc-list uses libnfc libnfc-1.7.1-66-g24979c6
# error libnfc.driver.acr122_usb Unable to claim USB interface (Permission denied)
# nfc-list: ERROR: Unable to open NFC device: acr122_usb:020:002
@jellyjellyrobot
jellyjellyrobot / osx_mifare_install.sh
Last active February 12, 2018 16:50
libnfc + mfoc for fun, maybe profit?
# Prereq
brew tap jlhonora/lsusb
brew install autoconf doxygen automake libtool libusb libusb-compat --universal wget pkgconfig lsusb
# Libnfc
git clone git@github.com:nfc-tools/libnfc.git
cd libnfc
./make_release.sh
autoreconf -vis
./configure --enable-doc --with-drivers=all --sysconfdir=/etc --prefix=/usr