70 Commits
Author SHA1 Message Date
Philippe Teuwen fdf3b2690a Various fixes to content GCC 16... 2026-02-07 00:51:53 +01:00
iceman1001 bc1c47e81b style 2025-04-13 12:25:14 +02:00
iceman1001 363bc0da8a some extra NULL checks to please cppchecker 2025-03-25 12:34:00 +01:00
iceman1001 06a1627a95 style 2025-03-12 16:48:30 +01:00
iceman1001 2137284a93 style\n Some improvements to trace list -t seos annotations. 2025-03-12 16:41:06 +01:00
Jean-Michel Picod dbe0412311 Simplify quote handling 2023-10-18 10:38:33 +02:00
Jean-Michel Picod 3b7cec365a Support double-quoted arguments in CLI
When a quoted command argument is seen, it will take all characters
until the next double-quote (no supported escape sequence here for
simplicity).
All white spaces (space, tab, etc.) are then removed from the argument.

This means that the following command should behave the same:
```
pm3> wiegand encode --fc 101 --cn 1337
pm3> wiegand encode --fc "1 0 1" --cn "1    3    3   7"
```

Or a more useful example, when copy/pasting hex formatted values:
```
pm3> hf iclass calcnewkey --old 1122334455667788 --new 2233445566778899
pm3> hf iclass calcnewkey --old "11 22 33 44 55 66 77 88" --new "22 33 44 55 66 77 88 99"
```
2023-10-18 10:27:12 +02:00
iceman1001 d02e8daba0 Changed CLI max string argument length limit from 512 to 4096. data asn1 now handles 2048 hex bytes input 2023-03-12 09:53:23 +01:00
iceman1001 0ba072118e calloc 2022-07-25 08:01:38 +02:00
Philippe Teuwen 34c56c6227 cliparser: Fix codeql warnings 2022-02-27 14:31:07 +01:00
iceman1001 b3731c6003 cppcheck fixes 2022-01-06 18:18:48 +01:00
Philippe Teuwen 88308ea727 typos 2021-10-10 01:35:45 +02:00
Philippe Teuwen 8ce20320b2 Fix segfault on 'rem <verylongline>' 2021-09-04 02:57:16 +02:00
Philippe Teuwen 3c31ee793d make style 2021-07-08 09:53:50 +02:00
Oleg MoiseenkoandGitHub a20db915df Merge branch 'master' into desf_update2 2021-07-06 12:17:31 +03:00
merlokk 20696fb44a make style 2021-07-06 12:16:19 +03:00
merlokk 84eb4e4597 try to fix coverity 2021-07-05 15:35:53 +03:00
merlokk afbd80b906 cliparser CLIGetOptionList 2021-07-05 11:59:07 +03:00
Philippe Teuwen d9fb6991a0 Remove cliparser from make help 2021-05-22 22:54:31 +02:00
Philippe Teuwen 7fbe4063b2 fix for script run & cliparser 2021-04-20 10:24:52 +02:00
iceman1001 26aeae1f3e allow for larger strings (hex) to be input 2021-04-04 14:57:35 +02:00
iceman1001 8573695134 data bin2hex - now uses cliparser\n added a binary string input parser 2021-03-23 11:06:09 +01:00
iceman1001 0067a9b7fa for commands with many params 2021-03-07 18:55:48 +01:00
iceman1001 ea5625c304 chg: cliparse error message unified to pm3 style 2021-01-29 20:35:18 +01:00
iceman1001 fdcc4b741c fix lf em 4x05 write - pwd/data. t55xx chk - now uses cliparser, and color to cliparser empty message 2021-01-27 22:52:08 +01:00