1 (edited by casper112 2013-02-10 23:03:27)

Topic: Problem installing libnfc-1.7.0-rc4 now mfoc :(

Hi, I was working fine with 1.4.2 & 1.5.0... Now is time to update and I think i´m near to solve all smile

Device: Acr122u and bactrack


root@bt:~# pcscd -f
00000000 ccid_usb.c:596:WriteUSB() usb_bulk_write(002/003): Device or resource busy
00000061 ifdwrapper.c:469:IFDStatusICC() Card not transacted: 612
00000007 eventhandler.c:333:EHStatusHandlerThread() Error communicating to: ACS ACR122U PICC Interface 00 00
00400976 ccid_usb.c:596:WriteUSB() usb_bulk_write(002/003): Device or resource busy
root@bt:~/libnfc-1.7.0-rc4/utils# ./nfc-list
/root/libnfc-1.7.0-rc4/utils/.libs/lt-nfc-list uses libnfc libnfc-1.7.0-rc4
No NFC device found.
root@bt:~/libnfc-1.7.0-rc4/utils# ./nfc-list
/root/libnfc-1.7.0-rc4/utils/.libs/lt-nfc-list uses libnfc libnfc-1.7.0-rc4
error    libnfc.driver.acr122_usb    Unable to write to USB (Connection timed out)
lt-nfc-list: ERROR: Unable to open NFC device: acr122_usb:002:003

All done:

root@bt:~# nfc-list
nfc-list uses libnfc libnfc-1.7.0-rc4
NFC device: ACS ACR122U PICC Interface 00 00 / ACR122U210 opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): XX  XX 
       UID (NFCID1): XX  XX  XX  XX  
      SAK (SEL_RES): XX  

thx

2 (edited by casper112 2013-02-10 23:01:51)

Re: Problem installing libnfc-1.7.0-rc4 now mfoc :(

Problem with mfoc after install lasted version:

root@bt:~# mfoc -O output_file.mfd
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): XX XX  
* UID size: single
* bit frame anticollision supported
       UID (NFCID1): XX  XX  XX  XX  
      SAK (SEL_RES): XX  
* Not compliant with ISO/IEC 14443-4
* Not compliant with ISO/IEC 18092

Fingerprinting based on MIFARE type Identification Procedure:
* MIFARE Classic 4K
* MIFARE Plus (4 Byte UID or 4 Byte RID) 4K, Security level 1
* SmartMX with MIFARE 4K emulation
Other possible matches based on ATQA & SAK values:
nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
[Key: ffffffffffff] -> [.nfc_initiator_transceive_bytes: Mifare Authentication Failed

... Continue the same


/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]
nfc_initiator_transceive_bytes: Mifare Authentication Failed
[Key: 8fd0a4f256e9] -> [/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transcaive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
nfc_initiator_transceive_bytes: Mifare Authentication Failed
.nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/nfc_initiator_transceive_bytes: Mifare Authentication Failed
/]

Sector 00 -  FOUND_KEY   [A]  Sector 00 -  UNKNOWN_KEY [b]  
Sector 01 -  FOUND_KEY   [A]  Sector 01 -  UNKNOWN_KEY [b]  
Sector 02 -  UNKNOWN_KEY [A]  Sector 02 -  UNKNOWN_KEY [b]  
Sector 03 -  UNKNOWN_KEY [A]  Sector 03 -  UNKNOWN_KEY [b]  
Sector 04 -  UNKNOWN_KEY [A]  Sector 04 -  UNKNOWN_KEY [b]  
Sector 05 -  UNKNOWN_KEY [A]  Sector 05 -  UNKNOWN_KEY [b]  
Sector 06 -  UNKNOWN_KEY [A]  Sector 06 -  UNKNOWN_KEY [b]  
Sector 07 -  UNKNOWN_KEY [A]  Sector 07 -  UNKNOWN_KEY [b]  
Sector 08 -  UNKNOWN_KEY [A]  Sector 08 -  UNKNOWN_KEY [b]  
Sector 09 -  UNKNOWN_KEY [A]  Sector 09 -  UNKNOWN_KEY [b]  
Sector 10 -  UNKNOWN_KEY [A]  Sector 10 -  UNKNOWN_KEY [b]  
Sector 11 -  UNKNOWN_KEY [A]  Sector 11 -  UNKNOWN_KEY [b]  
Sector 12 -  UNKNOWN_KEY [A]  Sector 12 -  UNKNOWN_KEY [b]  
Sector 13 -  UNKNOWN_KEY [A]  Sector 13 -  UNKNOWN_KEY [b]  
Sector 14 -  UNKNOWN_KEY [A]  Sector 14 -  UNKNOWN_KEY [b]  
Sector 15 -  FOUND_KEY   [A]  Sector 15 -  UNKNOWN_KEY [b]  
Sector 16 -  FOUND_KEY   [A]  Sector 16 -  UNKNOWN_KEY [b]  
Sector 17 -  UNKNOWN_KEY [A]  Sector 17 -  UNKNOWN_KEY [b]  
Sector 18 -  UNKNOWN_KEY [A]  Sector 18 -  UNKNOWN_KEY [b]  
Sector 19 -  UNKNOWN_KEY [A]  Sector 19 -  UNKNOWN_KEY [b]  
Sector 20 -  UNKNOWN_KEY [A]  Sector 20 -  UNKNOWN_KEY [b]  
Sector 21 -  UNKNOWN_KEY [A]  Sector 21 -  UNKNOWN_KEY [b]  
Sector 22 -  UNKNOWN_KEY [A]  Sector 22 -  UNKNOWN_KEY [b]  
Sector 23 -  FOUND_KEY   [A]  Sector 23 -  UNKNOWN_KEY [b]  
Sector 24 -  FOUND_KEY   [A]  Sector 24 -  UNKNOWN_KEY [b]  
Sector 25 -  FOUND_KEY   [A]  Sector 25 -  UNKNOWN_KEY [b]  
Sector 26 -  FOUND_KEY   [A]  Sector 26 -  UNKNOWN_KEY [b]  
Sector 27 -  FOUND_KEY   [A]  Sector 27 -  UNKNOWN_KEY [b]  
Sector 28 -  FOUND_KEY   [A]  Sector 28 -  UNKNOWN_KEY [b]  
Sector 29 -  FOUND_KEY   [A]  Sector 29 -  UNKNOWN_KEY [b]  
Sector 30 -  FOUND_KEY   [A]  Sector 30 -  UNKNOWN_KEY [b]  
Sector 31 -  FOUND_KEY   [A]  Sector 31 -  UNKNOWN_KEY [b]  
Sector 32 -  FOUND_KEY   [A]  Sector 32 -  UNKNOWN_KEY [b]  
Sector 33 -  FOUND_KEY   [A]  Sector 33 -  UNKNOWN_KEY [b]  
Sector 34 -  FOUND_KEY   [A]  Sector 34 -  UNKNOWN_KEY [b]  
Sector 35 -  FOUND_KEY   [A]  Sector 35 -  UNKNOWN_KEY [b]  
Sector 36 -  FOUND_KEY   [A]  Sector 36 -  UNKNOWN_KEY [b]  
Sector 37 -  FOUND_KEY   [A]  Sector 37 -  UNKNOWN_KEY [b]  
Sector 38 -  FOUND_KEY   [A]  Sector 38 -  UNKNOWN_KEY [b]  
Sector 39 -  FOUND_KEY   [A]  Sector 39 -  UNKNOWN_KEY [b]  


Using sector 00 as an exploit sector
Sector: 2, type A, probe 0, distance 21306 ..nfc_device_set_property_bool activate field: Input / Output Error

Re: Problem installing libnfc-1.7.0-rc4 now mfoc :(

Hello casper112 !

How did you fixe your problem with nfc-list?
I have the same problem with libnfc-1.7.0-rc4 and i don't know how to solve it. I work with a Raspberry pi in the last version of Raspbian. And when i use nfc-list , it appears No NFC device found.
Do you have an idea to help me?

Thanks,
WashMachine

Re: Problem installing libnfc-1.7.0-rc4 now mfoc :(

With this comands...

wget libnfc.googlecode.com/files/libnfc-1.7.0-rc4.tar.gz
tar -xvzf libnfc-1.7.0-rc4.tar.gz
rm libnfc-1.7.0-rc4.tar.gz
cd ~
cd libnfc-1.7.0-rc4
./configure --with-drivers=acr122_pcsc && make clean
make clean
make
make install
sudo sh -c "echo /usr/local/lib > /etc/ld.so.conf.d/usr-local-lib.conf"
sudo ldconfig
cd

Important line is this:
For ACR122U like me u must to use it:
./configure --with-drivers=acr122_pcsc && make clean

But before nfc-list comand u must open a new terminal and execute pcscd -f

Re: Problem installing libnfc-1.7.0-rc4 now mfoc :(

Hello,

Ok, thank you, i check that soon

Re: Problem installing libnfc-1.7.0-rc4 now mfoc :(

Hello Casper,

Did you find a solution for mfoc that return : nfc_initiator_transceive_bytes: Mifare Authentification Failed ?

I have something similar. Mfoc use sector 02 as an exploit sector and i only have to find sector 00 and 01 of my MiFare 1K.
I use libnfc-1.7.0-rc4 and mfoc-0.10.5 with a PN532 in uart port.
So if you find a solution, could you tell me?

WashMachine