Commit Graph
4036 Commits
Author SHA1 Message Date
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
DidierA d4f08abec3 Change calloc() so it passes Widnows build test
Code compiles under linux (not tested yet, I have no proxmark available right now)
Previous commit fails windows build test with:

src/cmdhfmfu.c: In function 'CmdHF14AMfuESave':
src/cmdhfmfu.c:4220:19: error: array subscript 'mfu_dump_t[0]' is partly outside array bounds of 'mfu_dump_t[0]' [-Werror=array-bounds]
 4220 |         end = dump->pages ;
      |                   ^~
In function 'GetMfuDumpFromEMul',
    inlined from 'CmdHF14AMfuESave' at src/cmdhfmfu.c:4202:15:
src/cmdhfmfu.c:4105:21: note: object of size 1076 allocated by 'calloc'
 4105 |     uint8_t *dump = calloc(MFU_MAX_BYTES + MFU_DUMP_PREFIX_LENGTH, sizeof(uint8_t));
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-11-23 11:40:56 +01:00
DidierA 182d167aad use calloc() 2022-11-21 22:05:24 +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 b36eaac3bf Merge branch 'master' of github.com:RfidResearchGroup/proxmark3 2022-11-20 16:49:41 +01:00
iceman1001 5b790afe43 renamed param dict / f for more consistency overall 2022-11-20 16:48:20 +01:00
iceman1001 317ddf42bc style 2022-11-20 16:47:49 +01:00
iceman1001 4dfcd44edd return default value when arg is not enforced with u32_1 2022-11-20 16:43:12 +01:00
iceman1001 4fb096966e extra checks for argument parsing of ints. And some text updates. There are other int parsing but they are checked with mandatory param int1 2022-11-20 16:34:45 +01:00
DidierA 9dbd6e5f23 change help text to fit screen 2022-11-20 15:31:58 +01:00
DidierA 1d00ef797c hf 14a sim, hf mfu sim: add hint for Ultralitgh EV1 2022-11-20 01:26:42 +01:00
DidierA f828a727c9 Fix: hf 14a sim parsing args was taking tag type as number of reads if no -n option given 2022-11-20 01:01:11 +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