{"id":870,"date":"2019-09-12T09:38:30","date_gmt":"2019-09-12T07:38:30","guid":{"rendered":"https:\/\/blog.avxt.fr\/?p=870"},"modified":"2022-01-16T23:51:34","modified_gmt":"2022-01-16T21:51:34","slug":"libnfc-and-nfc-utils-binaries-on-windows-10","status":"publish","type":"post","link":"https:\/\/blog.avxt.fr\/fr\/libnfc-and-nfc-utils-binaries-on-windows-10\/","title":{"rendered":"Libnfc et les outils de nfc\/utils (mfoc.exe , cropto1_bs.exe, mfcuk.exe, nfc-mfcclassic.exe,&#8230;) sur Windows 10"},"content":{"rendered":"<h2 style=\"text-align: center;\">Nfc Tools sur Windows &#8211; Table des mati\u00e8res<\/h2>\n<hr \/>\n<ul>\n<li>Introduction &#8211;&gt;\u00a0<a href=\"#intro\">lien<\/a><\/li>\n<li>Comment utiliser l&rsquo;ACR122U avec libusbK &#8211;&gt; <a href=\"#howtouse\">lien<\/a><\/li>\n<li>Mifare One Tool en anglais&#8211;&gt; <a href=\"https:\/\/blog.avxt.fr\/mifare-one-tool-english-version-nfc-tools\/\">lien<\/a><\/li>\n<li>Comment cross-compiler les commandes NFC sur Windows 64 bits &#8211;&gt; <a href=\"#howtocrosscompile\">lien<\/a><\/li>\n<li>Sharp Free fare (encapsuleur libfreefare en dotnet) + mise \u00e0 jour de SharpNfc &#8211;&gt; <a href=\"#sharpfreefare\">lien<\/a><\/li>\n<li>libnfc recompil\u00e9e avec libusb version 1.0 pour Windows &#8211;&gt; <a href=\"#libnfc-libusb10\">lien<\/a><\/li>\n<li>Convertisseur en 1 clic de dumps android mifare classic tool\u00a0 &lt;&#8211;&gt;\u00a0 libnfc linux\/windows nfc- mfc classic, sur windows &#8211;&gt; <a href=\"https:\/\/blog.avxt.fr\/fr\/one-click-dump-converter-android-mifare-classic-linux-windows-nfc-mfc-classic\/\">lien<\/a><\/li>\n<li><strong>T\u00e9l\u00e9chargement : tous les outils dans un fichier zip <\/strong>&#8211;&gt; <a href=\"#alltools\">lien<\/a><\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"intro\">Introduction<\/h3>\n<p>J&rsquo;ai cross-compil\u00e9 libnfc et nfc utils pour windows, en m&rsquo;aidant de cet article: <a href=\"https:\/\/github.com\/peacepenguin\/libnfc-unofficialbuilds\">https:\/\/github.com\/peacepenguin\/libnfc-unofficialbuilds<\/a><\/p>\n<p>J&rsquo;avais un probl\u00e8me de pilote avec libnfc\/nfc utils utilis\u00e9s avec mon ACR122U (erreur : <strong>No NFC device found<\/strong> ), mais il suffit en fait d&rsquo;installer LibUsbK, et \u00e7a r\u00e9sous le probl\u00e8me.<\/p>\n<ul>\n<li>Comment installer LibUsbK pour l&rsquo;ACR122U &#8211;&gt; <a href=\"#howtouse\">link<\/a><\/li>\n<\/ul>\n<p>Tous les logiciels pour windows 10 64x ainsi que l&rsquo;installeur du pilote LibUsbK pour ACR 122U (entre autres) sont dispos en t\u00e9l\u00e9chargement gratuit dans cet article.<\/p>\n<p>Remarque : si vous rencontrez une erreur \u00ab\u00a0libwinpthread-1.dll manquant\u00a0\u00bb ou bien \u00ab\u00a0libgcc_s_seh-1.dll manquant\u00a0\u00bb, les dll sont inclues dans le lien qui se trouve dans cette <a href=\"#alltools\">section<\/a><\/p>\n<hr \/>\n<h3 id=\"howtouse\">Comment installer le pilote LibUsbK pour pouvoir utiliser l&rsquo;ACR122 avec les outils disponibles sur windows\u00a0 ?<\/h3>\n<ol>\n<li>Installer le pilote ACR 122U d&rsquo;origine dispo ici : <a href=\"https:\/\/www.acs.com.hk\/en\/driver\/3\/acr122u-usb-nfc-reader\/\">https:\/\/www.acs.com.hk\/en\/driver\/3\/acr122u-usb-nfc-reader\/<\/a><\/li>\n<li>T\u00e9l\u00e9charger libusbk : <a href=\"https:\/\/sourceforge.net\/projects\/libusbk\/\">https:\/\/sourceforge.net\/projects\/libusbk\/<\/a><\/li>\n<li>Installer le pilote LibusbK comme indiqu\u00e9 ci-dessous:<\/li>\n<\/ol>\n<p>LIBUSB K 3.1.0.0 guide d&rsquo;install janvier 2022 (Mise \u00e0 jour) : <a href=\"https:\/\/github.com\/xavave\/Mifare-Windows-Tool\/issues\/27#issuecomment-1013955059\">https:\/\/github.com\/xavave\/Mifare-Windows-Tool\/issues\/27#issuecomment-1013955059<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-945 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk1.jpg\" alt=\"\" width=\"411\" height=\"338\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk1.jpg 519w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk1-300x247.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk1-150x123.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk1-182x150.jpg 182w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-948 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk4.jpg\" alt=\"\" width=\"470\" height=\"385\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk4.jpg 526w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk4-300x246.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk4-150x123.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk4-183x150.jpg 183w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-946 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk2.jpg\" alt=\"\" width=\"442\" height=\"364\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk2.jpg 519w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk2-300x247.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk2-150x123.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk2-182x150.jpg 182w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/h2>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-947 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk3.jpg\" alt=\"\" width=\"467\" height=\"389\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk3.jpg 519w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk3-300x250.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk3-150x125.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/lisbusbk3-180x150.jpg 180w\" sizes=\"auto, (max-width: 467px) 100vw, 467px\" \/><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-949 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk5.jpg\" alt=\"\" width=\"455\" height=\"374\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk5.jpg 519w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk5-300x247.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk5-150x123.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk5-182x150.jpg 182w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/p>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-950 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk6.jpg\" alt=\"\" width=\"445\" height=\"305\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk6.jpg 569w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk6-300x206.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk6-150x103.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk6-219x150.jpg 219w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/h2>\n<h2><strong style=\"font-size: 1.8em;\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-951 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk7.jpg\" alt=\"\" width=\"457\" height=\"315\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk7.jpg 569w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk7-300x207.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk7-150x103.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusbk7-218x150.jpg 218w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/strong><\/h2>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-871\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc.jpg\" alt=\"\" width=\"1219\" height=\"294\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc.jpg 1219w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc-300x72.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc-768x185.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc-1024x247.jpg 1024w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc-150x36.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libnfc-250x60.jpg 250w\" sizes=\"auto, (max-width: 1219px) 100vw, 1219px\" \/><\/p>\n<hr id=\"howtocrosscompile\" \/>\n<p>Comment cross compiler les logiciels pour windows 64 bits<\/p>\n<hr \/>\n<h3>Mfoc (<a href=\"https:\/\/github.com\/nfc-tools\/mfoc\">https:\/\/github.com\/nfc-tools\/mfoc<\/a>) cross-compilation pour windows :<\/h3>\n<p>sur Linux Ubuntu en utilisant build_mfoc.sh :<\/p>\n<p>contenu du fichier\u00a0 build_mfoc.sh (\u00e0 enregistrer sur votre pc):<\/p>\n<pre class=\"wrap:true lang:sh decode:true \" title=\"build_mfoc.sh\">MAIN_FILE=mfoc\r\nLIBNFC=libnfc\r\nCFLAGS=`pkg-config --cflags ${LIBNFC}`\r\nCFLAGS_LIBNFC=`pkg-config --cflags libnfc | cut -d ' ' -f 1`\/${LIBNFC}\r\n\r\nx86_64-w64-mingw32-gcc -s -Wl,--allow-multiple-definition .\/${MAIN_FILE}.c .\/mfoc.c .\/mifare.c .\/slre.c .\/nfc-utils.c .\/crapto1.c .\/crypto1.c .\/bin\/libnfc.lib ${CFLAGS} ${CFLAGS_LIBNFC} -o .\/bin\/${MAIN_FILE}_x64.exe<\/pre>\n<p>ensuite lancer ces commandes :<\/p>\n<pre class=\"wrap:true lang:sh decode:true\">cd mfoc\/src\r\n\r\nchmod +x build_mfoc.sh\r\n\r\n.\/build_mfoc.sh<\/pre>\n<hr \/>\n<h3>Cropto1_bs (<a href=\"https:\/\/github.com\/vk496\/cropto1_bs\">https:\/\/github.com\/vk496\/cropto1_bs<\/a>) cross compilation sur windows : (compil\u00e9 sur windows 64 avec\u00a0 msys2 dispo ici : <a href=\"http:\/\/www.msys2.org\/\">http:\/\/www.msys2.org\/<\/a> &#8211;&gt; version\u00a0 x86-x64)<\/h3>\n<p>Remarque : Pour installer gcc sur msys2 cet article peut \u00eatre utile : <a href=\"https:\/\/www.devdungeon.com\/content\/install-gcc-compiler-windows-msys2-cc\">https:\/\/www.devdungeon.com\/content\/install-gcc-compiler-windows-msys2-cc<\/a><\/p>\n<p>commande de compilation\/linking :<\/p>\n<pre class=\"wrap:true lang:sh decode:true\">x86_64-w64-mingw32-gcc-9.2.0 -o cropto1_bs util.o main.o parity.o ui.o cmdhfmfhard.o util_posix.o crapto1\/crapto1.o crapto1\/crypto1.o hardnested\/hardnested_bruteforce.o hardnested\/tables.o C:\/libnfc-build\/libnfc\/libnfc.lib hardnested\/hardnested_bf_core_NOSIMD.o hardnested\/hardnested_bitarray_core_NOSIMD.o hardnested\/hardnested_bf_core_MMX.o hardnested\/hardnested_bitarray_core_MMX.o hardnested\/hardnested_bf_core_SSE2.o hardnested\/hardnested_bitarray_core_SSE2.o hardnested\/hardnested_bf_core_AVX.o hardnested\/hardnested_bitarray_core_AVX.o hardnested\/hardnested_bf_core_AVX2.o hardnested\/hardnested_bitarray_core_AVX2.o hardnested\/hardnested_bf_core_AVX512.o hardnested\/hardnested_bitarray_core_AVX512.o -lz -lm -LC:\/msys64\/usr\/share\/readline -lpthread -llzma<\/pre>\n<hr \/>\n<h3>mfcuk (<a href=\"https:\/\/github.com\/DrSchottky\/mfcuk\">https:\/\/github.com\/DrSchottky\/mfcuk<\/a>) cross compilation pour windows (depuis Linux ubuntu):<\/h3>\n<p>build_mfcuk.sh :<\/p>\n<pre class=\"wrap:true lang:sh decode:true\">MAIN_FILE=mfcuk\r\nLIBNFC=libnfc\r\nCFLAGS=`pkg-config --cflags ${LIBNFC}`\r\nCFLAGS_LIBNFC=`pkg-config --cflags libnfc | cut -d ' ' -f 1`\/${LIBNFC}\r\n\r\nx86_64-w64-mingw32-gcc  .\/${MAIN_FILE}.c .\/mfcuk_mifare.c .\/mfcuk_utils.c .\/mifare.c .\/nfc-utils.c .\/mfcuk_finger.c .\/crapto1.c .\/crypto1.c .\/bin\/libnfc.lib ${CFLAGS} ${CFLAGS_LIBNFC} -o .\/bin\/${MAIN_FILE}_keyrecovery_darkside.exe<\/pre>\n<hr \/>\n<h3>nfc-mfcclassic (<a href=\"https:\/\/github.com\/nfc-tools\/libnfc\/tree\/master\/utils\">https:\/\/github.com\/nfc-tools\/libnfc\/tree\/master\/utils<\/a>) build_nfc-mfcclassic.sh<\/h3>\n<h4>cross compilation pour windows depuis ubuntu:<\/h4>\n<pre class=\"wrap:true lang:sh decode:true\">MAIN_FILE=nfc-mfclassic\r\nLIBNFC=libnfc\r\nCFLAGS=`pkg-config --cflags ${LIBNFC}`\r\nCFLAGS_LIBNFC=`pkg-config --cflags libnfc | cut -d ' ' -f 1`\/${LIBNFC}\r\n\r\nx86_64-w64-mingw32-gcc -s -shared -Wl,--subsystem,windows   .\/${MAIN_FILE}.c .\/mifare.c .\/nfc-utils.c .\/bin\/libnfc.lib ${CFLAGS} ${CFLAGS_LIBNFC} -o .\/bin\/${MAIN_FILE}.exe<\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<h3><b>nouveau <\/b>\u00a07 janvier 2020 : mfoc version hardnested\u00a0 pour windows 64x , bas\u00e9 sur les sources suivantes :\u00a0 <a href=\"https:\/\/github.com\/vk496\/mfoc\/tree\/hardnested\">https:\/\/github.com\/vk496\/mfoc\/tree\/hardnested<\/a><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-929 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested.jpg\" alt=\"\" width=\"904\" height=\"332\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested.jpg 904w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested-300x110.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested-768x282.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested-150x55.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested-250x92.jpg 250w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>commandes de cross-compilation : (de l\u00e9gers changements ont du \u00eatre effectu\u00e9s dans les fichiers sources, notamment pour corriger les r\u00e9f\u00e9rences au dossier source nfc et au fichier err.h, ainsi que pour mettre \u00e0 jour le nom de la version)<\/h4>\n<p>(sur windows mingw64) :<\/p>\n<pre class=\"lang:sh decode:true\">autoreconf -vis<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-958 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/autoreconf.png\" alt=\"\" width=\"580\" height=\"295\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/autoreconf.png 580w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/autoreconf-300x153.png 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/autoreconf-150x76.png 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/autoreconf-250x127.png 250w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<pre class=\"lang:sh decode:true\">automake<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-959 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/automake.png\" alt=\"\" width=\"580\" height=\"129\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/automake.png 580w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/automake-300x67.png 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/automake-150x33.png 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/automake-250x56.png 250w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/p>\n<pre class=\"lang:sh decode:true\">make install<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-960 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/makeinstall.png\" alt=\"\" width=\"585\" height=\"321\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/makeinstall.png 585w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/makeinstall-300x165.png 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/makeinstall-150x82.png 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/makeinstall-250x137.png 250w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/p>\n<h3>correction des erreurs de compilation mfoc quand on lance la commande \u00ab\u00a0make install\u00a0\u00bb :<\/h3>\n<ul>\n<li>fatal error &#8211;&gt;\u00a0 nfc\/nfc.h : No such file or directory<\/li>\n<\/ul>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-977 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc.jpg\" alt=\"\" width=\"649\" height=\"377\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc.jpg 910w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc-300x174.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc-768x446.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc-150x87.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_err_nfc-250x145.jpg 250w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/h2>\n<ul>\n<li>&#8211; copier le dossier libnfc\\include\\nfc folder dans le dossier mfoc\\src\\ et mettre \u00e0 jour le fichier mfoc.c, dans le dossier mfoc.src:<\/li>\n<\/ul>\n<p>Remplacer :<\/p>\n<pre class=\"lang:c++ decode:true \">#include &lt;nfc\/nfc.h&gt;<\/pre>\n<p>par :<\/p>\n<pre class=\"lang:c++ decode:true\">#include \"nfc\/nfc.h\"<\/pre>\n<ul>\n<li>autre erreur &#8211;&gt; fatal error : err.h : No such file or directory<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-978 \" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h.jpg\" alt=\"\" width=\"709\" height=\"411\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h.jpg 910w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h-300x174.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h-768x446.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h-150x87.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/err.h-250x145.jpg 250w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/p>\n<ul>\n<li>Copier le fichier libnfc\\contrib\\win32\\err.h dans le dossier mfoc\\src\\ ainsi que le fichier nfc-utils.h dans le dossier mfoc\\src\\<\/li>\n<\/ul>\n<p>Remplacer :<\/p>\n<pre class=\"lang:c++ decode:true \"># include &lt;err.h&gt;<\/pre>\n<p>par :<\/p>\n<pre class=\"lang:c++ decode:true\"># include \"err.h\"<\/pre>\n<p>et relancer la commande :<\/p>\n<pre class=\"lang:c++ decode:true \">make-install<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-979 size-large\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-1024x458.jpg\" alt=\"\" width=\"800\" height=\"358\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-1024x458.jpg 1024w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-300x134.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-768x343.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-150x67.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-250x112.jpg 250w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done-1200x537.jpg 1200w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/done.jpg 1335w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<ul>\n<li>S&rsquo;il n&rsquo;y a plus d&rsquo;erreur ensuite ,mfoc.exe devrait maintenant avoir \u00e9t\u00e9 cr\u00e9e dans le dossier mfoc\/src<\/li>\n<\/ul>\n<hr \/>\n<ul>\n<li>copie d&rsquo;\u00e9cran du r\u00e9sultat (test de mfoc hardnested) :<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-937 aligncenter\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2.jpg\" alt=\"\" width=\"1219\" height=\"829\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2.jpg 1219w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2-300x204.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2-1024x696.jpg 1024w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2-768x522.jpg 768w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2-150x102.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/mfoc_hardnested2-221x150.jpg 221w\" sizes=\"auto, (max-width: 1219px) 100vw, 1219px\" \/><\/p>\n<hr id=\"sharpfreefare\" \/>\n<h3>Sharp free fare &#8211; 15 janvier 2020<\/h3>\n<p>J&rsquo;ai \u00e9galement mis \u00e0 jour le wrapper C# de libnfc : SharpNfc ainsi que Sharp free fare, maintenant bas\u00e9 sur la version compil\u00e9e pour windows de libnfc.dll et de libfreefare.dll:<\/p>\n<p>dispo ici : <a href=\"https:\/\/github.com\/episage\/sharp-free-fare\">https:\/\/github.com\/episage\/sharp-free-fare<\/a><\/p>\n<hr id=\"libnfc-libusb10\" \/>\n<h3>17 janvier 2020 : libnfc fork &#8211; qui fonctionne avec libusb1.0 sur Windows 64 (au lieu de l&rsquo;ancien libusb 0.1)<\/h3>\n<h4>J&rsquo;ai \u00e9galement cross-compil\u00e9 libusb1.0 sur windows 64 en utilisant ces scripts : <a href=\"https:\/\/github.com\/FPGAwars\/libusb-cross-builder\">https:\/\/github.com\/FPGAwars\/libusb-cross-builder<\/a><\/h4>\n<p>Ensuite J&rsquo;ai compil\u00e9 (apr\u00e8s quelques corrections d&rsquo;erreurs dans les r\u00e9f\u00e9rences #include du code source), libnfc avec libusb1.0 ; lien de cette version d\u00e9di\u00e9e de libnfc : <a href=\"https:\/\/github.com\/nfc-tools\/libnfc\/tree\/libusb10\">https:\/\/github.com\/nfc-tools\/libnfc\/tree\/libusb10<\/a><\/p>\n<p>Remarque : J&rsquo;ai seulement ajout\u00e9 le pilote USB pour le ACR122 dans la compilation mais rien ne vous emp\u00eache d&rsquo;en ajouter d&rsquo;autres \ud83d\ude42<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-987 size-full\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/fork.png\" alt=\"\" width=\"730\" height=\"358\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/fork.png 730w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/fork-300x147.png 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/fork-150x74.png 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/fork-250x123.png 250w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>commande\u00a0 de cross-compilation sur Mingw64 (msys2):<\/p>\n<ul>\n<li>Mettre \u00e0 jour nfc.c &#8211;&gt; return \u00ab\u00a01.7.0 LIBUSB10\u00a0\u00bb;<\/li>\n<\/ul>\n<pre class=\"lang:sh decode:true\">const char *\r\nnfc_version(void)\r\n{\r\n#ifdef GIT_REVISION\r\n  return GIT_REVISION;\r\n#else\r\n  return \"1.7.0 LIBUSB10\";\r\n#endif \/\/ GIT_REVISION\r\n}<\/pre>\n<ul>\n<li>compiler &#8211;&gt;<\/li>\n<\/ul>\n<pre class=\"wrap:true lang:c# decode:true \">gcc -Dnfc_EXPORTS -DDEBUG -DDRIVER_ACR122_USB_ENABLED -c drivers\/acr122_usb.c buses\/usbbus.c chips\/pn53x.c iso14443-subr.c nfc-internal.c nfc.c target-subr.c nfc-device.c mirror-subr.c log-internal.c -I ~\/libusb\/include\/libusb-1.0 -I ~\/libnfc-libusb10\/include -I ~\/libnfc-libusb10\/contrib\/win32 -I ~\/libnfc-libusb10\/libnfc -L ~\/lisbusb\/bin\/libusb-1.0.dll.a -static -lusb-1.0<\/pre>\n<ul>\n<li>Linker &#8211;&gt;<\/li>\n<\/ul>\n<pre class=\"wrap:true lang:sh decode:true \">gcc -shared -o libnfc.dll  nfc.o target-subr.o iso14443-subr.o usbbus.o acr122_usb.o nfc-internal.o nfc-device.o pn53x.o mirror-subr.o -L ~\/lisbusb\/lib\/libusb-1.0.dll.a  -lusb-1.0<\/pre>\n<p id=\"libnfc-libusb10\" style=\"text-align: center;\">T\u00e9l\u00e9chargement\u00a0 libnfc.dll.zip qui fonctionne avec libusb 1.0 pour Windows 64:<\/p>\n<p style=\"text-align: center;\"><div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><form action=\"https:\/\/blog.avxt.fr\/?sdm_process_download=1&download_id=989\" method=\"post\" class=\"sdm-g-recaptcha-form sdm-download-form\"><div class=\"sdm-recaptcha-button\"><div class=\"g-recaptcha sdm-g-recaptcha\"><\/div><a href=\"#\" class=\"sdm_download green sdm_download_with_condition\">T\u00e9l\u00e9charger le catalogue<\/a><\/div><input type=\"hidden\" name=\"download_id\" value=\"989\" \/><\/form><\/div><\/div><\/p>\n<hr \/>\n<p style=\"text-align: center;\">contenu du zip libusb :<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-992\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusb_tree-270x300.jpg\" alt=\"\" width=\"270\" height=\"300\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusb_tree-270x300.jpg 270w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusb_tree-135x150.jpg 135w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/libusb_tree.jpg 328w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/p>\n<p style=\"text-align: center;\">T\u00e9l\u00e9charger libusb-1.0.dll et ses d\u00e9pendances pour Windows 64:<\/p>\n<p style=\"text-align: center;\"><div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><form action=\"https:\/\/blog.avxt.fr\/?sdm_process_download=1&download_id=990\" method=\"post\" class=\"sdm-g-recaptcha-form sdm-download-form\"><div class=\"sdm-recaptcha-button\"><div class=\"g-recaptcha sdm-g-recaptcha\"><\/div><a href=\"#\" class=\"sdm_download green sdm_download_with_condition\">T\u00e9l\u00e9charger le catalogue<\/a><\/div><input type=\"hidden\" name=\"download_id\" value=\"990\" \/><\/form><\/div><\/div><\/p>\n<hr \/>\n<h3 id=\"dumpconverter\">21 janvier 2020 &#8211; Convertisseur en 1 click de dumps android mifare classic &lt;&#8211;&gt;\u00a0 linux\/windows nfc- mfc classic<\/h3>\n<p><a href=\"https:\/\/github.com\/xavave\/bm-mifare-classic\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1014\" src=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/convert.jpg\" alt=\"\" width=\"369\" height=\"116\" srcset=\"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/convert.jpg 369w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/convert-300x94.jpg 300w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/convert-150x47.jpg 150w, https:\/\/blog.avxt.fr\/wp-content\/uploads\/2019\/09\/convert-250x79.jpg 250w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a><\/p>\n<p>Ce petit logiciel convertit les dumps Mifare classic tool en dumps nfc mfc classic et r\u00e9ciproquement<\/p>\n<hr \/>\n<p>Comment l&rsquo;utiliser\u00a0 : d\u00e9marrez simplement le logiciel \u00ab\u00a0mct2dmpGui.exe\u00a0\u00bb, ensuite , ouvrez le dump \u00e0 convertir en cliquant sur \u00ab\u00a0Convert\u00a0\u00bb, puis enregistrez le dump converti ou vous voulez<\/p>\n<p>Ce logiciel utilise le dotnet framework 4.7.2 , vous pouvez le t\u00e9l\u00e9charger ici, dans le menu \u00ab\u00a0releases\u00a0\u00bb: <a href=\"https:\/\/github.com\/xavave\/bm-mifare-classic\/releases\">https:\/\/github.com\/xavave\/bm-mifare-classic\/releases<\/a><\/p>\n<p>L&rsquo;application detecte automatiquement si c&rsquo;est un dump Mifare classic tool (texte) ou bien un dump nfc-mfc classic (binaire) et convertit selon le cas d&rsquo;un format vers l&rsquo;autre<\/p>\n<p>T\u00e9l\u00e9charger les sources et l&rsquo;executable sur mon github &#8211;&gt; <a href=\"https:\/\/github.com\/xavave\/bm-mifare-classic\/wiki\">https:\/\/github.com\/xavave\/bm-mifare-classic\/wiki<\/a><\/p>\n<hr id=\"alltools\" \/>\n<h3>nouveau\u00a0 22 janvier 2020\u00a0 : tous les outils cit\u00e9s dans cet article, dans un fichier zip (plus pratique), incluant le dernier nfc-mfcclassic avec l&rsquo;option C (pour les tags chinois) et l&rsquo;outil : nfc detect chinese magic card ainsi que libnfc_crypto_crack.exe &#8211;&gt; t\u00e9l\u00e9chargement :<\/h3>\n<div class=\"sdm_download_button_box_default\"><div class=\"sdm_download_link\"><form action=\"https:\/\/blog.avxt.fr\/?sdm_process_download=1&download_id=1019\" method=\"post\" class=\"sdm-g-recaptcha-form sdm-download-form\"><div class=\"sdm-recaptcha-button\"><div class=\"g-recaptcha sdm-g-recaptcha\"><\/div><a href=\"#\" class=\"sdm_download green sdm_download_with_condition\">T\u00e9l\u00e9charger le catalogue<\/a><\/div><input type=\"hidden\" name=\"download_id\" value=\"1019\" \/><\/form><\/div><\/div>\n<h5>Contenu du zip :<\/h5>\n<p>cropto1_bs.exe<br \/>\nlibgcc_s_seh-1.dll<br \/>\nliblzma-5.dll<br \/>\nlibnfc.dll<br \/>\nlibnfc_crypto_crack.exe<br \/>\nlibusb0.dll<br \/>\nlibwinpthread-1.dll<br \/>\nmfcuk_keyrecovery_darkside.exe<br \/>\nmfoc.exe<br \/>\nmfoc_hardnested.exe<br \/>\nnfc-anticol.exe<br \/>\nnfc-barcode.exe<br \/>\nnfc-dep-initiator.exe<br \/>\nnfc-dep-target.exe<br \/>\nnfc-detect-chinese-magic-card.exe<br \/>\nnfc-emulate-forum-tag2.exe<br \/>\nnfc-emulate-forum-tag4.exe<br \/>\nnfc-emulate-tag.exe<br \/>\nnfc-emulate-uid.exe<br \/>\nnfc-jewel.exe<br \/>\nnfc-list.exe<br \/>\nnfc-mfclassic.exe<br \/>\nnfc-mfsetuid.exe<br \/>\nnfc-mfultralight.exe<br \/>\nnfc-poll.exe<br \/>\nnfc-read-forum-tag3.exe<br \/>\nnfc-relay-picc.exe<br \/>\nnfc-relay.exe<br \/>\nnfc-scan-device.exe<br \/>\npn53x-diagnose.exe<br \/>\npn53x-sam.exe<br \/>\npn53x-tamashell.exe<br \/>\nsolve_bs.exe<\/p>\n<div class=\"sdm_download_count\"><span class=\"sdm_count_number\">3483<\/span><span class=\"sdm_count_string\"> t\u00e9l\u00e9chargements<\/span><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nfc Tools sur Windows &#8211; Table des mati\u00e8res Introduction &#8211;&gt;\u00a0lien Comment utiliser l&rsquo;ACR122U avec libusbK &#8211;&gt; lien Mifare One Tool en anglais&#8211;&gt; lien Comment cross-compiler les commandes NFC sur Windows 64 bits &#8211;&gt; lien Sharp Free fare (encapsuleur libfreefare en dotnet) + mise \u00e0 jour de SharpNfc &#8211;&gt; lien libnfc \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/blog.avxt.fr\/fr\/libnfc-and-nfc-utils-binaries-on-windows-10\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":1032,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[209],"tags":[163,157,158,199,198,173,174,172,171,160,161,196,154,162,183,170,169,168,197,178,167,165,164,156,176,175,166,155,159],"class_list":["post-870","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nfc-rfid","tag-1-7-1","tag-acr122u","tag-binaries","tag-converter","tag-convertisseur","tag-cropto1bs","tag-cropto1bs-exe","tag-cropto1_bs","tag-cropto1_bs-exe","tag-cross-compile","tag-dll","tag-dump","tag-libnfc","tag-libnfc-dll","tag-mct","tag-mfcuk","tag-mfcuk-exe","tag-mfoc","tag-mfoc-hardnested","tag-mfoc-hardnested-windows","tag-mfoc-exe","tag-mifare-one-tool-english","tag-mifareonetool","tag-nfc-list-exe","tag-nfc-mfcclassic","tag-nfc-mfcclassic-exe","tag-nfcbin-64","tag-windows","tag-windows-10-64"],"jetpack_featured_media_url":"https:\/\/blog.avxt.fr\/wp-content\/uploads\/2020\/01\/libfreefare.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/comments?post=870"}],"version-history":[{"count":90,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/posts\/870\/revisions\/1180"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/media\/1032"}],"wp:attachment":[{"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.avxt.fr\/fr\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}