Commit graph

11078 commits

Author SHA1 Message Date
iceman1001 ade6770ecb forgot header 2023-12-30 23:58:08 +01:00
iceman1001 1f4f5febae adapt magic detection and textual output. Hf mf info - now uses found keys to send for magic detection 2023-12-30 23:08:58 +01:00
iceman1001 68f63ec739 using the same hiding of debug logging when performing the magic tests 2023-12-30 21:02:16 +01:00
iceman1001 c448205732 spelling 2023-12-30 20:11:38 +01:00
nvx 8f577ad963 Improved magic detection
Magic detection no longer stops when a single type is found as cards may support multiple types of magic, so all detected types will be reported now.
GDM/USCUID chips are now detected when GDM magic auth is disabled but magic WUP (40 or 20) is enabled.
Gen2/CUID/DirectWrite is now detected when default keys and ACLs are used by attempting to write to block 0 but aborting before actually completing the write.
2023-12-30 19:53:23 +10:00
iceman1001 32b846dbea textual 2023-12-29 22:08:45 +01:00
ikarus cc5df3447c Fix communication timing (delay) after PM3 detection. 2023-12-29 21:20:47 +01:00
iceman1001 9163e26e59 wrong size, need to verify its history 2023-12-28 10:34:31 +01:00
wh201906 e5dd9952d7
Misc
Change style of if block with single statement
Reset rx_empty_counter in uart_open()
2023-12-27 22:22:19 +08:00
wh201906 3aab9a4d04
Update CLI prompt after switching connection type 2023-12-27 22:21:50 +08:00
Iceman abdaf57cd9
Merge pull request #2218 from wh201906/net_simplify
Clean up the code for network connection
2023-12-27 13:56:50 +01:00
wh201906 3fb4515893
Check TCP connection state 2023-12-26 21:23:43 +08:00
wh201906 39866f9ed2
Reuse code for TCP and UDP connection
Put prefix length validation before memcmp() to avoid overflow
2023-12-26 17:58:41 +08:00
wh201906 81780bd164
Add uart_parse_address_port() 2023-12-26 17:58:22 +08:00
wh201906 ecec001fdd
Put uart_bind() into uart_common.c 2023-12-26 17:56:14 +08:00
iceman1001 5e06656580 fixed some overflows when debug printing client side when emrtd dump/info 2023-12-25 15:25:05 +01:00
iceman1001 417abcbb4c use appropriate return code 2023-12-24 10:44:46 +01:00
iceman1001 eb673d27b7 hf mfp dump - still a skeleton command. Need some more love. Fix #2212 2023-12-24 10:41:53 +01:00
iceman1001 2c20c0c647 more debug messages 2023-12-18 22:16:51 +01:00
iceman1001 0c675df40d use MIX 2023-12-18 22:16:13 +01:00
iceman1001 0a820bbb67 added some easy test for saflok key generation 2023-12-18 22:15:54 +01:00
iceman1001 8bb74815b7 adapted some output 2023-12-18 22:14:51 +01:00
iceman1001 2bfc31a7b6 changed "data dectectclock" to try all clocks when not called with any params. Adapted the "lf search -1u" - with text and it should be more intuitive 2023-12-18 22:12:26 +01:00
iceman1001 bdbfa26f9a fix lf config --reset where the resetet value got overwritten. testing some rounding and textual changes to lf search -1uc 2023-12-18 14:52:56 +01:00
iceman1001 f8f135a3b7 style 2023-12-18 10:11:11 +01:00
iceman1001 7fa09a556a improved the autocorreleate detection. lf search -1uc got some more textual improvements 2023-12-18 10:04:19 +01:00
iceman1001 586acf0933 modified the autocorrelate part in lf search -1u command. It should be a more informative output and better bytes length reporting 2023-12-17 21:42:54 +01:00
iceman1001 04769f3183 fudan command is never 512 bytes. Converted to use MIX instead 2023-12-14 23:44:07 +01:00
iceman1001 4a303afecc in hf 14a raw the check for the datalength to be less than 512 bytes wasnt enforced. I might have gotten this wrong. But now we can use MIX instead. Same for APDUs. So sending 488 bytes to device is possible. I can only think of one person ever doing such a thing and I am sure I will hear about this 2023-12-14 23:42:51 +01:00
iceman1001 2709882312 untested/unused code but in the process of removing all OLD, will need to verify its never larger than 488 bytes 2023-12-14 23:40:30 +01:00
iceman1001 7fe12d4d1b payload should not be larger than 488 bytes, so we can use MIX instead 2023-12-14 23:39:21 +01:00
iceman1001 f47d05df8a the old isn't needed 2023-12-14 00:40:03 +01:00
iceman1001 c3bebd350d fix some helptext showing wrong dates compared to what the instructions said 2023-12-14 00:38:01 +01:00
iceman1001 0c3d487c15 maur 2023-12-14 00:36:33 +01:00
iceman1001 a2327cfe20 typo 2023-12-13 22:33:09 +01:00
Iceman 599b4f6e73
Merge pull request #2208 from wh201906/bootloader
Add hw bootloader
2023-12-13 17:55:30 +01:00
wh201906 81888e01a2
Add hw bootloader
Reboot to the bootloader mode in the client
2023-12-13 21:41:17 +08:00
wh201906 c82bc2aea5
Fix docs
Add new PLATFORM_EXTRAS options in 4_Advanced-compilation-parameters.md
Fix some help text
2023-12-13 21:00:17 +08:00
iceman1001 20ca44c8b2 fix partial found keys 2023-12-12 11:48:10 +01:00
Oleg Moiseenko 7f8291f7f4
Merge pull request #2203 from merlokk/mkstyle
make style
2023-12-12 01:12:38 +02:00
merlokk 2517e8b345 make style 2023-12-12 01:11:10 +02:00
iceman1001 1d3129972f typo 2023-12-11 23:56:50 +01:00
iceman1001 c533d3aba8 adapt text out for hf mf info 2023-12-11 23:37:05 +01:00
merlokk 84cc6d6c79 add: specify key and block for nested static encrypted checks 2023-12-11 23:12:56 +02:00
merlokk 749ba504f8 text 2023-12-11 21:25:31 +02:00
merlokk 91892bc1bf add static encrypted nonce detection 2023-12-11 21:24:26 +02:00
merlokk d352f9d44e add key placeholder 2023-12-11 19:21:25 +02:00
merlokk edd004adc5 move rng info and add static encrypted nonce detect placeholder 2023-12-11 19:17:03 +02:00
merlokk 784e11021e Remove debug messages from the info command 2023-12-11 19:00:09 +02:00
merlokk ebe9d72cc2 set debug log level 2023-12-11 18:46:25 +02:00