Commit Graph

105 Commits

Author SHA1 Message Date
iceman1001
d46c90b231 text 2021-03-27 10:21:27 +01:00
iceman1001
b894365647 hf mfdes info - text 2021-03-17 10:44:30 +01:00
iceman1001
68033b8e2c hf mfdes info - text 2021-03-17 10:40:05 +01:00
iceman1001
bf62e47575 fix.... 2021-02-19 17:37:41 +01:00
iceman1001
f6b1cfd64c maur pk 2021-02-19 16:56:22 +01:00
Anže Jenšterle
8760068a03 make style 2021-02-09 16:52:48 +01:00
Anže Jenšterle
cf8256979d fix code per comments 2021-02-09 16:15:52 +01:00
Anže Jenšterle
8af1cedf1f Improved MFDES AID bruteforce 2021-02-09 15:17:20 +01:00
Anže Jenšterle
6d10525c09 fixed missing parameter 2021-02-08 03:32:27 +01:00
Anže Jenšterle
99b1093702 Added actual MF DESfire enumeration 2021-02-08 01:12:14 +01:00
iceman1001
e96cfa94b6 hf mfdes getuid/info/eum - with a default cliparser 2021-01-07 11:40:10 +01:00
tcprst
1afb335478 make style 2020-11-22 19:39:54 -05:00
iceman1001
a11e2ed4a6 hf mfdes info - cmk textual ( #1062 ) 2020-11-22 23:42:00 +01:00
iceman1001
57eef7c5a9 hf mfdes.. a session flag to keep track of rf field up/down. Now selectaid/createaid/deleteaid works. However, hf mfdes auth is needed before. the rest of the commands needs to be adapted to this new style. The reason is that a "select application" command aborts a current authenticated session. So we need to authenticate and keep that on until we done. 2020-11-19 12:15:47 +01:00
iceman1001
4d28ffc014 hf mfdes deleteaid - shouldn't select before since it cancels the current session 2020-11-18 23:58:50 +01:00
iceman1001
4cafbcc259 hf mfdes - keeping track in the tag object of rf_field active status 2020-11-18 23:47:54 +01:00
iceman1001
1ae89950eb dbg printing 2020-11-14 12:40:59 +01:00
iceman1001
243d509203 remove dump.c step2 2020-11-12 18:43:03 +01:00
iceman1001
089ae507be structs needs to be PACKED 2020-11-09 15:24:19 +01:00
iceman1001
f894560325 hf mfdes fixes 2020-11-08 18:59:36 +01:00
Philippe Teuwen
f63cf02178 make style 2020-11-07 01:32:43 +01:00
iceman1001
427e7c02e8 hf mfdes auth - textual 2020-11-06 23:52:11 +01:00
iceman1001
2cc5fb383c reorder command table 2020-11-05 12:50:51 +01:00
iceman1001
786accc487 fix coverity 286660 2020-11-02 17:59:30 +01:00
iceman1001
feddfe7f43 fix coverity 303441, 303442, 303486, 286660 2020-11-02 17:55:48 +01:00
iceman1001
e91c46616a fix, coverity 303794 2020-11-02 17:27:39 +01:00
Philippe Teuwen
777cb5a8ce make style 2020-11-02 01:46:47 +01:00
Philippe Teuwen
a359e4fac4 Make use of aid_desfire info 2020-11-02 01:38:07 +01:00
NZSmartie
c9a10631de Gallagher key checking is now supported on MIFARE Desfire
Both `hf mfdes auth` and `hf mfdes chk` now support Key Diversification for
AN10922 and as special treat, Gallagher issued cards.

For `hf mfdes auth`:
```
    -d, --kdf <kdf>                Key Derivation Function (KDF) (0=None, 1=AN10922, 2=Gallagher)
    -i, --kdfi <kdfi>              KDF input (HEX 1-31 bytes)
```

And for `hf mfdes chk`:
```
    -f, --kdf <kdf>                Key Derivation Function (KDF) (0=None, 1=AN10922, Gallagher)
    -i, --kdfi <kdfi>              KDF input (HEX 1-31 bytes)
```

Examples:
- `hf mfdes auth -a 2081f4 -m 3 -t 4 -d 2 -n 2 -k 00112233445566778899aabbccddeeff`
  Will diversify the key for key `2` on AID `2081F4` for Gallagher issued cards

- `hf mfdes chk -f 1 -i 00112233 -d mfdes_default_keys`
  Will read in all the default keys from the dictionary, and diversify them
  using AN10922 with the input data `00112233`

- `hf mfdes chk -f 2 -d mfdes_default_keys`
  Will read in all the default keys from the dictionary, and diversify them
  using AN10922 but with input data generated from the card's UID, AID and
  key number.
2020-11-02 01:41:48 +13:00
NZSmartie
634c69398d Split out mfdes_get_info from CmdHF14ADesInfo
Change needed so that UID can be read for later
2020-11-02 01:09:48 +13:00
NZSmartie
5a3502920c Improve hf mfdes chk key checking and fix specifying single AID 2020-11-01 13:40:46 +13:00
NZSmartie
b788054aca Add initial suport for MIFARE Key Diversification
This adds two new options to `hf mfdes auth`

```
    -d, --kdf <kdf>                Key Derivation Function (KDF) (0=None, 1=AN10922)
    -i, --kdfi <kdfi>              KDF input (HEX 1-31 bytes)
```

By specifying `-d 1` and some kdf data `-i 00112233`, the key will be
diversified using AN10922.
2020-10-31 21:17:35 +13:00
Philippe Teuwen
fdd11c3fb2 Fix MAD decoding for DESFire 2020-10-27 20:46:51 +01:00
Philippe Teuwen
66d5181a82 dfev3 pk 2020-10-27 10:30:19 +01:00
iceman1001
470a0a5978 actually fix the list options 2020-10-09 20:46:48 +02:00
iceman1001
64a44d1e85 adapt list command to allow for options 2020-10-09 20:19:36 +02:00
Philippe Teuwen
c3c59e35cb make style 2020-09-30 14:27:19 +02:00
mwalker33
9560773e8f cliparser - round 3
updated cmdhfmfdes.c,  cmdhfmfp.c, cmdhfhfu.c, cmdlfindala.c and cmdlfmotorola.c
2020-09-30 19:38:40 +10:00
Ave
d9ccd9ee24 hfmfdes: Fix a typo 2020-09-27 19:42:26 +03:00
Ave
9c5c00d620 Allow writes up to 256 bytes with mfdes writedata
And change help text to say 256 instead of 0xFFFF.

Closes #977
2020-09-27 19:40:13 +03:00
iceman1001
42eb98cdda rename 2020-09-24 23:20:15 +02:00
iceman1001
65478867d1 add check for NTAG413 2020-09-24 23:10:46 +02:00
Philippe Teuwen
8c4076281e Fix PK secp224r1 display 2020-09-24 13:58:45 +02:00
Philippe Teuwen
ea8bfacb57 textual 2020-09-24 01:00:34 +02:00
iceman1001
2514ec740c uid 7 or 4 for desfire 2020-09-10 00:33:46 +02:00
iceman1001
5d357a6039 style 2020-09-07 10:39:15 +02:00
iceman1001
d09ed2eec0 no printf 2020-08-29 14:57:05 +02:00
Philippe Teuwen
4ed57c7c4d make style 2020-08-13 12:25:04 +02:00
iceman1001
85be784d26 ev3 detection enabled 2020-07-15 11:55:21 +02:00
iceman1001
88d4d037f1 enable EV3 tests 2020-06-30 17:59:35 +02:00