Commit Graph

5642 Commits

Author SHA1 Message Date
Iceman e1da024481 Merge pull request #2616 from jmichelp/fix14b
Fix potential overflow in readblock
2024-11-04 13:25:26 +01:00
Jean-Michel Picod 43f6d0bcfd Fix potential overflow in readblock 2024-11-04 12:22:50 +01:00
Jean-Michel Picod 68734f4191 Fix some PRI* macro usage. 2024-11-04 11:31:30 +01:00
Jean-Michel Picod a0214f12d4 Move all integer printing to use PRI* macros
Hopefully will make CodeQL happy this time.
2024-11-04 11:21:53 +01:00
Jean-Michel Picod b02c6ece26 Fix confusion between base10 and base16 identifiers 2024-11-04 10:00:29 +01:00
Jean-Michel Picod bb30b9dc8b Make CodeQL happy 2024-11-04 09:52:44 +01:00
Jean-Michel Picod 1dbfb7b3a3 Correctly parse extended length (MistialDev's card) 2024-11-04 09:52:44 +01:00
nvx 690864e970 clear the prompt using ANSI "clear entire line" escape
this replaces the old behaviour of using a fixed length of spaces
which can sometimes fail to clear the entire line if it's too long
2024-11-03 10:57:11 +10:00
iceman1001 3317175a82 style 2024-11-02 15:14:55 +01:00
iceman1001 b3285cce8a style 2024-11-02 15:13:40 +01:00
iceman1001 81d795e56f fix styles 2024-11-02 14:52:59 +01:00
iceman1001 9ddd833cba fix string handling and styles 2024-11-02 14:50:31 +01:00
nvx ef0cf93a5d fix typos and regenerate command list 2024-11-02 23:34:38 +10:00
nvx 6d7fcc642a add gdm flag to hf mf c* commands
this enables the use of hf mf c* commands with gdm/uscuid cards when the alt wake up mode 20(7)/23 is enabled rather than gen1 wake up
2024-11-02 22:22:13 +10:00
stuiterveer 08c22a0a5e Show correct example for lf data num --hex 2024-11-01 10:38:51 +01:00
Philippe Teuwen 0b35762b15 fix static enc nonce detection in hf mf info 2024-11-01 00:57:03 +01:00
stuiterveer a370673028 Fix typo from envelop to envelope 2024-10-31 13:15:53 +01:00
Philippe Teuwen de96479d80 pm3_console() in Python/Lua/C: replace passthru by capture and quiet 2024-10-29 21:13:38 +01:00
iceman1001 4ca4af16e3 fixed the crc annotations for iclass list. They were a bit too positive 2024-10-28 20:14:33 +01:00
Lucifer Voeltner 95acef16cb hf mfu info - specify reason for failing read 2024-10-28 08:48:58 +07:00
Iceman 57d3de2af6 Merge pull request #2589 from douniwan5788/style
style
2024-10-24 13:25:02 +02:00
Iceman 49ac2339b5 Merge branch 'master' into master
Signed-off-by: Iceman <iceman@iuse.se>
2024-10-23 17:59:52 +02:00
Iceman 6de21ed0c3 Merge pull request #2588 from douniwan5788/hts_read_page
fix: Hitag S Read page failed
2024-10-23 17:58:40 +02:00
Iceman a2b18ddd22 Merge branch 'master' into hts_resp_protocol
Signed-off-by: Iceman <iceman@iuse.se>
2024-10-23 17:44:07 +02:00
Iceman bbea76fb2c Merge pull request #2583 from evildaemond/master
Update cmdhfgallagher.c
2024-10-23 17:37:05 +02:00
douniwan5788 f049b568c5 style 2024-10-23 22:25:30 +08:00
douniwan5788 046488664b fix: Hitag S Read page failed 2024-10-23 22:24:53 +08:00
douniwan5788 911766b212 add: support for all Hitag S response protocol mode 2024-10-23 22:08:52 +08:00
Philippe Teuwen 284f0fe9b9 Fix compilation warning on some compilation environments 2024-10-22 15:50:46 +02:00
Adam Jon Foster 70cc7765f3 Update cmdhfgallagher.c
Added CmdGallagherEncode to allow someone to encode their own credentials into a raw and bitwise format without having it go onto a specific technology type.

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2024-10-21 23:16:05 +08:00
Antiklesys 4f85def6b0 Check for silicon version in iclass info
Updated hf iclass info to check whether the card's chipset is old silicon (supporting 14b) or new silicon (without the 14b support)
2024-10-20 12:33:25 +08:00
Philippe Teuwen 41a43bc85c hf mf sim: add option to allow key b to be used even if readable 2024-10-19 20:34:40 +02:00
Philippe Teuwen 838e0adfa7 rework Mifare simulation flags 2024-10-19 20:34:40 +02:00
iceman1001 e1fa9374d0 text and style. Suspect string formatter used "%*.*s" , we normally use "%.*s" 2024-10-19 11:16:22 +02:00
iceman1001 375b1439a1 data num now also properly pad hex converted to binary string operations 02 -> 00000010 -> 11111101 -> 01000000 2024-10-19 06:46:16 +02:00
iceman1001 8c04d9d0c8 data num didnt properly zero pad binary string outputs. It was cutting starting zeros. Those are now handled. Hex output still doesnt handle zero padding 2024-10-19 06:39:43 +02:00
Philippe Teuwen 5848b31ee1 trace list: don't mix 02x and 02X 2024-10-18 19:44:38 +02:00
iceman1001 c8fe7205b4 enhanced the hf iclass info command to try legacy aa1 and if found read out and decode 2024-10-18 19:24:02 +02:00
iceman1001 70581e3bfa modified iclass chk to load the default dictionary file. hf iclass chk -> use iclass_default_keys and hf iclass chk --elite -> use iclass_elite_keys`.. a bit simple 2024-10-18 18:20:43 +02:00
iceman1001 0c2ef9d3a8 style 2024-10-18 17:37:52 +02:00
Philippe Teuwen 91004aa2f1 hf mf sim: remove mention of non-existing option 2024-10-18 17:03:54 +02:00
douniwan5788 2ac74e01db improve Hitag S output 2024-10-17 21:31:24 +08:00
Philippe Teuwen 079689628b hf mf sim: add nested reader attack (needs data & rf08s nonces) 2024-10-16 19:54:03 +02:00
Iceman 00c84b9c22 Merge pull request #2576 from ANTodorov/fix_em4x50_read
fix em4x50_read function
2024-10-16 18:30:40 +02:00
ANTodorov 71b354043e fix em4x50_read function
affected `lf search` and `lf em 4x50 rdbl -b <blk>`
2024-10-16 19:10:41 +03:00
Philippe Teuwen 5b7ba3bf50 MFsim: RATS_IN_DATA was not a proper bit flag 2024-10-16 15:24:01 +02:00
iceman1001 e1fc066f55 style 2024-10-16 09:34:14 +02:00
Philippe Teuwen 3b91624ea6 Mifare1ksim logic closer to SimulateIso14443aTag and keep running when using mfkey32v2 2024-10-16 01:46:13 +02:00
Philippe Teuwen c1a038aa56 readerAttack: inject only found key 2024-10-16 01:46:13 +02:00
Philippe Teuwen 809b6c881a mfkey32_moebius: no need to wait for 20 keys to see there are more than 1 key... 2024-10-16 01:46:13 +02:00