Commit Graph

247 Commits

Author SHA1 Message Date
Adrian Yee
7efde79235 Fix error in lf em 410x read from color_string()
Fix bug in color_string() usage introduced by 35d2f40 (bug #295).
2025-10-30 16:41:12 -07:00
GameTec-live
97dfe5b9a4 Merge pull request #295 from mischif/color-string
Use a function for colored strings
2025-10-13 21:44:00 +02:00
Jeremy Brown
e1b4218bb3 Fixed unnecessary formatting 2025-10-05 15:42:11 -04:00
Jeremy Brown
d440d98d12 Cleaned up follow-up issues 2025-09-19 01:11:46 -04:00
Jeremy Brown
35d2f40ff5 Switched to function for color stings 2025-09-11 11:52:05 -04:00
RocketGod
0aacfcde24 Add option for NFC Field Generator
I've integrated the option for the NFC Field Generator into Python CLI and application files. TODO: GUI integration.
2025-09-06 21:46:22 -07:00
GameTec-live
ea2a9410b3 Merge branch 'main' into fix-senested-key-recovery 2025-09-02 19:40:39 +02:00
Derek Jamison
8c670f8554 Add LF Viking support 2025-08-29 11:00:02 -04:00
jekkos
62e904f114 Fix for static nested key recovery
When runnin static nested recovery, we run into a sector auth faild
error that stops the recovery process. Add a try/execpt handler so we
can continue to try all possibitlities
2025-08-28 21:55:06 +02:00
GameTec-live
09870c3fc5 Merge pull request #276 from Foxushka/ultralight-key-log
Mifare Ultralight key logger from reader
2025-08-19 19:59:39 +02:00
GameTec-live
13432c9080 Merge pull request #266 from azuwis/hardnested-execute-tool
Use execute_tool to simplify running hardnested tool
2025-08-19 11:42:35 +02:00
GameTec-live
4c1096d1b6 Merge pull request #239 from taichunmin/mfkey32
`hf mf elog --decrypt` skip records with found keys
2025-08-14 11:07:50 +02:00
GameTec-live
039c54a62f Merge pull request #279 from TeCHiScy/hidcopy
feat: offline HIDProx tag copy
2025-08-14 07:25:30 +02:00
GameTec-live
27e7d504c6 Merge pull request #275 from unkernet/python_39
Restore Python 3.9 compatibility for Chameleon CLI
2025-08-13 21:59:32 +02:00
taichunmin
06a873fca4 fix linter 2025-08-13 00:51:16 +08:00
taichunmin
c396d06baa hf mf elog --decrypt skip records with found keys 2025-08-12 04:17:42 +08:00
TeCHiScy
b4c1c63698 feat: offline HIDProx tag copy
- refines comments
- use unified code for `lf tag not found` error
- merge lf_em410x_data.h & lf_hidprox_data.h, remove unused macros
- split btn_fn_copy_ic_uid as btn_fn_copy_lf & btn_fn_copy_hf
- fixes offline em410x tag copy not working
- fixes conflict SAADC usage between battery level service & lf fsk demodulator
2025-08-11 21:01:04 +08:00
Foxushka
dc28a82b19 Mifare Ultralight key logger from reader 2025-08-10 21:39:08 +03:00
unkernet
89e098c773 Make CLI compatible with Python 3.9
- Replace Python 3.10+ type hint syntax (`int | None`) with  `Union[int, None]`.
- Add explicit `byteorder='big'` argument to all `int.from_bytes()` calls.
2025-08-10 14:44:40 +07:00
Foxushka
d95112f821 Bump NETDATA_MAX_DATA_LENGTH from 512 to 4096
USB + BLE are tested
Closes #272
2025-08-09 17:51:57 +03:00
TeCHiScy
098e0a914b feat: add lf HIDProx read, t55xx write, emulate function (#267)
* feat: add lf HIDProx read, t55xx write, emulate function

code quaility:
- consistance: simulation -> emulation, label -> tag
- machine translated unreadable comments are made native

logic:
- newly added cli command includes: `lf hid prox read`, `lf hid prox write`, `lf hid prox econfig`
- machester demodulator is simplified
- various wiegand formats of HIDProx are supported
- goertzel algorithm is used in  HIDProx FSK demod
- lf read is refactored using stream/feed pattern to boost scan speed
- t55xx write is refactored to share same logic between em410x & HIDProx
- lf emulating is refactored to use PWM peripheral, allowing more card type to be added

closes: #212, #210

* chore: remove not implemented wiegand format comments

* fix: build ci

* fix: build ci

* fix: build ci

* fix: build ci
2025-08-04 07:01:53 +02:00
Zhong Jianxin
39270fd09e Use execute_tool to simplify running hardnested tool
Also fix when the dir conatains hardnested is read only, see #261
2025-08-02 10:15:14 +08:00
Foxushka
cf00761902 Key recovery via backdoor for static encrypted nonce cards (#263)
* Implement MF1_ENC_NESTED_ACQUIRE in firmware

* Implement MF1_ENC_NESTED_ACQUIRE in software + fix code formatter

* Remove xz and pthreads from sources, use CMake FetchContent

* Update changelog

* lzma.h

* Update CMakeLists.txt

* Update CMakeLists.txt

* Probably fix workflow taking wrong commit for building

* Fix CMake building tools into bin/Debug on Windows

* Added cmd for fetching all slots nicks (without 16 commands)

* Fix type and use temp directory instead cwd (https://github.com/RfidResearchGroup/ChameleonUltra/pull/261)

* Fix endian for mfu_read_emu_counter_data and mfu_write_emu_counter_data

* Fix  --key interpreted as list
2025-08-01 22:12:07 +02:00
AbyssAndromalius
303d2d31e1 Mifare Ultralight - Shadowmode (#251)
* Adding shadow mode to UltraLight

* Syncing with main repos

---------

Co-authored-by: AbyssAndromalius <abyss@barbed.fr>
2025-04-21 18:04:24 +02:00
zeusricote
2b0d02f12e complete hardnested attack implementation (#254)
* hardnested test fixed, increased timeout on mf1_hard_nested_acquire to fix cmd exec timeout on clone

* hardnested recovery(cli command not yet ready), based in noproto/HardnestedRecovery

* removed compiled binary

* Hardnested cli ready

* removed some unnecesary files

* removed unnecesary cached files

* cmake now builds hardnested too

* removed license.md

* added liblzma source(should fix checks not passing)

* i missed a line

* trimmed xz sources

* cmake now links local liblzma.a

* third try(warning solved)

* cmake now builds and links correcctly liblzma.a

* xz-5.8.1 vfolder renamed to xz

* fixed paths

* runner test

* removed wrong placed check

* disable landlock under windows

* missing files

* missing files

* windows strtok fix

* corrected lzma path under windows

* fix

* set release config for liblzma

* corrected path

* trailing_zeros

* msclock

* msclock integer issue

* msclock missing header

* fallback if not using msvc

* deleted include by accident

* revert clock change

* change custom target for custom command

* windows fmemopen implementation

* wrong path

* wrong name

* use fmemopen only when not using msvc

* use fmemopen.h when building on windows, non msvc

* re-add static link

* wrong filename

* pthread handling for mingw(proxspace)

* cleanup
2025-04-18 23:53:25 +02:00
Niel Nielsen
63bd0cb22e Update chameleon_cli_unit.py
Defined a working function load_key_file(import_key, keys) for command hf mf fchk  --key

function  load_dic_file(import_dic, keys) is empty for now, to prevent an error when executing hf mf fchk  --dic
2025-04-03 13:55:38 +02:00
dxl
3f6f5ac9c1 Hardnested nonces acquire implemented. 2025-04-02 12:32:27 +08:00
dxl
a4b3adad48 Reuse the 'STATUS_PAR_ERR' & Add an interface
1. Added 'cmd_processor_mf0_ntag_get_emu_page_count' interface to get available page count of mf0.
2. We can reuse the 'STATUS_PAR_ERR', and we can delete repeated cmd 'STATUS_INVALID_PARAMS'.
2024-07-16 12:47:47 +08:00
dxl
e98bb76926 Add 'MF0_NTAG_GET_PAGE_COUNT' for get available page count of mf0. 2024-07-16 12:43:16 +08:00
turbocool3r
25a1230865 Fix hf mfu econfig not working for NTAG 210/212. 2024-07-15 03:18:14 +03:00
turbocool3r
d1c9b4b21b Fix hf mfu e(r|w)cnt commands switching device into reader mode. 2024-07-15 02:35:37 +03:00
turbocool3r
f1e2250178 Add support for NTAG 210/212. 2024-07-15 02:34:45 +03:00
turbocool3r
a428377878 Make hf mfu dump command properly detect card size. 2024-07-15 01:19:59 +03:00
turbocool3r
3fe0a5f79d Fix hf mfu rcnt command. 2024-07-09 21:30:52 +03:00
turbocool3r
607df41bca Add a command to reset MF0 / NTAG unsuccessful auth counter. 2024-07-09 21:30:27 +03:00
turbocool3r
cf109f94b2 Detect NAKs in hf mfu wrpg command. 2024-07-09 21:09:16 +03:00
turbocool3r
a52bb989e9 Fix hf mfu dump command not running without file. 2024-07-09 21:03:57 +03:00
turbocool3r
0ce920cfcc Add hf mfu ercnt/ewcnt commands for reading and writing emulator's counters. 2024-07-09 17:11:42 +03:00
turbocool3r
ff58d97dd9 Add hf mfu esave command. 2024-07-09 00:58:07 +03:00
turbocool3r
b5259c313a Add --type argument to eload and dump commands. 2024-07-09 00:57:43 +03:00
turbocool3r
103d51ce64 Properly detect auth failures in hf mfu subcommands. 2024-07-08 01:04:23 +03:00
turbocool3r
4aa6b3c0fc Fix file output in hf mfu dump command. 2024-07-08 00:52:39 +03:00
turbocool3r
bdcf5d5851 Fix hf mfu rdpg not exiting when data is not properly aligned. 2024-07-08 00:34:08 +03:00
turbocool3r
37f2b0783c Add hf mfu eload command. 2024-07-08 00:33:33 +03:00
turbocool3r
1bf23cdf08 Make MFUAuthArgsUnit parse key and swap arguments automatically. 2024-07-07 20:09:25 +03:00
turbocool3r
ddcffba26f Fix a bug in hf mfu signature command. 2024-07-07 01:14:43 +03:00
turbocool3r
297cb061cb Add support for custom version and signature data for MF0 / NTAG emulator. 2024-07-05 16:30:38 +03:00
turbocool3r
18d5da09dd Add hf mfu signature command. 2024-07-05 16:04:16 +03:00
turbocool3r
eafa14e4e5 Add hf mfu eview command. 2024-07-05 03:32:23 +03:00
turbocool3r
9488127531 Add commands for reading and writing to/from MF0/NTAG emulator memory. 2024-07-05 02:58:15 +03:00