Commit Graph
511 Commits
Author SHA1 Message Date
kormax 4a2e161954 Move common functions related to Mifare GetVersion to a dedicated Mifare Prime module 2026-04-16 18:55:34 +03:00
Antiklesys 8d6e474a75 hf iclass legbrute speed improvements #1
Imported updates from legbrute hashcat modules to speed up hf iclass legbrute

1. Bitslicing — biggest win (~32×)
Kernel stores each cipher register (l, r, b, t) as 32 parallel 1-bit lanes in u32s (m64000_a3-pure.cl:147-201, bs_iclass_tick) and computes 32 MACs per tick. The CPU doMAC_brute does 1 at a time. A 64-bit bitslice port would give ~64× per core; AVX2 gets 256×. This is the single largest speedup lever.

2. Early-reject after 8 output ticks
In m64000_sxx (m64000_a3-pure.cl:534-535) the kernel breaks out as soon as the first MAC byte can't match. doMAC_brute always produces the full 32 output bits before memcmp. Comparing byte-by-byte as bits are produced saves ~3× on the output phase since 255/256 keys fail after byte 0.

3. Pre-expanded y_ccnr bit array
Kernel expands the 96 input bits into a flat array once (m64000_a3-pure.cl:239-247) and reuses it for every candidate. suc_bytes in cipher.c:181 re-does b >>= 1 shifts for every key. Pre-expanding lets the inner loop be branch-free and vectorizable.

4. Widen lanes to 256/512 via AVX2/AVX-512. The bitslice code is written against a single uint64_t lane type — swapping for __m256i/__m512i (or an abstracted bs_word_t) gives 4×/8× throughput on hosts that support it, with scalar u64 fallback on ARM/older x86. NEON gives 2× for ARM.
2026-04-15 01:09:19 +08:00
Philippe Teuwen 961e59b5d1 Revert "Release v4.21611 - BREAKMEIFYOUCAN!"
This reverts commit aaacc75e9f.
2026-04-14 10:19:30 +02:00
Philippe Teuwen aaacc75e9f Release v4.21611 - BREAKMEIFYOUCAN! 2026-04-14 10:19:30 +02:00
iceman1001 36a5c881d0 proper fix for ip, socket handling for win32 , proxspace env 2026-04-11 08:01:48 +07:00
Antiklesys 128e4006bf SE Conf Card Sim Base
Added `hf secc` to build a base for simulating basic function of iclass SE config cards
2026-03-30 22:58:52 +08:00
kormax c8a4314353 Add hf gst commands 2026-03-14 17:34:58 +02:00
pingu2211 c07d688597 Implement Gallagher MIFARE Classic card writing and update MAD sector functionality 2026-03-10 15:13:42 +11:00
Philippe Teuwen 0304977eba tabs 2026-03-01 15:27:31 +01:00
Philippe Teuwen 5175c32c35 Fix makefile warning when there is no qt6 available 2026-03-01 15:27:18 +01:00
Philippe Teuwen 55df8edbba Add support for Qt 6.2.4 (Ubuntu 22.04) 2026-03-01 13:23:07 +01:00
Philippe Teuwen fcb337f086 makefile: limit qt6 fix 2026-02-28 23:45:58 +01:00
Philippe Teuwen 20d194e5bd Makefile: serialize targets to avoid interleaved compilations. -j still supported. 2026-02-28 19:53:41 +01:00
Philippe Teuwen 55e58466aa Fix C++ flags handling (fix relocation error on Fedora 41) 2026-02-28 18:15:44 +01:00
Philippe Teuwen f9cfda9a72 Add hardening flags (NOHARDENING=1 to disable them) and fix Windows stringop-overflow 2026-02-28 16:22:44 +01:00
kormax de94afa4f6 Add 'hf aliro info' command 2026-02-27 20:26:50 +02:00
Philippe Teuwen 93791a0d9b Add SKIPQT6 if one wants to force Qt5 2026-02-27 13:15:12 +01:00
Philippe Teuwen b2df498e3e fix the fix of the fix 2026-02-27 00:41:22 +01:00
Philippe Teuwen d5d8a7192a Qt6: makefile fixes 2026-02-27 00:38:05 +01:00
Philippe Teuwen b2d34ddc15 Fix for Ubuntu 24.04 Qt6 2026-02-27 00:20:54 +01:00
Philippe Teuwen 9d97588c84 docker updates 2026-02-27 00:01:14 +01:00
Philippe Teuwen 06446cae10 Qt6 support for the client. Step 1: Makefile 2026-02-26 18:11:52 +01:00
iceman1001 338ab9c81a Revert "Release v4.21128 - Permafrost"
This reverts commit b10235b03b.
2026-02-25 16:15:01 +01:00
iceman1001 b10235b03b Release v4.21128 - Permafrost 2026-02-25 16:15:01 +01:00
kormax 34f18a0002 Add polling loop annotation support for iso14443b 2025-12-19 09:29:31 +02:00
iceman1001 fd06c38a89 add QR code generation in the pm3 client. It's a text based version using unicode to print the generated qr code. Might not work on all things but its a MIT license and a simple to use project 2025-11-09 16:54:21 +01:00
Henry Gabryjelski 563abf66ed Update id48lib
* Add its own CMakeLists.txt
* Add id48 unit tests for its recovery API
* Add id48 unit tests for its generator API
* Add id48 espresso files, generator for those files, and validation test

* Proxmark3-specific:
  * update client/Makefile
  * update client/deps/id48lib.cmake
  *
2025-10-20 17:58:59 -07:00
iceman1001 628d8633f7 Revert "Release v4.20728 - Phrack"
This reverts commit ee9b3f4acb.
2025-09-11 20:31:08 +02:00
iceman1001 ee9b3f4acb Release v4.20728 - Phrack 2025-09-11 20:31:08 +02:00
Josh Stiebel c98319a7e7 cmd saflok added 2025-08-28 04:06:57 -04:00
Philippe Teuwen 8f9bb379ad fix client Makefile if no Makefie.platform is provided 2025-07-13 11:57:26 +02:00
iceman1001 2597c7576e style 2025-07-10 11:52:39 +02:00
iceman1001 c7cf62fcf1 Added support for sending and receiving MQTT messages. It enables end user to quickly upload or share JSON files between them. Given the nature of MQTT, I also worked with @KevTheHermit who has proxdump.com site, where you can upload pm3 dump files and browse. He added support for MQTT uploads, so the process to share a file and it gets also uploaded to proxdump.com is very smooth. Feel free to improve this functionality with TLS etc. For now it looks quite promising. 2025-07-08 21:15:09 +02:00
iceman1001 1f718683b3 Revert "Release v4.20469 - Daddy Iceman"
This reverts commit 9fa173c727.
2025-06-16 16:18:01 +02:00
iceman1001 9fa173c727 Release v4.20469 - Daddy Iceman 2025-06-16 16:18:01 +02:00
Philippe Teuwen 899e571957 Fix homebrew install 2025-04-03 22:20:39 +02:00
Philippe Teuwen 74a3920c0d Fix TOOLS_PATH and DICTS_PATH for maintainers (stripped DESTDIR) 2025-03-26 01:08:06 +01:00
Philippe Teuwen a8604e3ff9 fix make install on osx, thanks DaveItsLong 2025-03-25 22:38:39 +01:00
iceman1001 6ed1853320 Revert "Release v4.20142 - Blue Ice"
This reverts commit a657dbda9b.
2025-03-25 16:18:49 +01:00
iceman1001 a657dbda9b Release v4.20142 - Blue Ice 2025-03-25 16:18:49 +01:00
douniwan5788 4bde83b89d Added lf hitag htu support for Hitag µ/8265 2025-03-19 18:56:23 +08:00
Philippe Teuwen 4e5d68851b Add pm3_resources helpers for Python scripts to find tools & dicts 2025-02-20 15:07:45 +01:00
Jakub Kramarz 5750d47ba3 rename util_hidsio to hidsio 2025-01-27 20:17:44 +01:00
Jakub Kramarz 2ae2388cef util_hdsio: extract getSioMediaTypeInfo 2025-01-27 20:17:43 +01:00
Philippe Teuwen f26727eb28 Refactor originality checks. Notes:
- removed pk "NTAG424DNA, NTAG424DNATT, DESFire Light Ev2", "04B304...3B" which is a typo of "DESFire Ev2", "04B3...3A"},
- MIKRON pk currently not used because I don't know if it's for MFC, MFUL or sth else
- ST25TN pk added but currently not used, need to be implemented/tested
- ST25TV pk currently not used, need to be implemented/tested
2024-12-14 14:29:50 +01:00
iceman1001 daff8228a2 Revert "Release v4.19552 - Orca"
This reverts commit a039ac18cc.
2024-11-22 12:15:19 +01:00
iceman1001 a039ac18cc Release v4.19552 - Orca 2024-11-22 12:15:19 +01:00
ANTodorov f3e9a79ca4 add option to build against non-default python3 package 2024-11-14 09:01:41 +01:00
Jean-Michel Picod 0c116f5517 Add the old bit32 LUA module as a compatiblity shim.
Many exisiting LUA scripts are using bit32 which has been removed
in LUA5.4 in favor of native language support of bitwise operations.
Yet, it's easier to backport this module rather than patching all the
existing LUA scripts because most of them can't be tested.
2024-09-20 17:21:17 +02:00
Jean-Michel Picod 18e3600d95 Update build and CI scripts to LUA 5.4 2024-09-20 17:21:17 +02:00