Commit Graph
25 Commits
Author SHA1 Message Date
DidierA c1416ba256 Adds MAC, UNMACed to messages, and code factorisation 2023-07-21 17:25:49 +02:00
Didier A e0493235da Merge branch 'RfidResearchGroup:master' into trace_ppss 2023-07-20 10:23:30 +02:00
DidierA e056459c03 trace list: add CID info in RATS and PPSS 2023-07-20 02:24:45 +02:00
DidierA 8543db11b5 Avoid useless loop by moving check to the default case 2023-07-19 21:46:20 +02:00
DidierA b314d1ef1c Add MIFARE Plus commands in trace list 2023-07-19 21:15:07 +02:00
DidierA fc4e912fc1 MifareFesFireGetInformation(): warningw when tag answer is too short 2023-03-03 17:54:11 +01:00
DidierA d319b0dee3 hf mfdes: Use hex in error message, consistent with cmdline 2023-03-03 16:03:30 +01:00
DidierA 13e43b1eb5 hf mfdes: Examples where using -s instead of --schann 2023-03-03 15:57:35 +01:00
DidierA 3e952b8036 bugfix: wrong text in hf mfdes list when no data exists in trace 2023-02-21 01:50:33 +01:00
DidierA 2f4167ee74 Consider different behavior of some Gen4 cards. Should fix #1822 2022-12-05 01:02:36 +01:00
DidierA c54db094cd hf_mf_ultimatecard: '-w 0' now formats whole Mifare classic 4k 2022-11-25 10:16:24 +01:00
DidierA 9a0427d4d2 Add Magic Gen4 GTU detection and symbols for Gen4 GTU protocol. 2022-11-25 10:13:33 +01:00
DidierA d4f08abec3 Change calloc() so it passes Widnows build test
Code compiles under linux (not tested yet, I have no proxmark available right now)
Previous commit fails windows build test with:

src/cmdhfmfu.c: In function 'CmdHF14AMfuESave':
src/cmdhfmfu.c:4220:19: error: array subscript 'mfu_dump_t[0]' is partly outside array bounds of 'mfu_dump_t[0]' [-Werror=array-bounds]
 4220 |         end = dump->pages ;
      |                   ^~
In function 'GetMfuDumpFromEMul',
    inlined from 'CmdHF14AMfuESave' at src/cmdhfmfu.c:4202:15:
src/cmdhfmfu.c:4105:21: note: object of size 1076 allocated by 'calloc'
 4105 |     uint8_t *dump = calloc(MFU_MAX_BYTES + MFU_DUMP_PREFIX_LENGTH, sizeof(uint8_t));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-11-23 11:40:56 +01:00
DidierA 182d167aad use calloc() 2022-11-21 22:05:24 +01:00
DidierA b857205504 Add hf mf gsave 2022-11-21 19:18:14 +01:00
DidierA 584e0ad833 Added hf mfu esave 2022-11-21 01:05:48 +01:00
DidierA 9dbd6e5f23 change help text to fit screen 2022-11-20 15:31:58 +01:00
DidierA 1d00ef797c hf 14a sim, hf mfu sim: add hint for Ultralitgh EV1 2022-11-20 01:26:42 +01:00
DidierA f828a727c9 Fix: hf 14a sim parsing args was taking tag type as number of reads if no -n option given 2022-11-20 01:01:11 +01:00
DidierA fa95119171 style: extract flags 2022-11-14 09:44:02 +01:00
DidierA ee3e4968d3 remove MifareG4ReadWrite() 2022-11-13 02:08:23 +01:00
DidierA da1ce30533 hf mf gview, gload : 2x speed
on Gen4 GTU cards, a select was made before each read or write command.
This commit adds a flag parameter to the read and write commands,
and gload and gview commands use this flag to tell when to select and end.

The trace buffer also contains the complete operation instead of the last
blokc read/write.

Speed gain:
`time ./proxmark3 -p /dev/ttyACM0 -c 'hf mf gview --4k'`
before: about 20s, now: about 7s

`time ./proxmark3 -p /dev/ttyACM0 -c 'hf mf gload --4k -f ../../../dumps/4k.bin'`
before: about 23s, now: about 10s
2022-11-13 01:37:52 +01:00
Didier Arenzana 2f49b2c8cf Merge branch 'RfidResearchGroup:master' into hf_mf_gen4_rewrite 2022-11-13 00:46:07 +01:00
Didier Arenzana 7be6d337ba Merge branch 'RfidResearchGroup:master' into hf_mf_gen4_rewrite 2022-11-10 09:44:42 +01:00
DidierA 885911c469 Rewrite of magic Gen4 GTU commands : refactor and speed 2022-11-09 15:49:07 +01:00