merlokk
46a294d585
core works
2021-07-15 20:14:02 +03:00
merlokk
92a0639ba8
fix
2021-07-15 15:26:25 +03:00
merlokk
557fc5bb97
changekey command sketch
2021-07-15 14:54:15 +03:00
merlokk
3eb8523079
key version
2021-07-15 14:53:48 +03:00
merlokk
480bd87207
make style
2021-07-13 18:20:22 +03:00
merlokk
1b3e34c928
createapp fully works
2021-07-13 18:13:29 +03:00
merlokk
5a72b53676
fix DesfireCommandEx
2021-07-13 17:36:27 +03:00
merlokk
e00fc93c20
createfile works
2021-07-13 16:51:50 +03:00
merlokk
89450c2fee
commands refactoring
2021-07-13 11:56:12 +03:00
merlokk
afbe5deda2
commands refactoring
2021-07-13 00:59:07 +03:00
merlokk
8e68dafa3a
freemem conditions
2021-07-12 23:53:38 +03:00
merlokk
6442223937
getfreemem
2021-07-12 22:46:55 +03:00
merlokk
9c63d09179
cmdcode
2021-07-12 22:40:22 +03:00
merlokk
e03501bc86
formatpicc command
2021-07-12 22:38:25 +03:00
merlokk
9c320dc241
getkeyversion works
2021-07-12 18:45:59 +03:00
merlokk
55b6ff8e05
make select-and-authenticate function
2021-07-12 17:53:17 +03:00
merlokk
7cb089f11b
350861
2021-07-12 11:19:48 +03:00
merlokk
a3acb921c7
350563
2021-07-12 11:18:55 +03:00
merlokk
e4bdecf30e
style
2021-07-11 18:57:44 +03:00
merlokk
cc3883a770
ev1/enc tx side works
2021-07-11 18:27:29 +03:00
merlokk
d8a8c015bc
channel d40/encode works
2021-07-11 18:14:27 +03:00
merlokk
5367cb4e23
CmdHF14ADesChKeySettings command
2021-07-10 16:05:40 +03:00
merlokk
e54f0e3a33
move crc to new file
2021-07-10 15:10:15 +03:00
merlokk
67d7d29d74
CmdHF14ADesGetKeySettings works
2021-07-10 15:07:51 +03:00
merlokk
cbffdd7552
add print keysettings
2021-07-09 19:26:15 +03:00
merlokk
d67ea92e2e
implement check channel, add 2 new commands
2021-07-09 18:04:27 +03:00
merlokk
f606cc5fb5
added check channel
2021-07-09 18:03:34 +03:00
Oleg Moiseenko
da9fff22c9
Merge pull request #1361 from merlokk/desfire_tests
...
add test command for desfire
2021-07-09 16:38:29 +03:00
merlokk
48a9636679
style
2021-07-09 15:56:18 +03:00
merlokk
8403624bb1
cmac tests
2021-07-09 15:50:40 +03:00
merlokk
fff1c8fae1
add test command and crc tests
2021-07-09 15:15:16 +03:00
merlokk
370c4cf5a4
make style
2021-07-09 14:43:12 +03:00
merlokk
08d8ac4f9f
fix bug with false-positive crc16 and remove debug
2021-07-09 14:01:57 +03:00
merlokk
77a66a024b
remove debug
2021-07-09 14:01:22 +03:00
merlokk
bed25108f6
d40/enc works
2021-07-09 13:14:42 +03:00
merlokk
a7f39a1b79
move crc search function to desfirecrypto
2021-07-09 13:09:59 +03:00
merlokk
ec79e35dcc
add crc16 check
2021-07-09 13:08:49 +03:00
merlokk
70bedbd7d1
fix some d40 channel conditions
2021-07-09 01:41:25 +03:00
merlokk
2fde5d90ae
crc32 ok, ev1/enc channel ok.
2021-07-09 01:27:28 +03:00
merlokk
0fa708acb2
add crc32 check
2021-07-09 01:26:47 +03:00
merlokk
cf7949c1f8
fix chaining
2021-07-08 18:26:07 +03:00
merlokk
03ed6a8f05
Merge branch 'master' of https://github.com/merlokk/proxmark3i into desfire4
...
# Conflicts:
# client/src/mifare/desfiresecurechan.c
2021-07-08 17:46:06 +03:00
merlokk
8fd896478e
ev1 channel reorganized
2021-07-08 17:07:02 +03:00
merlokk
567cbadc58
add some session params
2021-07-08 17:04:44 +03:00
Philippe Teuwen
3c31ee793d
make style
2021-07-08 09:53:50 +02:00
merlokk
ebcb86570e
fix length bug in the encode/decode
2021-07-07 18:41:20 +03:00
merlokk
ca983f1473
cmac can be NULL
2021-07-07 18:06:38 +03:00
merlokk
c99002c5e0
add Get UID command
2021-07-07 17:59:42 +03:00
merlokk
d963ec8332
remove debug
2021-07-07 16:25:26 +03:00
merlokk
8102891491
ev1/mac and ev1/plain works
2021-07-07 16:18:12 +03:00
merlokk
0f0ef4435e
add mac length and fix encode/decode
2021-07-07 16:17:35 +03:00
merlokk
857ce0ea17
fix multiple sprint_hex
2021-07-07 16:16:45 +03:00
merlokk
ae53e38335
add application create/delete commands
2021-07-06 18:41:52 +03:00
merlokk
fffef000ea
mac des/ev1 calculated
2021-07-06 16:46:05 +03:00
merlokk
5f0f6b8032
update crypto encode/decode
2021-07-06 16:22:01 +03:00
merlokk
c22050b638
create new desfirecrypto
2021-07-06 12:39:06 +03:00
merlokk
20696fb44a
make style
2021-07-06 12:16:19 +03:00
merlokk
0a51eb445d
add mac sketch
2021-07-06 12:05:59 +03:00
merlokk
d2491d342d
move secure channel functions to separate file
2021-07-05 19:31:42 +03:00
merlokk
164a1db780
Merge branch 'desf_update' of https://github.com/merlokk/proxmark3i into desf_update
2021-07-05 14:15:58 +03:00
merlokk
e9b8e18430
remove key_size
2021-07-05 14:15:39 +03:00
Oleg Moiseenko
6671563fb9
Merge branch 'master' into desf_update
2021-07-05 14:02:15 +03:00
merlokk
96d18a1cd7
splitbysize works correctly in the all the cases
2021-07-05 14:00:51 +03:00
merlokk
003a0b0de4
splitbysize now put length of message at the first bytes of array's memory
2021-07-05 12:40:07 +03:00
merlokk
5937fd4217
added lib
2021-07-05 12:12:42 +03:00
merlokk
dece2b1bbd
delete des from desfire_crypto
2021-07-05 12:09:08 +03:00
merlokk
1aedfc7b6e
ev1 mac decode placeholder
2021-07-04 22:37:27 +03:00
merlokk
5d8fa054e5
added channel logic to d40 mode
2021-07-04 22:16:43 +03:00
merlokk
aa8c4b3dca
secure channel sketch
2021-07-04 17:49:11 +03:00
merlokk
fce8affd48
fix des authentication
2021-07-04 15:43:57 +03:00
merlokk
1adfad07bd
move des encrypt/decrypt to lib
2021-07-04 14:14:43 +03:00
merlokk
db87af3bf8
Revert "fix DesfireAuthenticate for d40/ev1 mode"
...
This reverts commit 430f82730d
.
2021-07-04 14:00:35 +03:00
merlokk
430f82730d
fix DesfireAuthenticate for d40/ev1 mode
2021-07-04 13:38:12 +03:00
merlokk
6124b49c99
DesfirePrintContext prints session state
2021-07-04 12:47:09 +03:00
merlokk
2abd930ef7
simplify cliparser optinlist. added mfdes default
2021-07-04 12:20:09 +03:00
merlokk
fe5f9ec9d5
native channel works
2021-07-04 11:21:31 +03:00
merlokk
1b2442ec36
regactoring desfire commands. textual fixes
2021-07-03 17:31:12 +03:00
merlokk
0d00f56777
CmdHF14ADesGetAppNames works
2021-07-03 13:11:17 +03:00
merlokk
acca624752
added cli text options to command
2021-07-03 00:08:45 +03:00
merlokk
7af924eadd
add get key size function
2021-07-03 00:07:55 +03:00
merlokk
0aad993711
remove comments and text fixes
2021-07-02 18:17:21 +03:00
merlokk
d354ac90fd
fix warning
2021-07-02 18:07:46 +03:00
merlokk
636a1dd457
DesfireGetAIDList works
2021-07-02 18:06:13 +03:00
merlokk
e5d24ff81f
authentication works
2021-07-02 17:37:15 +03:00
merlokk
b5ee999c73
rename GetErrorString -> DesfireGetErrorString
2021-07-01 20:47:02 +03:00
merlokk
73db86bcc7
exchange returns result. select works
2021-07-01 20:32:04 +03:00
merlokk
ecfcc21ded
select works (somehow)
2021-07-01 20:06:33 +03:00
merlokk
2fa6c4643e
desfire channel sketch
2021-07-01 19:53:57 +03:00
iceman1001
e2ca0a4abd
style
2021-06-24 18:47:11 +02:00
iceman1001
ffddfea841
textual
2021-06-24 15:09:11 +02:00
iceman1001
c522de5b79
added "hf mf gview" to view contents of a magic gen3 gtu card
2021-06-24 14:59:33 +02:00
mwalker33
bcc137af1d
Update desfire_crypto.c
...
Coverty 344484 - ensure AES IV is at least 16 bytes long.
2021-06-22 18:55:23 +10:00
iceman1001
ba76aabdf8
hf mf fchk - output style
2021-06-21 09:15:18 +02:00
iceman1001
0f6b6cb650
fix coverity CID 349331
2021-06-21 07:30:46 +02:00
iceman1001
f6534e18be
style
2021-06-20 16:36:31 +02:00
Philippe Teuwen
323c391f4d
nfc commands
2021-05-30 14:23:13 +02:00
iceman1001
59b86af1a8
fix #1286 - wrong pwd/key length checks
2021-05-24 21:54:09 +02:00
iceman1001
8bf5a99bca
codestyle prefer calloc
2021-05-19 18:07:19 +02:00
iceman1001
3418d747d9
fix cppchecker
2021-05-07 11:58:39 +02:00
iceman1001
d2646122e7
style
2021-04-16 17:10:08 +02:00
iceman1001
96f8cad9a5
hf mf decrypt - now use cliparser
2021-04-11 18:18:13 +02:00
iceman1001
e448d58291
hf mf csetuid - now supports cliparser. Also experimental 7byte support. Not seen one in the wild. untested
2021-04-11 12:48:06 +02:00
iceman1001
916e5d7ba2
versbose text
2021-04-10 08:05:33 +02:00
iceman1001
007b916643
style
2021-04-08 11:08:39 +02:00
Ryan Saridar
e223258aa2
Fix error typo
2021-04-07 22:17:57 +01:00
iceman1001
871820f8f7
fixing padding @anon
2021-04-07 09:13:45 +02:00
Iceman
1d6b4b2722
Merge pull request #1230 from VortixDev/VortixDev-patch-mfpauth
...
Fix mfpauth error printout
2021-03-31 08:57:54 +02:00
Ryan Saridar
b2f535f788
Make error verbose
2021-03-31 02:45:37 +01:00
Ryan Saridar
2f0b944554
Fix error byte index
2021-03-31 02:42:03 +01:00
iceman1001
62031e640c
swap arrays
2021-03-30 09:34:17 +02:00
iceman1001
b7be78a8fb
cbc is already done in mifare_cypher_single_block (anon)
2021-03-29 21:52:36 +02:00
iceman1001
f0510cc0d5
style
2021-03-27 10:21:54 +01:00
iceman1001
ad2b0879fc
added: mem spiffs view - to view a file on SPIFFS\n mem spiffs dump - now uses cliparser and NG
2021-03-09 14:38:31 +01:00
iceman1001
f5aa78e668
cppchecker shadow
2021-02-24 00:02:59 +01:00
iceman1001
9293a25e3e
hf 14a info - add MFC EV1 signature checks
2021-02-19 13:39:35 +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
Ave
7c5e3a29de
Fix old UID display on hf mf csetuid
2020-11-15 20:14:08 +03:00
iceman1001
0f4e31bfb0
adapt return codes
2020-11-12 21:51:05 +01:00
iceman1001
243d509203
remove dump.c step2
2020-11-12 18:43:03 +01: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
55fa5e7c35
make style
2020-10-11 22:40:05 +02:00
iceman1001
02df6ebbf7
bad memcpy based on size
2020-10-06 23:45:04 +02:00
Philippe Teuwen
31909ff140
text
2020-10-06 12:01:11 +02:00
Philippe Teuwen
9c856fd9f4
Gen3 detection: be prudent, false positives are possible
2020-10-05 22:33:33 +02:00
Philippe Teuwen
7d4c6e8faa
Fix Gen3 detection bug against MFUL
2020-09-23 12:25:30 +02:00
iceman1001
8b2279dd05
fix a potential overflow
2020-09-18 19:50:45 +02:00
Philippe Teuwen
ecbcba18dd
identify gen3
2020-09-11 18:17:58 +02:00
iceman1001
28ecc8fea8
renamed gen3, textual
2020-09-11 16:38:28 +02:00
iceman1001
5b695153b6
improved staticnonce tristate processing
2020-09-11 16:15:58 +02:00
iceman1001
866f4b6313
hf 14a info - ntag21x identification
2020-09-10 20:40:12 +02:00
iceman1001
25c45ef659
textual
2020-09-10 16:20:29 +02:00
iceman1001
9ced99a853
cident super card
2020-09-10 01:31:54 +02:00
iceman1001
5d6f8053c6
textual
2020-09-07 12:11:21 +02:00
iceman1001
5d357a6039
style
2020-09-07 10:39:15 +02:00
Eloff
70be7ef4d8
Magic gen 3 cards support
2020-09-05 22:32:11 +03:00
iceman1001
71fc3e18d9
fixing return codes for Autopwn, added staticnested to autopwn
2020-09-02 12:16:11 +02:00
iceman1001
2089edbba9
adapt chunksize as we progress
2020-08-31 03:05:18 +02:00
iceman1001
11695eb55c
textual
2020-08-31 01:16:56 +02:00
iceman1001
4cb6e0d42e
remore magic wipe
2020-08-30 02:08:17 +02:00
iceman1001
e3da69410b
reenable manual wipe
2020-08-30 02:06:07 +02:00
iceman1001
110a173e6d
no printf
2020-08-29 14:38:46 +02:00
Philippe Teuwen
4ed57c7c4d
make style
2020-08-13 12:25:04 +02:00
iceman1001
d5b379207e
fix coverity
2020-06-29 11:22:09 +02:00
iceman1001
5d08dae554
fix coverity 290769, 290768
2020-06-29 11:10:02 +02:00
iceman1001
56e171b9dc
chg: data ndef - now decodes w and wo NDEF header
2020-06-21 16:34:56 +02:00
Philippe Teuwen
f69739da79
make style
2020-06-19 18:34:47 +02:00
Bjoern Kerler
e7b2dbd5e8
Remove unnecessary crc
2020-06-13 17:58:47 +02:00
Bjoern Kerler
9a07c06596
Fix htole32 issue
2020-06-13 17:16:17 +02:00
Bjoern Kerler
631be7af32
Fixes
2020-06-13 15:11:10 +02:00