logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 Re : Matériel » erreur nfc device » 30-06-2019 23:34:15

walawa75
Erfff !! Ça n’a pas été simple mais j’ai réussi !! Plus d’erreur à la commande nfc-list !! Et tu avais raison entre le driver et le service Pcscd.

J’ai donc cloné mon premier badge de mon immeuble ce soir !!

Un grand merci à toi pour ta super aide, bonne continuation !!

A plouche merci.gifmrgreen.gifmerci.gif

#2 Re : Matériel » erreur nfc device » 30-06-2019 12:41:36

walawa75
Comment ne pas avoir ces erreurs "error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame"  sur la fin ?



root@kali:/usr/lib# nfc-list -v
nfc-list uses libnfc 1.7.1
NFC device: ACS / ACR122U PICC Interface opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04 
* UID size: single
* bit frame anticollision supported
       UID (NFCID1): f6  9e  b3  3a 
      SAK (SEL_RES): 08 
* Not compliant with ISO/IEC 14443-4
* Not compliant with ISO/IEC 18092

Fingerprinting based on MIFARE type Identification Procedure:
* MIFARE Classic 1K
* MIFARE Plus (4 Byte UID or 4 Byte RID) 2K, Security level 1
* SmartMX with MIFARE 1K emulation
Other possible matches based on ATQA & SAK values:

0 Felica (212 kbps) passive target(s) found.

0 Felica (424 kbps) passive target(s) found.

0 ISO14443B passive target(s) found.

error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
0 ISO14443B' passive target(s) found.

error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
0 ISO14443B-2 ST SRx passive target(s) found.

error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
0 ISO14443B-2 ASK CTx passive target(s) found.

error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
0 Jewel passive target(s) found.

#3 Re : Matériel » erreur nfc device » 30-06-2019 12:17:27

walawa75
Hourra il suffisait de faire un apt-get install libusb-dev !!

Maintenant j'ai un problème de driver

oot@kali:/usr/lib# sudo nfc-list
nfc-list uses libnfc 1.7.1
NFC device: ACS / ACR122U PICC Interface opened
1 ISO14443A passive target(s) found:
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04 
       UID (NFCID1): ca  38  c9  19 
      SAK (SEL_RES): 08 

error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame

C'est grave docteur ?


Il semble que oui j'ai cette erreur quand je veux executer un mfoc


oot@kali:/usr/lib# mfoc -P 500 -O originale.dmp
Found Mifare Classic 1k tag
ISO/IEC 14443A (106 kbps) target:
    ATQA (SENS_RES): 00  04 
* UID size: single
* bit frame anticollision supported
       UID (NFCID1): f6  9e  b3  3a 
      SAK (SEL_RES): 08 
* Not compliant with ISO/IEC 14443-4
* Not compliant with ISO/IEC 18092

Fingerprinting based on MIFARE type Identification Procedure:
* MIFARE Classic 1K
* MIFARE Plus (4 Byte UID or 4 Byte RID) 2K, Security level 1
* SmartMX with MIFARE 1K emulation
Other possible matches based on ATQA & SAK values:

Try to authenticate to all sectors with default keys...
Symbols: '.' no key found, '/' A key found, '\' B key found, 'x' both keys found
error    libnfc.driver.acr122_usb    Invalid RDR_to_PC_DataBlock frame
nfc_initiator_mifare_cmd: Input / Output Error
[Key: ffffffffffff] -> [root@kali:

#4 Re : Matériel » erreur nfc device » 30-06-2019 12:08:28

walawa75
Merci j'ai bien suivi les instructions mais c'est toujours pareil kernal_panic.gif

root@kali:~# mkdir test
root@kali:~# cd test
root@kali:~/test# wget http://dl.bintray.com/nfc-tools/sources … .1.tar.bz2
--2019-06-30 13:00:46--  http://dl.bintray.com/nfc-tools/sources … .1.tar.bz2
Resolving dl.bintray.com (dl.bintray.com)... 35.158.148.134, 18.184.128.152
Connecting to dl.bintray.com (dl.bintray.com)|35.158.148.134|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://d29vzk4ow07wi7.cloudfront.net/d7 … MXM2UMTSFA [following]
--2019-06-30 13:00:46--  http://d29vzk4ow07wi7.cloudfront.net/d7 … MXM2UMTSFA
Resolving d29vzk4ow07wi7.cloudfront.net (d29vzk4ow07wi7.cloudfront.net)... 13.32.215.17, 13.32.215.158, 13.32.215.175, ...
Connecting to d29vzk4ow07wi7.cloudfront.net (d29vzk4ow07wi7.cloudfront.net)|13.32.215.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 484309 (473K) [application/unknown]
Saving to: ‘libnfc-1.7.1.tar.bz2’

libnfc-1.7.1.tar.bz2                  100%[======================================================================>] 472.96K   566KB/s    in 0.8s   

2019-06-30 13:00:48 (566 KB/s) - ‘libnfc-1.7.1.tar.bz2’ saved [484309/484309]

root@kali:~/test# ls
libnfc-1.7.1.tar.bz2
root@kali:~/test# tar xjf libnfc-1.7.1.tar.bz2
root@kali:~/test# cd libnfc-1.7.1
root@kali:~/test/libnfc-1.7.1# ls
aclocal.m4  cmake           config.sub    COPYING      examples    libnfc              m4           NEWS                utils
ar-lib      CMakeLists.txt  configure     depcomp      include     libnfc.conf.sample  Makefile.am  README
AUTHORS     config.guess    configure.ac  Doxyfile     INSTALL     libnfc.pc.in        Makefile.in  README-Windows.txt
ChangeLog   config.h.in     contrib       Doxyfile.in  install-sh  ltmain.sh           missing      test
root@kali:~/test/libnfc-1.7.1# pwd
/root/test/libnfc-1.7.1
root@kali:~/test/libnfc-1.7.1# ./configure --prefix=/usr --sysconfdir=/etc
fatal: not a git repository (or any of the parent directories): .git
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether make supports nested variables... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for pkg-config... no
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdbool.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking linux/spi/spidev.h usability... yes
checking linux/spi/spidev.h presence... yes
checking for linux/spi/spidev.h... yes
checking linux/i2c-dev.h usability... yes
checking linux/i2c-dev.h presence... yes
checking for linux/i2c-dev.h... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for usleep... yes
checking for size_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for off_t... yes
checking for log flag... yes
checking for conffiles flag... yes
checking for envvars flag... yes
checking for debug flag... no
checking which drivers to build... default drivers
checking for documentation request... no
checking for libusb-config... no
checking usb.h usability... no
checking usb.h presence... no
checking for usb.h... no
configure: error: The libusb headers are missing
root@kali:~/test/libnfc-1.7.1# make
make: *** No targets specified and no makefile found.  Stop.
root@kali:~/test/libnfc-1.7.1#

Je suis sur

root@kali:~/test/libnfc-1.7.1# uname -a
Linux kali 4.19.0-kali4-amd64 #1 SMP Debian 4.19.28-2kali1 (2019-03-18) x86_64 GNU/Linux

Je ne vois pas du tout d'où vient cette galère vraiment sad

#5 Re : Matériel » erreur nfc device » 30-06-2019 11:35:42

walawa75
Pour clarifier les choses le ./configure tu le fais bien dans ton dossier libnfc-1.7.1 que tu as décompressé et où tu viens de modifier le fichier de driver ?



Par ailleurs, cette étape que tu décris, à quel moment il faut l'éxecuter? acid.gif

"Aussi, je ne sais pas si c'est un bug de kali, ou bien moi qui n'est pas utiliser les bon parametres, il faut copier les librairies libnfc compilés dans le répertoire /usr/lib/x86_64-linux-gnu

cd /usr/lib
cp -p libnfc.* x86_64-linux-gnu/"


root@kali:~/libnfc-1.7.1# ls
aclocal.m4  cmake           config.log    contrib   Doxyfile.in  install-sh          ltmain.sh    missing             test
ar-lib      CMakeLists.txt  config.sub    COPYING   examples     libnfc              m4           NEWS                utils
AUTHORS     config.guess    configure     depcomp   include      libnfc.conf.sample  Makefile.am  README
ChangeLog   config.h.in     configure.ac  Doxyfile  INSTALL      libnfc.pc.in        Makefile.in  README-Windows.txt


root@kali:~/libnfc-1.7.1# pwd
/root/libnfc-1.7.1

J'ai essayé avec les sources stables j'ai le même probleme.

Voilà lewis333

#6 Re : Matériel » erreur nfc device » 30-06-2019 10:35:09

walawa75
Je suis maudit !! kernal_panic.gif

Maintenant j'ai un 

fatal: not a git repository (or any of the parent directories): .git  +  configure: error: The libusb headers are missing

à la commande ./configure  et le make derrière ne marche pas !!

Si je fais un git init ça commence par un fatal: No names found, cannot describe anything.

La loose quoi, je ne sais plus quoi faire sos.gif

#7 Re : Matériel » erreur nfc device » 30-06-2019 00:42:22

walawa75
Hello lewis333,

Merci pour la combine. Par contre n'étant pas trop familié avec les recompilations git, je doit louper un truc.

1- Je fais un git clone du paquet libnfc dans un dossier quelconque.
2- Je fais ta super modif et j'enregistre
3- la commande ./configure donne      bash: ./configure: No such file or directory

Please help je ne comprends pas, merci d'avance

Pied de page des forums

Propulsé par FluxBB