Commit Graph

119 Commits

Author SHA1 Message Date
Iceman
a054177949 Merge pull request #3156 from cindersocket/fix-3041
Fixes RfidResearchGroup/proxmark3#3041
2026-03-25 07:40:53 +07:00
kormax
e44e1f1cbb Introduce simple regex utils 2026-03-24 20:21:51 +02:00
CinderSocket
19b6534436 Fixes RfidResearchGroup/proxmark3#3041
Adds --ascii option
2026-03-19 22:27:33 -07:00
CinderSocket
2c403e157d client: unify wiegand input handling
Extract the reusable Wiegand normalization and packing flow into
wiegand_formatutils and move existing callers onto that shared path.
This rebuilds the feat-wiegand branch as one focused commit against
upstream/master instead of trying to preserve the original commit chain.

Key changes:
- add shared helpers for plain binary, raw HID, new PACS, and formatted
  Wiegand input
- centralize binary rendering used by cmdwiegand and PACS decode output
- update lf hid sim/clone to resolve one input mode through the shared
  Wiegand layer and enforce the LF packed transport limit explicitly
- update hf mf encodehid to accept bin/raw/new/formatted Wiegand input
  through the same normalization path
- preserve legacy raw HID transport behavior while clarifying the
  packed-HID vs LF transport limits in error reporting
- add offline regression coverage for the new PACS decode output and add
  interactive online targets for LF HID Wiegand and MIFARE encodehid

Validation performed:
- make client
- bash -n tools/pm3_tests.sh
- bash -n tools/pm3_online_tests.sh
- ./tools/pm3_online_tests.sh -h
- ./client/proxmark3 -c 'wiegand encode -w H10301 --fc 31 --cn 337'
- ./client/proxmark3 -c 'wiegand encode -w H10301 --fc 31 --cn 337 --new'
- ./client/proxmark3 -c 'wiegand decode --new 068F80A8C0'
2026-03-17 16:45:14 -07:00
kormax
892559ac05 Add tests for zlib support 2026-03-14 22:16:59 +02:00
CinderSocket
08cd96c5a9 Improve Wiegand PACS encode/decode and verbose output 2026-03-10 15:32:25 -07:00
Philippe Teuwen
601bdc371a more CI & docker tuning 2026-02-26 20:37:45 +01:00
Philippe Teuwen
acb2dc0e10 Add SKIPUV for package maintainers 2026-02-25 17:55:47 +01:00
Philippe Teuwen
b4ab732260 mfulc_des_brute: add unit tests and make check 2026-01-19 21:47:49 +01:00
iceman1001
e39a7cdb57 added test for open printer tag 2025-11-10 14:09:03 +01:00
Philippe Teuwen
d1a093ec94 Add support for uv and simplify docker tests 2025-11-04 01:01:02 +01:00
Aaron Levy
8c2dd4dded Adding test cases 2025-10-09 10:55:31 -07:00
iceman1001
65607fc727 added Ultralight-C simulation. hf mfu sim -t 13. Use eload first. Also added support to upload UL-C dictionaries and UL-AES to spiffs memory. A lot of textual reworked across client. Unifiy texts and a bit more color ;) 2025-06-19 17:26:20 +02:00
Hanra
d143d9a65c Update pm3_tests.sh
Added LANG=C to the script to enforce the English language so that it does not break when the system language is not English.

Signed-off-by: Hanra <37299738+HenraL@users.noreply.github.com>
2025-06-11 10:55:35 +02:00
Philippe Teuwen
f1b7454fcd Fix pm3_tests for OSX 2025-03-24 09:53:44 +01:00
iceman1001
98f6b263ff wiegand decode now accepts --new parameter to decode new padding format <len 1byte><pacs bytes> where len denotes number of zeros bits added in the end of the pacs bytes. You will need to shift accordingly. 2025-02-23 23:10:13 +01:00
Rick Farina (Zero_Chaos)
cd90af34a0 add opencl support to CheckFileExist()
CheckExecute() has a flag to tell it if a check needs opencl support or
not and can automatically disable the check if opencl checks are not
requested.  Mostly copy and paste the same feature into CheckFileExist
and add it where needed.
2024-09-11 16:21:29 -04:00
iceman1001
68693ae187 adapt test 2024-09-05 22:41:32 +02:00
Philippe Teuwen
28076af96d Add : recovering partial nested authentication with known nT 2024-09-03 23:43:28 +02:00
iceman1001
6a95f16102 style and text 2024-08-25 15:17:02 +02:00
Philippe Teuwen
9057371b2c pm3_tests: more staticnested* tests 2024-08-02 00:12:07 +02:00
Philippe Teuwen
c47578c048 sort mfc tools 2024-08-02 00:10:23 +02:00
iceman1001
d3d701f538 the generation of NrAr is used in the regression tests. I readded the old way and if you call the hitag2_gen_nRaR.py with five params, you get the nice commands instead 2024-05-27 15:08:49 +02:00
Henry Gabryjelski
20711e7037 Add em4x70 tests 2024-05-14 21:06:35 -07:00
Henry Gabryjelski
c40f4be3e6 re-enable broken hitag2 test 2024-05-06 07:59:41 -07:00
Henry Gabryjelski
9d33646b80 Disable broken hitag2 test so github actions work 2024-05-05 18:27:35 -07:00
iceman1001
3ef3e3a63d update signature data 2024-04-23 02:16:01 +02:00
iceman1001
c8849af5e0 This is the major changes made to the HITAG2 commands. Its heavly based on RFIDLers implementation and its been converted to work with Proxmark3. Special thanks to @kevsecurity for his amazing implementations of the Gone in 360 Seconds paper by Roel, Flavio & Balasch. Thanks to @adamlaurie for his RFIDler project. It wouldnt been doable without it. 2024-04-22 16:20:24 +02:00
iceman1001
67c14c5314 adapt regression tests 2024-04-22 09:21:55 +02:00
Marcos Del Sol Vives
760e4ebc9d Increase precision in color matching 2024-01-07 20:32:31 +01:00
Marcos Del Sol Vives
d27669f22c Allow image conversion when offline 2024-01-07 18:05:48 +01:00
iceman1001
9d55455d66 fix test for the change of text 2023-12-11 00:10:53 +01:00
iceman1001
7811a1830b adapt tests for new output 2023-12-09 12:03:18 +01:00
iceman1001
ecd7f53eda added a staticnested program that uses two different implementations. The Chameleon Ultra impl and PM3 Impl.\nRunning the test script will show how the CU impl has some issues 2023-11-11 15:46:47 +01:00
iceman1001
1234b08132 adapt to new sim module firmware version 2023-09-28 08:46:04 +02:00
Philippe Teuwen
87bdbef851 pm3_tests: timings of slow executions and faster aes bruteforce 2023-09-08 11:06:18 +02:00
iceman1001
0d1b86cc46 added regressiontests for cryptoRF SMA code part 2023-08-21 13:08:08 +02:00
Alex
6947a61d98 Whitespace 2023-08-09 14:30:07 +02:00
iceman1001
a2ea5e3a24 since mkversion doesn generate all the time and only writes to file the sha256, we check the string from --short instead 2023-08-03 07:43:30 +02:00
iceman1001
cd2394b472 fix 2023-07-21 17:27:03 +02:00
iceman1001
e8ff188868 added a test for cotag demodulation via data commands 2023-07-21 17:03:23 +02:00
Philippe Teuwen
8c4404134d fix test and add changelog 2023-07-15 23:20:48 +02:00
iceman1001
3f157d63d8 fix text since we changed description of command text 2023-07-10 00:46:12 +02:00
iceman1001
9b2657294a adapt test for indala text changes 2023-06-25 14:51:51 +02:00
iceman1001
f5e93c0a1c added a test for ndef signatures 2023-05-05 22:27:00 +02:00
iceman1001
c6a8f8cc89 fix test 2023-03-04 21:25:23 +01:00
Philippe Teuwen
8d53184c81 shorter long test for mfd_aes_brute 2023-01-15 18:45:40 +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
iceman1001
ec5de2bbdf revert check until bin file is available 2022-12-06 22:17:06 +01:00
iceman1001
53b2909f04 prepping for sim module firmware upgrade file 2022-12-05 22:32:40 +01:00