Commit Graph

63 Commits

Author SHA1 Message Date
Szymon Borecki
4e0494b286 Store CLI history in ~/.chameleon_history 2023-08-21 00:54:36 +02:00
Philippe Teuwen
136a7531f4 Merge pull request #66 from szymex73/cli-overhaul
CLI Overhaul
2023-08-21 00:09:02 +02:00
Philippe Teuwen
5e52180aec Mifare Classic emulator: fix asked by @Foxushka 2023-08-20 10:21:08 +02:00
Szymon Borecki
895b0ced12 Merge remote-tracking branch 'origin/main' into cli-overhaul 2023-08-20 01:25:24 +02:00
Philippe Teuwen
8879460e10 Merge branch 'main' into hw-slot-info 2023-08-20 00:11:42 +02:00
Philippe Teuwen
12de4c0e0e Merge pull request #56 from domints/implement-get-slot-data
Implement get slot data
2023-08-20 00:07:46 +02:00
Foxushka
151f412490 Implement new Mifare Classic emulator configuration commands, improve CLI
Slot

Won't work like this

More randomness on nested auth (for hardnested recovery) and change default GCC location

Nobody will have GCC in this default location, /usr/bin/ will target way more users

Get enabled slots command

hw slot list show disabled slots

Improve python code quality

Show Mifare Classic emulator settings in hw slot list

Implement hf mf settings to change Mifare Classic emulator settings

Update
2023-08-19 20:59:39 +03:00
Szymon Borecki
dddc6f1a10 Merge remote-tracking branch 'origin/main' into cli-overhaul 2023-08-19 14:19:40 +02:00
Szymon Borecki
a64be123db Remove the unnecessary readline import and add a shebang 2023-08-19 13:46:32 +02:00
Szymon Borecki
f6e22328bb Add working argument completion 2023-08-19 13:44:15 +02:00
Philippe Teuwen
22747138e7 Merge branch 'main' into bugfix/cli-offset 2023-08-19 01:18:42 +02:00
Philippe Teuwen
9db1671be5 Merge pull request #63 from augustozanellato/factory_reset
Add factory reset command
2023-08-19 00:46:39 +02:00
Philippe Teuwen
28572958a7 thinner logo to fit 80col terms 2023-08-19 00:24:29 +02:00
Philippe Teuwen
3bfc52432a change slot nicknames encoding: gbk -> utf8 2023-08-19 00:14:19 +02:00
Augusto Zanellato
7b76aefd5e ACK command and use delayed reset 2023-08-18 22:35:39 +02:00
Augusto Zanellato
4ab131d10a Implement wipe fds command used to factory reset 2023-08-18 22:13:06 +02:00
Dominik Szymański
813b12bd37 Implement Mifare Classic emulator slot read 2023-08-18 19:39:05 +02:00
Philippe Teuwen
828d88c273 Several changes on TagSenseType, TagSpecificType and SlotNumber:
* SlotNumber values range from 1 to 8 rather than from 0 to 7
  this allows more straightforward usage as ppl can use equivalently SLOT_1 or 1.
* SlotNumber.fix -> .to_fw, and add .from_fw
* removed unnecessary SLOT_NO
* More straightforward use of enums, no need for .value, .__members__, name.replace() etc
* Unify usage between TagSenseType and TagSpecificType
* Add str representations for TagSenseType
* Fixed TagSpecificType related help (e.g. in hw slot type -h)
* Removed some redundant error raise
* Note: iterations can be done with `for slot in chameleon_cmd.SlotNumber:`
2023-08-18 18:03:02 +02:00
Dominik Szymański
278deda0c6 Merge branch 'main' into implement-get-slot-data 2023-08-18 16:50:38 +02:00
Philippe Teuwen
698c9b8ea5 Merge branch 'main' into bugfix/cli-offset 2023-08-18 16:02:55 +02:00
Foxushka
913c1540e3 Implement "hw slot info" to show which tag type loaded into all slots
As suggested by @augustozanellato

Fix input text disapperance in some cases

Show selected slot

Space
2023-08-17 22:40:04 +03:00
Dominik Szymański
85e63d90d9 Merge branch 'main' into implement-get-slot-data 2023-08-17 18:20:58 +02:00
Nemanja Nedeljkovic
0b5290706b Merge 2023-08-17 12:24:52 +02:00
Augusto Zanellato
707136a241 Add settings init, reset and migration logic
Align settings size to uint32_t
Add 78 reserved bits to settings
Use an enum for animation mode
2023-08-16 19:46:41 +02:00
Dominik Szymański
75e319fdd6 Add EM410x slot reading ability 2023-08-16 00:25:02 +02:00
Dominik Szymański
564f7eaf4c Cleanup command ids, add slot get command ids 2023-08-15 23:56:56 +02:00
Augusto Zanellato
ee8990aacd fw git version fixes, client support
Fix git version string length handling

Add git to docker fw-builder image

Add git version command to client

Add  client support
2023-08-11 19:46:17 +02:00
Alexander Featherston
d77ca3cd7d Attempted fix of Offset issues and utilizing enums in place of hardcoded numbers.
Changes to be committed:
	modified:   software/script/chameleon_cli_unit.py
	modified:   software/script/chameleon_cmd.py
2023-08-11 01:16:25 -04:00
Dominik Szymański
85b2fb3d8a Upgrade command parser 2023-08-10 22:59:00 +02:00
Dominik Szymański
f30ff7054c Add animation modes support 2023-08-10 22:26:22 +02:00
Szymon Borecki
0cfdff809f Add command autocompletion 2023-08-10 01:20:22 +02:00
Szymon Borecki
cdf4669d34 Fix KeyboardInterrupt 2023-08-10 01:18:27 +02:00
Szymon Borecki
3789269c37 Add prompt-toolkit to requirements 2023-08-10 00:54:26 +02:00
Szymon Borecki
e2b5b9b960 Use prompt-toolkit and switch to a different command registration system 2023-08-10 00:45:37 +02:00
Szymon Borecki
e9fec48ede Fix docstring for expect_response and rename the associated exception 2023-08-09 23:51:12 +02:00
Szymon Borecki
3259de2f25 Replace the PositiveChameleonCMD class with an exception decorator 2023-08-09 23:37:52 +02:00
Szymon Borecki
b8d2853f39 Use consistent naming for command units 2023-08-09 20:00:54 +02:00
iceman1001
6ee34622e8 allow exit/quit with shortcut too 2023-07-29 10:41:17 +02:00
Thomas Pedley
cb3376cc24 Add readline import for Posix operating systems to handle arrow keys. 2023-07-28 22:56:08 +01:00
Benjamin DELPY
8a58d0011b Clean nrf* part of build.sh + get device address & chip id 2023-07-23 00:58:03 +02:00
DXL
a48f6fc105 Merge pull request #36 from doegox/phil_fix_serialble
Catch exception when using virtual serial over BLE
2023-07-22 14:00:46 +08:00
Philippe Teuwen
0a47c98d39 Catch exception when using virtual serial over BLE 2023-07-22 02:30:21 +02:00
Philippe Teuwen
f094a65061 client: don't let recv thread crashing after hw dfu 2023-07-22 00:45:01 +02:00
GameTec_live
ef2d438562 Make eload -t optional 2023-07-17 16:59:36 +02:00
GameTec_live
02ef90a901 fix autoconnect
switch autoconnect over to vid due to MS description and name implement
2023-07-17 16:43:48 +02:00
Philippe Teuwen
51bb2a9252 Graceful exit, also on ctrl-d 2023-07-14 10:30:27 +02:00
GameTec_live
c738839d0b 1. Automatically try to search for ports when ignoring the - p parameter.
2. fixed .gitignore ignoring valid scripts
2023-07-10 14:36:46 +08:00
ShigemoriHakura
13af3a763d Improved the bin path
So if you use pyinstaller, the bin path will be the same as the exe
2023-06-01 04:11:04 +08:00
ShigemoriHakura
e8a6371a8e Merge remote-tracking branch 'upstream/main' 2023-05-12 01:17:09 +08:00
ShigemoriHakura
e72f8b8d4e fix path under windows 2023-05-06 11:09:52 +08:00