nfc-tools / mfoc-hardnested

A fork of mfoc integrating hardnested code from the proxmark
GNU General Public License v2.0
191 stars 31 forks source link

Install not working #11

Open Dutchy-79 opened 2 years ago

Dutchy-79 commented 2 years ago

Hi,

I came here because miLazyCracker did not work when installing and this has almost the same issue. I must be doing something wrong, please help me out.

┌──(root💀kali)-[/home/kali/mfoc-hardnested-master] └─# autoreconf -vis autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf configure.ac:19: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Dutchy-79 commented 2 years ago

┌──(root💀kali)-[/home/kali/mfoc-hardnested-master] └─# autoreconf -vis autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf configure.ac:19: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. autoreconf: error: /usr/bin/autoconf failed with exit status: 1

Dutchy-79 commented 2 years ago

Update: I used docker file to manually install on Kali.

Now I can read a card just like I could in miLazyCracker but after 13 default keys it stops and does not crack the card.

┌──(root💀kali)-[/home/kali/mfoc-hardnested-master] └─# ./src/mfoc-hardnested -F 1 ⨯ ATS len = -20 Found Mifare Classic 1k tag ISO/IEC 14443A (106 kbps) target: ATQA (SENS_RES): 00 04

Fingerprinting based on MIFARE type Identification Procedure:

Try to authenticate to all sectors with default keys... Symbols: '.' no key found, '/' A key found, '\' B key found, 'x' both keys found [Key: ffffffffffff] -> [................] [Key: a0a1a2a3a4a5] -> [................] [Key: d3f7d3f7d3f7] -> [................] [Key: 000000000000] -> [................] [Key: b0b1b2b3b4b5] -> [................] [Key: 4d3a99c351dd] -> [................] [Key: 1a982c7e459a] -> [................] [Key: aabbccddeeff] -> [................] [Key: 714c5c886e97] -> [................] [Key: 587ee5f9350f] -> [................] [Key: a0478cc39091] -> [................] [Key: 533cb6c723f6] -> [................] [Key: 8fd0a4f256e9] -> [................]

Sector 00 - Unknown Key A Unknown Key B Sector 01 - Unknown Key A Unknown Key B Sector 02 - Unknown Key A Unknown Key B Sector 03 - Unknown Key A Unknown Key B Sector 04 - Unknown Key A Unknown Key B Sector 05 - Unknown Key A Unknown Key B Sector 06 - Unknown Key A Unknown Key B Sector 07 - Unknown Key A Unknown Key B Sector 08 - Unknown Key A Unknown Key B Sector 09 - Unknown Key A Unknown Key B Sector 10 - Unknown Key A Unknown Key B Sector 11 - Unknown Key A Unknown Key B Sector 12 - Unknown Key A Unknown Key B Sector 13 - Unknown Key A Unknown Key B Sector 14 - Unknown Key A Unknown Key B Sector 15 - Unknown Key A Unknown Key B mfoc-hardnested: ERROR:

No sector encrypted with the default key has been found, exiting..

willem640 commented 1 year ago

To use this kind of attack, you need to know at least one key on the card. You can try mfcuk to get the first one and then use this tool. I believe it should be included in Kali or at least available in the package manager.