RaspberryPI – prototype #NFC controller

16
RaspberryPI – prototype #NFC How-to-guide-to-tests. Lukas Kypus | @dluckyb

description

Learn how to quickly make combination of RaspberryPI + HF reader working as an efficient #NFC controller powered by libNFC. To be continued...

Transcript of RaspberryPI – prototype #NFC controller

Page 1: RaspberryPI – prototype #NFC controller

RaspberryPI – prototype #NFC

How-to-guide-to-tests.

Lukas Kypus | @dluckyb

Page 2: RaspberryPI – prototype #NFC controller

RaspberryPI Raspberry Pi | An ARM GNU/Linux box for $25.

Singleboard LINUX prototyping platform.

Processor: ARMv6-compatible processor rev 7.

BogoMIPS: 697.95.

MemTotal: 383712 kB.

Page 3: RaspberryPI – prototype #NFC controller

NFC • 13.56MHz.

• Contextual extension of HF RFID > NDEFs.

NFC Forum Type:

1 Tag ~ ISO/IEC 14443A 96B-2kB,

2 Tag ~ ISO/IEC 14443A 48B-2kB,

3 Tag ~ FeliCa upto 1MB,

4 Tag ~ ISO/IEC 14443A + B 32kB.

Page 4: RaspberryPI – prototype #NFC controller

SCL3711 The ultra-compact multi-protocol 13.56MHz Contactless USB Smart Card Reader. ISO14443 type A & B MIFARE™ FeliCa™ Peer-to-peer support

Page 5: RaspberryPI – prototype #NFC controller

SCL3711 PC/SC compliant , (HAL) that sits on top of PC/SC API. Baudrate up to 848 Kbps. ISO/IEC 18092 peer-to-peer protocol up to 412 Kbps. Type A + B until ISO/IEC 14443-3, ISO/IEC 14443-4. MIFARE: Classic 1K and 4K, Mifare plus, DESFire, Ultralight. FeliCa + NFC forum tag type 1, 2, 3, 4. Certified and compliant to EMV, Common Criteria.

Page 6: RaspberryPI – prototype #NFC controller

SCL3711 Bus 001 Device 006: ID 04e6:5591 SCM Microsystems, Inc.

#tail -f /var/log/syslog

Page 7: RaspberryPI – prototype #NFC controller

RaspberryPI + SCL3711 + wrist band

Page 8: RaspberryPI – prototype #NFC controller

LibNFC https://code.google.com/p/libnfc/ #./configure #make #make install add to /etc/modprobe.d/blacklist-libnfc.conf blacklist pn533 blacklist nfc #sudo modprobe -r pn533 nfc unplug&plug

Page 9: RaspberryPI – prototype #NFC controller

LibNFC nfc-anticol - Demonstration of NFC anti-collision tool based on libnfc nfc-dep-initiator - Demonstration tool to send/received data as D.E.P. initiator nfc-dep-target - Demonstration tool to send/received data as D.E.P. target nfc-emulate-forum-tag2 - NFC Forum tag type 2 emulation nfc-emulate-forum-tag4 - NFC Forum tag type 4 emulation nfc-emulate-tag - Simple tag emulation command line demonstration tool nfc-emulate-uid - NFC target emulation command line tool based on libnfc nfc-list - list NFC targets nfc-mfclassic - MIFARE Classic command line tool nfc-mfsetuid - MIFARE 1K special card UID setting and recovery tool nfc-mfultralight - MIFARE Ultralight command line tool nfc-poll - poll first available NFC target nfc-read-forum-tag3 - Extract NDEF Message from a NFC Forum Tag Type 3 nfc-relay - Relay attack command line tool based on libnfc nfc-relay-picc - Relay demonstration tool for ISO14443-4 nfc-scan-device - Scan NFC devices

Page 10: RaspberryPI – prototype #NFC controller

Wrist band .

Page 11: RaspberryPI – prototype #NFC controller

Mifare Classic .

Page 12: RaspberryPI – prototype #NFC controller

Mifare DESfire

Page 13: RaspberryPI – prototype #NFC controller

nfc-emulate-uid

Page 14: RaspberryPI – prototype #NFC controller

dump & read with hexedit

#hexedit /tmp/dump.mfd 00000000 04 6B F9 1E 72 B9 29 80 62 48 00 00 E1 10 12 00

00000010 01 03 A0 10 44 03 12 D1 01 0E 55 01 70 65 74 65

00000020 72 2E 67 72 65 6E 2E 73 6B FE 00 00 00 00 00 00

00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Page 15: RaspberryPI – prototype #NFC controller

To be continued …

Page 16: RaspberryPI – prototype #NFC controller

RaspberryPI – prototype #NFC

How-to-guide-to-tests.

Lukas Kypus | @dluckyb