Commit Graph

130 Commits

Author SHA1 Message Date
iceman1001
97e2d7f026 changed "data num" to accept -r -i parameters where it will reverse or inverse the values.\nrenamed some util functions 2023-12-07 16:44:31 +01:00
iceman1001
8e2e1d4cb4 fix coverity 420049 2023-11-11 16:50:23 +01:00
iceman1001
2401a0e27b fix coverity 420050 2023-11-11 16:47:45 +01:00
merlokk
7afaaf8535 style 2023-11-06 00:29:42 +02:00
iceman1001
a69eed7950 fix missing loaded counter 2023-11-05 02:11:24 +01:00
iceman1001
9c1644cd73 support loading of flipper zero .picopass files. Also adapted to naive detect if PACS w variable length encoded is present 2023-11-05 01:50:32 +01:00
iceman1001
4df28b88d3 fix 2023-11-03 15:47:45 +01:00
iceman1001
4708940c69 wrong struct when pasting 2023-11-03 01:46:42 +01:00
iceman1001
5471d326b7 macOS complains about memory alignment when type casting. memcpy should sort it 2023-11-03 01:41:22 +01:00
iceman1001
85fafb5906 type confusing 2023-11-02 17:19:42 +01:00
iceman1001
bae03ec792 type confusing 2023-11-02 17:14:37 +01:00
iceman1001
b17f5ef45c fix nfc MFC dump file loading 2023-11-01 23:39:42 +01:00
iceman1001
6423a0ec76 file extension needed? 2023-11-01 07:57:45 +01:00
iceman1001
98b7bd75d6 seems nfc mifare classic dumps used "blocks" instead... 2023-11-01 03:17:48 +01:00
iceman1001
ae6ba395b4 added support for loading flipper MFC/MFU dump files.\nFixed NFC DECODE to identify and handle MFU dump files properly 2023-11-01 02:43:10 +01:00
Henry Gabryjelski
939d3d4a93 Remove incorrect message (my own regression) 2023-10-30 17:26:07 -07:00
iceman1001
17844afe9d more verbose output for failues when loading json files 2023-10-31 01:07:19 +01:00
iceman1001
c48f305483 more verbose output for failues when loading json files 2023-10-31 00:58:50 +01:00
iceman1001
f523d2917b fix string formatters 2023-10-31 00:43:44 +01:00
iceman1001
9835543a2f apply fix for v3 2023-10-31 00:03:53 +01:00
Iceman
b50b405128 Merge pull request #2155 from henrygab/mf_dump_fix
Fix mf file loading error
2023-10-30 23:59:17 +01:00
Henry Gabryjelski
f2ed7d1299 Fix mf file loading error
Code was incorrectly checking if loop variable
`i` was greater than maximum data length,
rather than checking current buffer pointer.
2023-10-30 15:46:37 -07:00
iceman1001
75a70cbf53 updating json format for mfc 2023-10-30 22:22:22 +01:00
iceman1001
4f96d3eb46 style 2023-10-03 17:10:39 +02:00
iceman1001
dee03b414c fix some coverity 2023-10-02 21:47:35 +02:00
iceman1001
89db5d3875 text 2023-10-02 20:59:01 +02:00
iceman1001
fb23d2047f reworked the JSON format for 14a, 14b, 15, cryptorf, lto, NDEF.\nDeprecated EML format. Pm3 client do not save EML files any more.nPm3 client will continue to load EML files. 2023-10-02 20:11:23 +02:00
iceman1001
19251645e1 shorten LEN variable to match the available space in string 2023-07-27 20:12:42 +02:00
iceman1001
39eecc917e improved the messages reported when loading json files fails. Usually because we have reserved the wrong size memory 2023-07-27 19:38:51 +02:00
iceman1001
40533497d3 text 2023-07-27 18:50:41 +02:00
iceman1001
7440e617e0 add stupid extra checks to see why this code overflows on pentoo... 2023-07-27 16:26:36 +02:00
iceman1001
7f5590d942 checks 2023-07-27 01:15:31 +02:00
iceman1001
a57cfdde70 size? 2023-07-27 01:12:08 +02:00
iceman1001
e5b075ed3b hf mf restore got some textual updates in order to be easier to understand if keyB writes fails. We use a default ACL when wiping a card that doesnt allow key B to be used for writing. Restore command tries key B first, so there will be several failed key b attempts normally. 2023-07-25 22:42:42 +02:00
iceman1001
cb9ee94ed6 lets see if this sorts out the memory crash on pentoo 2023-07-25 12:39:22 +02:00
iceman1001
82d80cc250 better memory clean up, thanks @gentilkiwi 2023-07-14 11:33:47 +02:00
iceman1001
46fc20165b reduce size since this wasnt the root cause 2023-07-10 16:37:30 +02:00
iceman1001
588dea4005 still overflows on pentoo. Lets reserve the double the max. 2023-07-10 08:44:16 +02:00
iceman1001
17be2f6c3e remember to malloc space for the defaultPaths too 2023-07-10 01:44:34 +02:00
iceman1001
74f02fef8a style 2023-06-24 17:16:28 +02:00
iceman1001
55b780074f move defines 2023-06-23 18:59:16 +02:00
iceman1001
d3792c0853 adapt mifare plus key files to be loaded/saved in json. WIP , will need a typedef struct in order to work properly 2023-06-21 18:48:04 +02:00
iceman1001
d65094b7e0 fixed some color to mad directory printings and fixed a sector issue in when saving keyfiles to Mifare Plus cards 2023-06-19 15:01:40 +02:00
iceman1001
97eb0238b1 style 2023-06-02 10:45:04 +02:00
iceman1001
71f934dbd7 text 2023-05-27 10:28:54 +02:00
iceman1001
fe31bd4064 cleaning out memory unsafe functions for loading files. Also made the loading of files to honor the preference dump/trace settings. Experimental support, which will need more love. I have been using it for some months now but there are still other save/load file operations scattered in the PM3 client which will not benefit from this yet. They need to be adapted too 2023-04-23 11:32:32 +02:00
iceman1001
039937e28a added the possibility to load .MCT dump files in the client. MCT format is a textual one like EML but with extra descriptive lines of text before each sector 2023-04-23 11:27:12 +02:00
iceman1001
dab3171ba6 added loadbinarykeys fct which takes fn and loads binary MFC keys into two arrays KeyA, KeyB. 2023-03-30 22:38:03 +02:00
Philippe Teuwen
30ae0bf521 make style 2023-01-15 02:24:46 +01:00
Philippe Teuwen
04bab85557 fileutils: replace casts by union and remove warning about increase alignment requirement 2023-01-14 23:02:06 +01:00