Commit graph

23 commits

Author SHA1 Message Date
Philippe Teuwen 88308ea727 typos 2021-10-10 01:35:45 +02:00
iceman1001 602c9d1542 added some default generators 2021-02-20 13:04:58 +01:00
Anže Jenšterle cd36770c5e
make style 2021-02-09 16:56:55 +01:00
iceman1001 63739b25d3 started to add touch nd go keygen algo from metrodroid 2021-02-04 22:02:07 +01:00
iceman1001 3f4a98901d analyze nuid - now uses cliparser, and refactored to generators 2021-01-09 11:43:49 +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
Philippe Teuwen c3c59e35cb make style 2020-09-30 14:27:19 +02:00
iceman1001 c0d5b2427c fix coverity 2020-09-26 14:54:11 +02:00
iceman1001 1aa9600048 add white cloner pwdgen algo (thanks to @paleopterix!) 2020-09-19 11:08:01 +02:00
iceman1001 9883343ccc cppchecker 2020-06-02 13:03:11 +02:00
iceman1001 cb56ca37ff make cppchecker happier 2020-05-13 17:31:50 +02:00
Philippe Teuwen 9847b77c83 fix cast align warning 2020-05-04 23:32:04 +02:00
Philippe Teuwen 9358554884 stricter warnings, wip 2020-05-03 00:33:28 +02:00
Philippe Teuwen 94192d0976 make style 2020-04-16 09:01:14 +02:00
iceman1001 eab2ebafae added pwdgen test 2020-03-17 17:12:27 +01:00
iceman1001 f761874347 cppcheck macro sizeof 2020-03-13 14:13:59 +01:00
iceman1001 08f40ef310 fix: hf mfu pwdgen - xyz 2020-03-13 12:09:11 +01:00
iceman1001 ed67936892 style 2020-01-12 17:28:12 +01:00
iceman1001 a459d15093 fix: osx doesnt need own bswap.. 2020-01-09 23:33:23 +01:00
iceman1001 57f026312b Chg: generators from luascripts into client 2020-01-09 22:58:12 +01:00
iceman1001 2a0d1557e1 style 2020-01-07 22:18:27 +01:00
iceman1001 01f215a924 Chg: hooked up generator 2020-01-02 15:29:15 +01:00
iceman1001 1c98888ee5 Chg: key gen algo refactoring. This will help in next step when implementing new json key template formats 2020-01-02 11:42:57 +01:00