iceman1001
69f40df005
unified some minor hint text messages. added a ndef detection to hf mfu dump, hf mfu view, hf mfu eview in order to suggest that there is actually a ndefmessage
2026-04-19 08:52:16 +07:00
kormax
4a2e161954
Move common functions related to Mifare GetVersion to a dedicated Mifare Prime module
2026-04-16 18:55:34 +03:00
kormax
6c26f11034
Parse I2C protocol support for Mifare Prime GetVersion
2026-04-16 18:34:58 +03:00
Philippe Teuwen
88d20bd4f2
make style
2026-04-13 09:35:02 +02:00
team-orangeBlue
877e5c6b70
bugfix #2
...
oops #2
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com >
2026-04-11 00:57:28 +03:00
team-orangeBlue
1cb843a22b
Fix bug in ACL block-RO checker
...
The code as-is would bug out like below:
```
(input) --blk 255 -d ...f0f0f0...
[=] Sector trailer (ST) write detected
[!] ⚠️ Strict ReadOnly Access Conditions on block 240 detected
[!] ⚠️ Strict ReadOnly Access Conditions on block 241 detected
[!] ⚠️ Strict ReadOnly Access Conditions on block 242 detected
```
This is incorrect. in 16-block sectors, ACLs cover chunks of 5 blocks at once.
It should (and now does) look like:
```
[=] Sector trailer (ST) write detected
[!] ⚠️ Strict ReadOnly Access Conditions on blocks 240-244 detected
[!] ⚠️ Strict ReadOnly Access Conditions on blocks 245-249 detected
[!] ⚠️ Strict ReadOnly Access Conditions on blocks 250-254 detected
```
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com >
2026-04-11 00:38:14 +03:00
team-orangeBlue
394aec40e2
Add ST+ACL check to hf mfp wrbl
...
Sector trailers are now checked for errors.
Writes should not go through if for whatever reason ACLs provided to write are invalid.
Reminder that ACLs are checked on the 4-byte method of MFP with the encrypted-only exchange byte.
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com >
2026-04-11 00:14:36 +03:00
team-orangeBlue
f8f6216958
Correct a typo in helptext
...
Mifare Plus ACLs are 4 bytes, not 3... oops
Fixed typo in `hf mfp acl`
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com >
2026-04-11 00:11:41 +03:00
team-orangeBlue
9cf2f49d10
Add ACL command
...
Mifare Plus has an extra byte for ACL payloads.
That byte controls if data exchange can be plaintext or must be encrypted.
Support for decoding is added in this commit.
Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com >
2026-04-09 23:17:44 +03:00
kormax
fa08075ded
Add ISO14A_CLEARTRACE param to explicitly clear 14a trace
2026-03-24 23:24:22 +02:00
Tomas Nilsson
7159711734
Auto-detect key files by UID in hf mfp dump
...
When no --keys or --mfc-keys arguments are given, automatically
look for hf-mfp-<UID>-key.json and hf-mf-<UID>-key.bin files,
matching the output of hf mfp chk --dump and hf mf chk --dump.
Fail with helpful message if no keys are available, matching
the behaviour of hf mf dump.
2026-03-08 19:18:32 +01:00
Tomas Nilsson
03d6da87e2
Simplify hf mfp dump: remove key probing, load-and-read only
...
Restructure hf mfp dump to match hf mf dump pattern: load keys
from files, read sectors, save. Remove all key probing/checking
logic (use hf mfp chk and hf mf chk separately for key discovery).
Use MF_KEY_A/MF_KEY_B defines instead of magic numbers.
Replace custom JSON parser with existing loadFileJSON infrastructure.
2026-03-08 18:35:37 +01:00
Tomas Nilsson
3e8d52db58
Optimize hf mfp dump: phased SL classification and quiet probing
...
Restructure dump into 4 phases:
1. Classify sectors via single MFC probe (SL3 vs SL1)
2. AES dictionary only on SL3 sectors
3. MFC dictionary only on SL1 sectors
4. Read with found keys
Suppress firmware debug output during key probing to prevent
auth error message flood, matching MifareChkKeys behavior.
2026-03-07 17:23:59 +01:00
Tomas Nilsson
44a40064b7
Fix SL1 key probing hang in hf mfp dump
...
Replace mf_check_keys (which hangs in firmware infinite retry loop)
with mf_read_sector for SL1 key probing. Defer MFC key probing to
the read phase so it only runs per-sector when SL3 auth fails.
Also fix mfcProbeKeys memory leak on early exit paths.
2026-03-07 16:41:26 +01:00
Tomas Nilsson
fded3e9cef
Implement 'hf mfp dump' command with SL1/SL3 mixed mode support
2026-03-07 15:23:48 +01:00
Darell Tan
c5028d9384
Fix for making ndefread CRC override work
...
The return value from MADCheck, which happens before MADDecode, needs to be ignored also
2025-11-04 00:53:35 +08:00
iceman1001
c3e29789a9
added a --override MAD crc check parameter to NDEF read commands
2025-08-29 13:55:00 +02:00
iceman1001
65607fc727
added Ultralight-C simulation. hf mfu sim -t 13. Use eload first. Also added support to upload UL-C dictionaries and UL-AES to spiffs memory. A lot of textual reworked across client. Unifiy texts and a bit more color ;)
2025-06-19 17:26:20 +02:00
iceman1001
79400d0779
text and style
2025-06-17 18:28:22 +02:00
iceman1001
2108ab6101
fix string formatter warning
2025-06-11 14:39:20 +02:00
iceman1001
5f2edb9bb8
reworked and improved the hf mfp chk key handling. reworked the nxp_detect_card technology function to enable other parts of the client to benefit from detecting card types. Like hf mf info or hf mf autopwn - two most common used commands. Now less waiting and more easily to know what next steps to do.
2025-06-09 15:36:44 +02:00
iceman1001
1fa5e28a38
unify text and hints for static enc nonces a bit more
2025-06-08 21:46:31 +02:00
iceman1001
ec26b6d84f
style and text. unify some parameter names
2025-06-08 20:56:01 +02:00
iceman1001
ad292e8810
unify test - step 2
2025-03-25 10:17:42 +01:00
Philippe Teuwen
c37ca881e6
a few calloc checks, still many to go
2025-03-24 11:17:40 +01:00
iceman1001
4d603a4530
unify hint text
2025-03-20 22:55:26 +01:00
iceman1001
17a8f0f9c2
text
2025-03-20 12:17:37 +01:00
iceman1001
717ceecf1f
denote MAD sectors as decimal since public documentation
2025-02-21 17:08:44 +01:00
iceman1001
cef07dedf6
code style, code clean up of redundant functions, comments, its many minor fixes across the platform. Sorry for not making 20 commits
2025-02-21 15:38:33 +01:00
iceman1001
e5293f1389
style
2025-02-18 18:42:21 +01:00
Philippe Teuwen
f26727eb28
Refactor originality checks. Notes:
...
- removed pk "NTAG424DNA, NTAG424DNATT, DESFire Light Ev2", "04B304...3B" which is a typo of "DESFire Ev2", "04B3...3A"},
- MIKRON pk currently not used because I don't know if it's for MFC, MFUL or sth else
- ST25TN pk added but currently not used, need to be implemented/tested
- ST25TV pk currently not used, need to be implemented/tested
2024-12-14 14:29:50 +01:00
Philippe Teuwen
09b31b5978
hf mfp info: fix support for real 4b cards
2024-12-09 14:41:51 +01:00
Philippe Teuwen
87266654f7
MIFARE Plus 4b UID: fix signature check
2024-12-04 08:19:17 +01:00
pingu2211
514fe677d6
rename all mifarehost functions to match style guide
2024-11-14 09:33:57 +11:00
iceman1001
ff765f569f
change out some non-breaking wait for response from some command which shouldnt have it. Sniff / simulate / bruteforce should have it. and some minor text / style
2024-10-04 10:01:50 +02:00
iceman1001
27f5941395
add waiting time out for hf mfp info
2024-10-04 09:18:39 +02:00
iceman1001
3f6ea0f0fc
style
2024-04-22 16:35:22 +02:00
iceman1001
543f8df8c0
fixes to when thing gets wrongly identified
2024-04-20 11:32:51 +02:00
iceman1001
c860bd252a
textual detection
2024-04-20 09:38:04 +02:00
iceman1001
b09c0e0d5f
textual
2024-04-20 08:47:49 +02:00
iceman1001
666f0aacc7
renamed
2024-02-09 08:46:20 +01:00
iceman1001
7c6d60e7ef
style
2024-02-03 16:05:58 +01:00
iceman1001
81ce1fd4ab
changed magic detection to use flags. Fixes previous problems with magic ntag, also renamed defines to seperate them better.
2024-02-02 15:53:57 +01:00
iceman1001
33380ad240
fix return codes
2024-01-31 21:44:23 +01:00
iceman1001
30b217be65
text
2024-01-31 13:28:37 +01:00
iceman1001
05353deb4a
unified verbose param text and fixed behavior
2024-01-18 19:46:14 +01:00
iceman1001
fda0968db2
white space and adding hf_unisniff to buildscript
2024-01-02 23:11:51 +01:00
iceman1001
238572c337
style
2024-01-01 21:52:05 +01:00
iceman1001
eb673d27b7
hf mfp dump - still a skeleton command. Need some more love. Fix #2212
2023-12-24 10:41:53 +01:00
iceman1001
f8f135a3b7
style
2023-12-18 10:11:11 +01:00