Commit Graph
4102 Commits
Author SHA1 Message Date
Jean-Michel Picod a7980d8e8a Use a typed constant and see if that makes CodeQL happy :) 2023-01-06 21:52:26 +01:00
Jean-Michel Picod 15b541c2ea Add command piv authsign 2023-01-06 21:36:08 +01:00
Jean-Michel Picod efc685864a Add PIV command to scan all data containers on a PIV card. 2023-01-06 21:23:22 +01:00
Jean-Michel Picod 663fd4efc9 Remove unused error code.
Will be added back for the PIN check command
2023-01-06 18:28:53 +01:00
Jean-Michel Picod 6e084d82d5 First two PIV commands 2023-01-06 18:19:31 +01:00
Jean-Michel Picod 80a4698a7f Initial rework on TLV to avoid mem leaks 2023-01-06 13:03:10 +01:00
Self Not Found b2d03e8c30 Merge branch 'RfidResearchGroup:master' into fix-flash-suggest 2023-01-06 14:20:48 +08:00
nvx 4180635218 Add --shallow option to hf iclass reader commands to do shallow (ASK) reader modulation instead of OOK. 2023-01-04 23:59:03 +10:00
iceman1001 53808f2c7f sanity checks and style 2022-12-31 23:07:54 +01:00
iceman1001 d6af860136 adapt path separator to handle WIN32 backslash. 2022-12-31 22:30:07 +01:00
iceman1001 e77781e621 only mark CRC bytes if we have 3 or more bytes, and increase the line buffer since ansi colors eats chars 2022-12-31 10:04:30 +01:00
Iceman 259ad97004 Merge branch 'master' into feature/better_nxp_15693_identification
Signed-off-by: Iceman <iceman@iuse.se>
2022-12-30 09:52:15 +01:00
Hanno Heinrichs 9e0fe3ca36 Fix stack-based buffer overflow in "lf em 4x05 sniff" command 2022-12-29 13:55:24 +01:00
nvx e44f847474 Improved NXP SLI/SLIX series tag identification 2022-12-29 22:37:50 +10:00
iceman1001 08930766cb fix potential NULL array printing 2022-12-23 20:05:45 +01:00
Self Not Found 1f7d3d85a7 Fix the steps when updating from old version
When updating from a old version on Windows, the `pm3-flash-all` always
fails even after updating the bootloader. This is because it detects 
the hardware by the serial number "ICEMAN", which only appears after 
flashing the fullimage.
2022-12-22 12:24:20 +08:00
Jean-Michel Picod 4375f5b91e Avoid memory leaks with Python <3.10 2022-12-20 15:32:38 +01:00
Nitraiolo 96d8528a0a Inverted condition in python check so it defaults to new code now. 2022-12-18 09:45:46 +01:00
Nitraiolo 997e5aac3e Fix py_args[] population 2022-12-17 21:49:04 +01:00
Nitraiolo 912d9be2d1 Added major version into compile condition of cmdscript 2022-12-17 20:12:12 +01:00
Nitraiolo 0d2e86f99c Conditional build of cmdscript to allow compilation with old python
versions (<3.10.x)
2022-12-17 15:26:36 +01:00
iceman1001 b14730d57c fix codeql #155 - narrow type with wide type comparison in loop 2022-12-10 03:32:18 +01:00
Jean-Michel Picod 0083e0ae13 Fix embedded python not working with Proxspace. 2022-12-09 21:58:28 +01:00
iceman1001 e364d7e03d add updated sim module firmware v4.13, this is breaking change for smart category commands 2022-12-09 07:36:02 +01:00
Jean-Michel Picod b487961cbd Moved to non-deprecated API to init Python intepreter 2022-12-06 18:07:10 +01:00
iceman1001 53b2909f04 prepping for sim module firmware upgrade file 2022-12-05 22:32:40 +01:00
Jean-Michel Picod 5bd6379b5b Move message to debug 2022-12-05 22:05:23 +01:00
Iceman 9f589fed9a Merge pull request #1830 from jmichelp/master
Smartcard module firmware 4.12
2022-12-05 20:28:25 +01:00
Jean-Michel Picod 83e6b223c4 Adapt ARM code to comply with SIM module firmware 4.12 2022-12-05 19:35:11 +01:00
iceman1001 38cb327991 fix #1829 Py_SetProgramName is deprecated, but was optional in our code. 2022-12-05 19:28:42 +01:00
Jean-Michel Picod b70320d47d Fixing some ISO7816-4 logic.
- Fixing overflow in BigBuffer if requesting to much data
- Fixing integer wrapping with the SIM module by capping APDU data
  length
- Fixing chaining logic which was loosing previously received data
2022-12-05 10:54:38 +01:00
iceman1001 b557291a00 print sectors for mifare 2022-12-04 19:28:22 +01:00
iceman1001 d170f68a00 fix compilation error, and more debug statements 2022-12-04 15:34:35 +01:00
iceman1001 37100a8a18 fix compilation error 2022-12-04 15:15:24 +01:00
Iceman ce3ca0e7d1 Merge pull request #1825 from natmchugh/master
Get the hitag2 dump command working as per docs
2022-12-04 13:45:57 +01:00
iceman1001 9af951c22b fix compiling 2022-12-04 09:27:13 +01:00
iceman1001 e3a6f8fe27 look up vigik service code 2022-12-03 21:11:29 +01:00
iceman1001 e4339bd846 wip - testing of a vigik annotater 2022-12-03 20:30:13 +01:00
iceman1001 a6c09505ce change token for !crc -> !! and added colors to it 2022-12-03 12:35:22 +01:00
nvx 4962752472 Fix trace list -r (relative times) not working unless the -u (microseconds) flag was also provided.
Also makes the `--frame` option respect microseconds and relative times as well.
2022-12-02 20:13:13 +10:00
Nat McHugh cfc72fb5f1 Fix the dump command hitag2 2022-11-30 15:49:39 +00:00
Iceman f9aa183382 Merge pull request #1821 from DidierA/gen4_ident
Add Magic Gen4 GTU detection
2022-11-25 17:23:19 +01:00
DidierA 9a0427d4d2 Add Magic Gen4 GTU detection and symbols for Gen4 GTU protocol. 2022-11-25 10:13:33 +01:00
Iceman 2453d9bc81 Merge pull request #1820 from jmichelp/master
Fix overflow in SPI memory when writing default key dictionnaries.
2022-11-25 07:21:09 +01:00
Iceman f3642c1a6e Merge pull request #1819 from toucan12/ksx6924
Add initialization command response interpretation on the ksx6924 (Tmoney) card
2022-11-24 03:52:43 +01:00
Iceman bad56a74ff Merge pull request #1818 from DidierA/hf_mfu_esave
use calloc(), not malloc()
2022-11-24 03:48:08 +01:00
Jean-Michel Picod 1adec4dfb2 Fix overflow in SPI memory when writing default key dictionnaries.
Boundaries were defined in the memory layout but weren't enforced
by the client, causing an overflow when trying to load a
dictionnary that was too big.
It's too hard to enforce it on the ARM side as the command is a
generic write.
Now that limits are defined, also outputs them as part of the
`hw status` command.
2022-11-24 03:16:58 +01:00
Geonyeob Kim 878d123a78 parse the hf ksx6924 init response 2022-11-24 00:59:42 +09:00
Geonyeob Kim 0890884cd5 textual 2022-11-24 00:57:13 +09:00
Geonyeob Kim 864b632a19 typo 2022-11-24 00:54:47 +09:00