Commit Graph
276 Commits
Author SHA1 Message Date
iceman1001 e4339bd846 wip - testing of a vigik annotater 2022-12-03 20:30:13 +01:00
Iceman 1527677bc4 Merge pull request #1815 from DidierA/hf_mfu_esave
Add hf mfu esave
2022-11-21 21:29:05 +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
iceman1001 317ddf42bc style 2022-11-20 16:47:49 +01:00
iceman1001 6c163fa262 added a check for static encrypted nonces when collecting encrypted nonces for hardnested to run. Will abort the collection if detected. 2022-11-15 07:07:26 +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
iceman1001 c393b0caca adapted hardnested and autopwn to detect MFC Ev1 cards and use the known sector key in the key recovery vectors 2022-11-12 09:39:28 +01:00
iceman1001 dbb5e6d4c1 fix coverity CID #402836, #402837, #402838 2022-11-11 23:49:49 +01:00
DidierA 885911c469 Rewrite of magic Gen4 GTU commands : refactor and speed 2022-11-09 15:49:07 +01:00
DidierA 4f2d86558e correct wrong type in formatting function 2022-11-05 20:20:01 +01:00
DidierA 876abf2818 Add hf mf gload, ggetblk, gsetblk 2022-11-05 19:40:38 +01:00
Jean-Michel Picod 32d47cb6a4 Fix prolematic return codes in mifare.
Parts of the code returned positive values for error codes, which
could result in the client exiting (return value 2).
2022-11-04 11:06:59 +01:00
iceman1001 fe11c1876f hf mf dump - if keyA failed to read, zero out its key to indicate in dumped file that the key is unknown. 2022-11-02 15:01:46 +01:00
iceman1001 fede61296b fix return types to follow our style better. 14a/mf needs more love 2022-11-02 14:34:07 +01:00
Jean-Michel Picod b768f8e1a3 Fix comment and unreachable boundary. 2022-10-31 20:28:35 +01:00
Jean-Michel Picod cee55d43ee Modified logic to also try key B on MF cards.
In configurations where keyA is unknown but ACLs are configured to allow
all blocks to be read by keyB the command `hf mf dump` was failing.
This commit attempts to fix this behavior by trying keyA first and
swapping for keyB if half of the allowed tries failed.
2022-10-31 20:13:09 +01:00
iceman1001 3f92d5ee67 style 2022-10-29 01:26:12 +02:00
iceman1001 ba225905d3 changed "mf eload" / "iclass eload" to be able to transfer a file from SPIFFS to EMULATOR memory. Original idea from @natesales 2022-10-26 06:57:21 +02:00
iceman1001 5280ada054 bug fix, added 0xFE in the wrong place 2022-10-24 18:49:40 +02:00
iceman1001 2627f3b3b9 the ndef printing is now more dense and it honors verbose output 2022-10-23 02:59:27 +02:00
iceman1001 69fd1ac889 now skips non ndef formmated sectors 2022-10-23 02:17:49 +02:00
iceman1001 ac29a893cf fix hf md ndefread, to correctly skip non ndef formatted sectors 2022-10-23 02:15:47 +02:00
iceman1001 a2c4682d18 Change "hf mf ndefwrite" added option to fix bad ndef records by adding a correct block and a terminator block 2022-10-22 19:51:33 +02:00
iceman1001 6a74c8fc96 be more lenient with parsing ndef 2022-10-20 17:35:57 +02:00
iceman1001 76f793c9af added hf mf ndefwrite command. to write a ndef record to mifare tag 2022-10-20 17:34:46 +02:00
iceman1001 f9d0649fe1 text 2022-10-16 18:30:15 +02:00
iceman1001 04f4863dd4 fix label can only be part of a statement and a declaration is not a statement 2022-10-16 18:10:14 +02:00
iceman1001 71f96ba1e7 make style 2022-10-16 17:56:12 +02:00
iceman1001 2d25716704 verify that there is a card on the proxmark before continuing 2022-10-16 17:52:10 +02:00
iceman1001 885a43aadb added a new command to format a MFC tag as NFC with NDEF empty message 2022-10-16 17:45:46 +02:00
iceman1001 e18194028b style 2022-08-24 07:25:10 +02:00
iceman1001 c27264e4c4 text 2022-08-22 05:49:47 +02:00
iceman1001 6eaff873ba remove debug statements 2022-08-21 11:12:11 +02:00
iceman1001 28449aa580 hf mf mad - detect and decode of HID PACS 2022-08-21 09:40:06 +02:00
iceman1001 643f77996a hf mf mad - should be available offline too. Added some checks to quit if no device present 2022-08-21 00:52:53 +02:00
iceman1001 5a6440f298 fix double param name 2022-08-18 23:16:08 +02:00
iceman1001 ac0088791a style 2022-07-30 11:49:30 +02:00
iceman1001 2f7083a59a text 2022-07-25 07:45:57 +02:00
iceman1001 f4011f3283 fix test sequence 2022-06-13 07:27:05 +02:00
iceman1001 b841bd4f41 skip readB for staticnested and skip checkkeys 2022-06-12 14:26:55 +02:00
iceman1001 ad64fdfeb7 adapt hf mfu eview to take prefix header lenght in consideration 2022-06-06 19:07:16 +02:00
iceman1001 2c06054881 text 2022-06-06 12:49:02 +02:00
iceman1001 18bcbf1894 style 2022-06-06 07:57:13 +02:00
mwalker33 f5170f1d18 Mifare Classic Value operations
Added increment value, decrement value via the supplied commands and set value via the normal write command.  Also added "get" to read a value block and decode/display.
2022-06-05 16:58:53 +10:00
iceman1001 4195c9d901 fix logic 2022-06-02 20:44:37 +02:00
iceman1001 f38a3ad762 adapt load dump file refactoring else where 2022-05-15 23:56:35 +02:00
iceman1001 d4c3082741 refactoring loading dump files 2022-05-15 23:06:46 +02:00
iceman1001 f241bd4b4d added MAD key Sector0 detection and hf mf mad now takes a -f param for offline decoding of dump files 2022-05-15 11:37:06 +02:00