0x00實(shí)話。 被自己傻到
在linux下使用 libusb + libnfc
這兩個(gè)庫(kù)就可以配合串口直接使用pn532模塊
當(dāng)時(shí)配置文件是寫在 /etc/nfc
目錄下的
而我在OS X 下居然也想著這樣干臊岸。
硬件列表
綠聯(lián)的type-c拓展塢一個(gè)。
FT232 usb轉(zhuǎn)串口模塊一個(gè)激况。
PN532 nfc通訊模塊一個(gè)。
0x01硬件連接
沒啥好說的 rxd接模塊txd 反之亦然
還有膘魄。 如果mac沒有正確識(shí)別串口驅(qū)動(dòng)
到ftdi的官網(wǎng)下載即可
注意別選錯(cuò)系統(tǒng)版本 mac Mojave的版本號(hào)是14 high Sierra是13
還有一個(gè)小注意點(diǎn)是 如何測(cè)試usb轉(zhuǎn)uart模塊是否配置好
把模塊的rxd直接接上txd 然后 ls /dev/cu.*
找到類似于/dev/cu.usbserial-00003214
這樣的設(shè)備
然后 screen /dev/cu.usbserial-00003214
隨便按幾下鍵盤
看看是不是在屏幕上有返回 理論上是按什么返回什么
0x02庫(kù)安裝
libnfc
libusb
自行安裝 不在贅述 github界面寫的非常清楚
0x03nfc-tools
mfoc
mfcuk
這幾個(gè)常用的軟件怎么用就不介紹了
0x04軟件調(diào)試(重頭戲)
nfc-list uses libnfc 1.7.1
0 device(s) found
錯(cuò)誤原因是啥呢. 就是我說的 我在/etc/nfc
目錄下創(chuàng)建配置文件了
log_level=3
這個(gè)我記得調(diào)了 然而 ....
直到我看到了這個(gè)
LIBNFC_LOG_LEVEL=3 nfc-list
才發(fā)現(xiàn)乌逐。 一直都沒有設(shè)置配置文件
info libnfc.config Unable to open file: /opt/local/etc/nfc/libnfc.conf
debug libnfc.config Unable to open directory: /opt/local/etc/nfc/devices.d
debug libnfc.general log_level is set to 3
debug libnfc.general allow_autoscan is set to true
debug libnfc.general allow_intrusive_scan is set to false
debug libnfc.general 0 device(s) defined by user
nfc-list uses libnfc 1.7.1
debug libnfc.general 0 device(s) found using acr122_usb driver
debug libnfc.general 0 device(s) found using pn53x_usb driver
No NFC device found.
0x05真相大白..
mac配置文件應(yīng)該放在/opt/local/etc
里
然后就好了..
0x06 Ps.
然而配置好之后還是沒有什么卵用
Card is not vulnerable to nested attack
我的免費(fèi)洗澡計(jì)劃又泡湯了.
接下來考慮物理攻擊
比如釹鐵硼超強(qiáng)磁鐵去搞電磁閥[手動(dòng)滑稽]