Commit Graph

139 Commits

Author SHA1 Message Date
Pierre Lalet
e3cbd598ec CLI: skip already used items in hf mf elog --decrypt
This (often largely) improves the speed of the decrypt process. On my
laptop, with the same logs (37 records for one block and 37 records
for another block), here are the performances, as measuerd using a
simple command:

```bash
time echo -e "hw connect\nhf mf elog --decrypt\nhw disconnect" | ./chameleon_cli_main.py
```

- Before parallelisation (#187): 14m59,277s
- With parallelisation (current main): 6m13,513s
- With item skipping (this PR): 2m42,491s
2023-12-20 22:37:47 +01:00
Pierre Lalet
cc674f1669 CLI: fix mfkey32v2 call for Windows 2023-12-20 16:20:12 +01:00
Pierre Lalet
42317a7bc4 CLI: parallelize mfkey32v2 processes 2023-12-20 16:20:12 +01:00
taichunmin
e79568298f Added support for mifare classic value block operations 2023-11-13 23:38:56 +08:00
Philippe Teuwen
d973ee6671 add hw disconnect (for autotests) 2023-10-24 23:45:42 +02:00
Philippe Teuwen
ece5e79060 typechecking fixes 2023-10-24 23:44:56 +02:00
Philippe Teuwen
d77e166249 pep287 2023-10-24 00:57:44 +02:00
Philippe Teuwen
ff3df15278 misc lint 2023-10-23 23:57:23 +02:00
Philippe Teuwen
55cd19f0db Move bins to simplify pyinstaller paths 2023-10-23 22:54:37 +02:00
Philippe Teuwen
bb47bd5159 make style 2023-10-23 19:16:42 +02:00
Philippe Teuwen
83583075c4 Merge branch 'main' into ats_error_fixes 2023-10-17 23:52:35 +02:00
Philippe Teuwen
fa0754aed2 cli: make status an enum. rename some status for consistency 2023-10-17 23:43:25 +02:00
Augusto Zanellato
aa3fe711af Fix hf 14a raw always raising AttributeError 2023-10-17 23:33:19 +02:00
Philippe Teuwen
2beb8f74a3 cli: check if helper tools are available 2023-10-17 22:08:34 +02:00
GameTec_live
070db3d773 fix: escape sequence 2023-10-16 21:09:26 +02:00
Philippe Teuwen
830ba98721 cli: move enums to new file 2023-10-15 01:17:34 +02:00
Philippe Teuwen
8ef42c705c cli: hw slot list: avoid unnecessary slot changes 2023-10-15 01:17:34 +02:00
Philippe Teuwen
43a6e822e6 cli: move color shortcuts to chameleon_util 2023-10-15 01:17:29 +02:00
Philippe Teuwen
15bcae78be cli: atqa disambiguation 2023-10-12 20:39:18 +02:00
Philippe Teuwen
4fe9e1ea5b docs 2023-10-11 10:28:45 +02:00
Philippe Teuwen
c4aef7e373 Changed hw slot list to display LF ID & HF anticol data, and names in the --short version too 2023-10-10 20:10:18 +02:00
Philippe Teuwen
f512cbdbee cli: fix hw slot init 2023-10-10 10:57:53 +02:00
Philippe Teuwen
61cc4f5891 cli: color help and add epilog example 2023-10-10 01:58:26 +02:00
Philippe Teuwen
4927e0166c cli: one root CLITree, enhance dump_help 2023-10-10 00:17:17 +02:00
Philippe Teuwen
9106dea953 clean args classes 2023-10-09 21:37:54 +02:00
Philippe Teuwen
75e368da62 cli: hf mf econfig, hf mfu econfig (wip), fix dumphelp 2023-10-09 21:23:17 +02:00
Philippe Teuwen
a2121de79e cli: hf mf elog 2023-10-09 00:49:11 +02:00
Philippe Teuwen
336ec82e49 cli: hf mf eload/esave 2023-10-09 00:31:11 +02:00
Philippe Teuwen
2d3538f4c2 cli: add support for after_exec 2023-10-09 00:15:25 +02:00
Philippe Teuwen
8080c9b259 lf em 410x econfig 2023-10-08 23:57:02 +02:00
Philippe Teuwen
deb6684c0d cli: enum for key type A/B, prepare hf mf auth args 2023-10-08 21:12:52 +02:00
Philippe Teuwen
dd5ff244d3 hf mf nested 2023-10-08 20:56:57 +02:00
Philippe Teuwen
8fc45a67a4 cli: hf 14a raw 2023-10-08 17:38:14 +02:00
Philippe Teuwen
831c401b5d cli: hw raw 2023-10-08 17:20:50 +02:00
Philippe Teuwen
1da470b8fe cli: hw settings btnpress 2023-10-08 14:20:09 +02:00
Philippe Teuwen
45deb30d4a cli: hw settings btnpress WIP 2023-10-08 13:55:18 +02:00
Philippe Teuwen
efd7405bd8 cli: hw settings btnpress WIP 2023-10-08 13:44:06 +02:00
Philippe Teuwen
cd51061bb0 cli: hw slot enable: bugfix default slot 2023-10-08 12:46:01 +02:00
Philippe Teuwen
d127f0a641 cli: blepair fix bug 2023-10-08 12:37:28 +02:00
Philippe Teuwen
47742d5984 cli: hw settings blepair, hw settings reset + --force, hw settings animation/btnpress/blekey/blepair: reminder to store settings 2023-10-08 12:23:29 +02:00
Philippe Teuwen
18a1770c80 cli: hw settings animation/bleclearbonds, hw factory_reset and hw settings bleclearbonds with --force 2023-10-08 12:02:28 +02:00
Philippe Teuwen
0f730affa7 Activate automatically reader mode 2023-10-08 00:15:37 +02:00
Philippe Teuwen
6cad966e7a cli: hw slot enable/disable/store 2023-10-08 00:02:43 +02:00
Philippe Teuwen
3aa73a2def cli: metavar, simplify enums, replace tag types int by keywords 2023-10-07 23:54:13 +02:00
Philippe Teuwen
0c6abbea9d cli: -s mandatory for slot change, sense_type now --hf/--lf, slot optional for hw slot init/type/delete 2023-10-07 11:21:39 +02:00
Philippe Teuwen
3022e0550c help_str 2023-10-07 01:11:03 +02:00
Philippe Teuwen
1ce506a5ad cli: change hw slot list 2023-10-07 01:05:46 +02:00
Philippe Teuwen
7ae3820913 cli: change hw slot kick 2023-10-07 00:56:57 +02:00
Philippe Teuwen
465ada3544 cli: change hw chipid, hw address and hw mode 2023-10-07 00:21:28 +02:00
Philippe Teuwen
bb0ad66a78 cli: reorder args 2023-10-07 00:05:46 +02:00