Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hf mf isen --collect_fm11rf08s - AcquireStaticEncryptedNonces: Auth1 error #2553

Open
robshee81 opened this issue Oct 2, 2024 · 5 comments
Assignees

Comments

@robshee81
Copy link

This is what I get:

[usb] pm3 --> hf mf isen --collect_fm11rf08s
[#] AcquireStaticEncryptedNonces: Auth1 error
[
[
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"]
],
[
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"],
["00000000", "00000000"]
],
[
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"],
["0000", "0000"]
]
]

So it stops me from being able to use the fm11rf08s_recovery.py script, as it fails at this point or run on its own and I don't know why or how to fix it.

hf mf info

[+] Sector 0 key A... FFFFFFFFFFFF
[+] Sector 0 key B... FFFFFFFFFFFF
[+] Sector 1 key A... FFFFFFFFFFFF
[#] failed reading block
[#] failed reading block
[#] failed reading block
[+] Block 0.......... DB 5C BD 4C 76 08 04 00 03 6B 67 BC 76 26 8A 90

[=] --- Fingerprint
[+] Fudan FM11RF08S

[=] --- Magic Tag Information
[=] <n/a>

[=] --- PRNG Information
[+] Prng................. weak
[+] Static enc nonce..... yes

Anyone able to shed some light? I'd love to be able to use the recovery script.

@piotrva
Copy link

piotrva commented Oct 11, 2024

Hi, I have similar problem with some Fudan cards:

Card 1 (Fingerprint: Fudan FM11RF08):

[usb] pm3 --> hf mf info

[=] --- ISO14443-a Information ---------------------
[+]  UID: 86 EA EB 2C
[+] ATQA: 00 04
[+]  SAK: 08 [2]

[=] --- Keys Information
[+] loaded  2 user keys
[+] loaded 61 keys from hardcoded default array
[+] Sector 0 key A... FFFFFFFFFFFF
[+] Sector 0 key B... FFFFFFFFFFFF
[+] Sector 1 key A... FFFFFFFFFFFF
[+] Backdoor key..... A31667A8CEC1
[+] Block 0.......... 86 EA EB 2C AB 08 04 00 02 54 17 11 53 7F DA 1D | ćŕŰ,ź....T..S.┌.

[=] --- Fingerprint
[+] Fudan FM11RF08

[=] --- Magic Tag Information
[=] <n/a>

[=] --- PRNG Information
[+] Prng....... weak

[usb] pm3 --> hf mf isen --collect_fm11rf08s_with_data --key A31667A8CEC1
[#] AcquireStaticEncryptedNonces: Auth1 error
[+] Saved to json file `C:\ProxSpace\pm3/hf-mf-86EAEB2C-nonces_with_data-006.json`

hf-mf-86EAEB2C-nonces_with_data-006.json

Card 2 (Fingerprint: Fudan based card):

[usb] pm3 --> hf mf info

[=] --- ISO14443-a Information ---------------------
[+]  UID: 6B 6F 4B 5B
[+] ATQA: 00 04
[+]  SAK: 08 [2]

[=] --- Keys Information
[+] loaded  2 user keys
[+] loaded 61 keys from hardcoded default array
[+] Backdoor key..... A31667A8CEC1
[+] Block 0.......... 6B 6F 4B 5B 14 08 04 00 62 63 64 65 66 67 68 69 | koK[....bcdefghi

[=] --- Fingerprint
[+] Fudan based card

[=] --- Magic Tag Information
[=] <n/a>

[=] --- PRNG Information
[+] Prng....... weak

[usb] pm3 --> hf mf isen --collect_fm11rf08s_with_data --key A31667A8CEC1
[#] AcquireStaticEncryptedNonces: Auth1 error
[+] Saved to json file `C:\ProxSpace\pm3/hf-mf-6B6F4B5B-nonces_with_data-006.json`

hf-mf-6B6F4B5B-nonces_with_data-006.json

For both cards I can manually read data block using the backdoor key and parameter of -c 4

Card 3 (Fingerprint: Fudan FM11RF32 ; Classic 4k):

[usb] pm3 --> hf mf info

[=] --- ISO14443-a Information ---------------------
[+]  UID: 99 CA 33 36
[+] ATQA: 00 02
[+]  SAK: 18 [2]

[=] --- Keys Information
[+] loaded  2 user keys
[+] loaded 61 keys from hardcoded default array
[+] Sector 0 key A... FFFFFFFFFFFF
[+] Sector 0 key B... FFFFFFFFFFFF
[+] Sector 1 key A... FFFFFFFFFFFF
[+] Backdoor key..... 518B3354E760
[+] Block 0.......... 99 CA 33 36 56 18 02 00 46 44 53 37 30 56 30 31 | .╩36V...FDS70V01

[=] --- Fingerprint
[+] Fudan FM11RF32

[=] --- Magic Tag Information
[=] <n/a>

[=] --- PRNG Information
[+] Prng....... weak

[usb] pm3 --> hf mf isen --collect_fm11rf08s_with_data --key 518B3354E760
[+] Saved to json file `C:\ProxSpace\pm3/hf-mf-99CA3336-nonces_with_data.json`
[usb] pm3 --> script run fm11rf08s_recovery.py
[+] executing python C:\ProxSpace\pm3\proxmark3\client\pyscripts/fm11rf08s_recovery.py
[+] args ''
UID: 99CA3336
Getting nonces...
Generating first dump file
Data have been dumped to `hf-mf-99CA3336-dump.bin`
----Step 1:  0 minutes  4 seconds -----------
Loading mfc_default_keys.dic
Running staticnested_1nt & 2x1nt when doable...
Looking for common keys across sectors...
Computing needed time for attack...
----Step 2:  0 minutes 19 seconds -----------
Still about 12 minutes 10 seconds to run...
Brute-forcing keys... Press any key to interrupt

[+] found keys:

[+] -----+-----+--------------+---+--------------+----
[+]  Sec | Blk | key A        |res| key B        |res
[+] -----+-----+--------------+---+--------------+----
[+]  000 | 003 | ------------ | 0 | ------------ | 0
[+]  001 | 007 | ------------ | 0 | ------------ | 0
[+]  002 | 011 | ------------ | 0 | ------------ | 0
[+]  003 | 015 | ------------ | 0 | ------------ | 0
[+]  004 | 019 | ------------ | 0 | ------------ | 0
[+]  005 | 023 | ------------ | 0 | ------------ | 0
[+]  006 | 027 | ------------ | 0 | ------------ | 0
[+]  007 | 031 | ------------ | 0 | ------------ | 0
[+]  008 | 035 | ------------ | 0 | ------------ | 0
[+]  009 | 039 | ------------ | 0 | ------------ | 0
[+]  010 | 043 | ------------ | 0 | ------------ | 0
[+]  011 | 047 | ------------ | 0 | ------------ | 0
[+]  012 | 051 | ------------ | 0 | ------------ | 0
[+]  013 | 055 | ------------ | 0 | ------------ | 0
[+]  014 | 059 | ------------ | 0 | ------------ | 0
[+]  015 | 063 | ------------ | 0 | ------------ | 0
[+]  032 | 131 | ------------ | 0 | ------------ | 0
[+] -----+-----+--------------+---+--------------+----
[+] ( 0:Failed / 1:Success )

[+] Generating binary key file
[+] Found keys have been dumped to `hf-mf-99CA3336-key.bin`
[=]  --[ FFFFFFFFFFFF ]-- has been inserted for unknown keys
[+] Generating final dump file
[+] Data have been dumped to `hf-mf-99CA3336-dump.bin`
----Step 3: 22 minutes 12 seconds -----------
---- TOTAL: 22 minutes 36 seconds -----------

[+] finished fm11rf08s_recovery.py

hf-mf-99CA3336-nonces_with_data-003.json

@doegox
Copy link
Contributor

doegox commented Oct 14, 2024

@robshee81 did you try on the latest version? do you still encounter the same issue?
sometimes some distance between the reader and card may help.

@doegox
Copy link
Contributor

doegox commented Oct 14, 2024

@piotrva the script is only meant to be run on FM11RF08S, not on FM11RF08 or FM11RF32 (or even older Fudan 62..69)

@82ghost82
Copy link

82ghost82 commented Nov 4, 2024

add me to the party.
The recovery script works well and recovers the key (nonces with data file contains correct data) but hf mf isen --collect_fm11rf08s is giving auth1 error and generates a nonces file with zeroes. I'm on latest version (3402e7f)

[usb] pm3 --> hf mf isen --collect_fm11rf08s
[#] AcquireStaticEncryptedNonces: Auth1 error
[+] Saved to json file `C:\ProxSpace\pm3/hf-mf-3232BBF4-nonces.json`
[usb] pm3 --> hf mf info

[=] --- ISO14443-a Information ---------------------
[+]  UID: 32 32 BB F4
[+] ATQA: 00 04
[+]  SAK: 08 [2]

[=] --- Keys Information
[+] loaded  2 user keys
[+] loaded 61 keys from hardcoded default array
[+] Backdoor key..... A396EFA4E24F
[+] Block 0.......... 32 32 BB F4 4F 08 04 00 04 3B 5B 14 F6 EE 7D 90 | 22╗¶O....;[.÷¯}.

[=] --- Fingerprint
[+] Fudan FM11RF08S

[=] --- Magic Tag Information
[=] <n/a>

[=] --- PRNG Information
[+] Prng....... weak
[+] Static enc nonce... yes

@doegox
Copy link
Contributor

doegox commented Nov 4, 2024

add me to the party. The recovery script works well and recovers the key (nonces with data file contains correct data) but hf mf isen --collect_fm11rf08s is giving auth1 error

That's normal.
Your card doesn't have a default key in first sector.
You can use the backdoor key to collect the nonces:
hf mf isen --collect_fm11rf08s -c 4 -k A396EFA4E24F

I now realize this must be the same issue for @robshee81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants