Commit Graph
284 Commits
Author SHA1 Message Date
Philippe Teuwen 857f0c0d9b cppcheck fix returnNonBoolInBooleanFunction 2023-01-15 02:23:19 +01:00
Philippe Teuwen 8ac8e3d7d0 reduce variable scopes 2023-01-15 02:23:19 +01:00
Philippe Teuwen 0e1ea167a4 vigik: use mfc_vigik_t in API and remove warning about increased alignment 2023-01-14 23:32:35 +01:00
Philippe Teuwen 5d5d9d9be0 make style 2023-01-14 22:22:04 +01:00
iceman1001 73a80fb07d hf mf wrbl, restore - changed the logic of --force param. It is now used to override warnings about BLOCK0 and bad ACL block data and allow the user to write it regardless of its consequences.\n You can easily brick sectors on genuine or Gen2 cards.\n Be aware, here be dragons! 2023-01-10 22:08:59 +01:00
iceman1001 9888eef8dc changed hf mf wrbl and view command to look for strict readonly ACL in the data. 2023-01-06 23:53:25 +01:00
iceman1001 b14730d57c fix codeql #155 - narrow type with wide type comparison in loop 2022-12-10 03:32:18 +01:00
iceman1001 b557291a00 print sectors for mifare 2022-12-04 19:28:22 +01:00
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