Commit graph

3722 commits

Author SHA1 Message Date
douniwan5788 541ef26c39 fix: Display a more meaningful error message when attempting to write to a Hitag S tag in authentication mode using plain mode commands. 2024-08-25 03:25:16 +08:00
douniwan5788 75420482e4 refactor: Move Hitag 1 cmds to protocols.h 2024-08-24 02:15:28 +08:00
douniwan5788 c279f88f13 refactor: Move Hitag 2 cmds to protocols.h 2024-08-23 23:49:47 +08:00
douniwan5788 ad5a4134ec refactor: Move Hitag S cmds to protocols.h 2024-08-23 19:54:34 +08:00
Iceman 3a3deaf3cb
Merge pull request #2463 from douniwan5788/hitagS_plain
fix: Hitag S read/write in plain mode
2024-08-22 11:37:47 +02:00
douniwan5788 b76ebd9124 fix: Hitag S read/write in plain mode
Switch the counter clock to MCK/32 to allow a longer overflow time
2024-08-22 02:20:26 +08:00
douniwan5788 1efa52d704 add: Hitag S plain write 2024-08-22 02:16:10 +08:00
douniwan5788 d15537bbf1 Unified hitag naming style 2024-08-22 02:01:43 +08:00
Iceman a7b5961688
Merge pull request #2461 from douniwan5788/hitags_timing
Fix Hitags timing
2024-08-20 18:55:37 +02:00
douniwan5788 6053aae80b fix: hitagS timing issue and AC decode bug 2024-08-20 23:18:13 +08:00
douniwan5788 cbb95ac199 refactor: hitagS replace number with more meaning name from datasheet 2024-08-20 23:11:10 +08:00
douniwan5788 eca9830050 fix: lf cmdread. skip WaitMS(100) when keep signal field ON.
4 extra symbol.
avoid include SOF in crc-hitag
2024-08-20 22:50:13 +08:00
Philippe Teuwen 62735e4440 hf mf isen: longer RF reset 2024-08-07 17:01:59 +02:00
Philippe Teuwen 099a37af91 add --hardreset to hf mf isen 2024-08-07 16:09:11 +02:00
Philippe Teuwen ee8b9ca74b make style 2024-08-03 21:21:11 +02:00
Philippe Teuwen 5ca3013d23 hf mf fchk: fix single key mode 2024-08-02 11:02:41 +02:00
Philippe Teuwen c47578c048 sort mfc tools 2024-08-02 00:10:23 +02:00
Philippe Teuwen 18a3d04de1 hf mf isen incblk2 increment to the next sector 2024-08-01 14:28:00 +02:00
Philippe Teuwen fb0b448c4f hf mf isen: add nt indexes 2024-07-31 00:41:50 +02:00
Philippe Teuwen dc287c232f hf mf isen: support n=0 to just get first auth data 2024-07-30 13:23:08 +02:00
Philippe Teuwen e7c4ae2b1e hf mf isen for analyzing some static encrypted nonces MFC 2024-07-29 23:19:18 +02:00
Philippe Teuwen de326fc772 hf mf rdbl/wrbl/rdsc/nested: support extended AUTH 2024-07-29 22:38:30 +02:00
Philippe Teuwen 98273d00ae hf mf fchk: allow to crack a single key and show progress info 2024-07-29 22:24:46 +02:00
Michael Roland eeb1441b75 Merge remote-tracking branch 'remotes/origin/master' into standalone-mfc-rewrite 2024-07-25 12:50:34 +02:00
Michael Roland 0503d140f3 Move dictionary definition (MATTYRUN_MFC_DEFAULT_KEYS) into separate header file and prune keyset 2024-07-25 12:38:12 +02:00
iceman1001 4de7b7d6b9 style 2024-07-21 16:19:21 +02:00
Antiklesys f8fbcc2754 Bugfixes and code improvements for hf iclass legrec
1- Inlined functions related to hf iclass legrec within util.c for marginal performance gains.
2- Fixed bug preventing errors to be displayed properly and the process from interrupting on an error or on completion.
3- Fixed code indentation of the while loop in iclass.c
4- Fixed bug in the while cycle (was missing index++)
5- Improved ways to display hex results by using dbhexdump
2024-07-21 13:55:17 +08:00
Antiklesys 7a37ec2655 Update iclass.c 2024-07-20 01:45:53 +08:00
Antiklesys 03adc544df Update util.c 2024-07-20 01:42:47 +08:00
Antiklesys 66b030290a Update iclass.c
Changed more variables to lowercase
2024-07-19 18:42:37 +08:00
Antiklesys 27cbdd3031 Update on variables and comments
Added missing definition of picopass block size in util.c
Changed some variables to full lowercase
Added comment explanation on correlation between macs and decimal values
2024-07-19 18:34:36 +08:00
Antiklesys a127a38cb6 Updated some as per iceman's comments
Made multiple changes as per iceman's comments.
Removed redundant/unused function i forgot into cmdhficlass.c
Moved conversion functions in util.c for now but haven't yet check if it's possible to reuse the current fuctions already there. Will do that in a moment.
2024-07-19 18:27:36 +08:00
Antiklesys 1832997ccb Iclass Legacy Raw Key Recovery Function
Based on the work described in Dismantling iClass whitepaper.
hf iclass legbrute is tested working
hf iclass legrec is partially working: logic of operations and sequence seems to be in order and was tested on simulated data to be effective. The privilege escalation part is still not successful, but the logic should be correct.
2024-07-19 14:47:13 +08:00
Dani a8ac0f3053
Update lf_em4100emul.c
Rename fucntions (to avoid conflictinf with other standalone modes), print what ID is emulating and allow exit emulation with button long-press 

Signed-off-by: Dani <danidrach@gmail.com>
2024-06-23 17:14:59 +02:00
iceman1001 39639c803c fix a wrong size when clearning allocated memory 2024-06-15 20:36:11 +02:00
Michael Jung 8209440a54 Fix ISO 14443-B tag simulation
See https://github.com/RfidResearchGroup/proxmark3/issues/1652

- Fix Bit Coding PICC -> PCD:  Encoding for 0 and 1 bits were reversed.
- Add a frontend delay for TR0 (No subcarrier) in TransmitFor14443b_AsTag.
- Remove unconditionally prefixing the encoded data with two '1' bits.
- Improve the Type B PICC State Machine implementation.

With these improvements my PCD can read the ISO 14443-B tag emulated by a
Proxmark3 Easy.

Signed-off-by: Michael Jung <michael.jung@secore.ly>
2024-06-11 19:05:08 +02:00
iceman1001 7329dcd3bf Revert "Release v4.18589 - Aurora"
This reverts commit aceed281e8.
2024-05-28 10:36:32 +02:00
iceman1001 aceed281e8 Release v4.18589 - Aurora 2024-05-28 10:36:32 +02:00
iceman1001 6bdfe11c1a minor fixes 2024-05-28 10:00:11 +02:00
iceman1001 369db7c9d7 style 2024-05-27 20:29:02 +02:00
iceman1001 b9a583cdb5 swapped out to use bigbuff memory allocation and also show an empty message 2024-05-21 18:31:51 +02:00
iceman1001 00407383fe hitag2 crack1,2 fixes. The error response I never seen, the fct to hex2bin prone to overflows. This should make both attack vectors more stable 2024-05-20 14:22:55 +02:00
iceman1001 7dfcc47975 Merge branch 'master' of github.com:RfidResearchGroup/proxmark3 2024-05-16 22:51:06 +02:00
iceman1001 d9ec99f903 found the bug in a call to hex2binarray() fct which overwrote first 16 bytes of keystream. Fixed loops. Crack2 now generates same data as RFIDLer impl. 2024-05-16 22:49:24 +02:00
Michael Roland bf86f3a84a Merge remote-tracking branch 'remotes/origin/master' into standalone-mfc-rewrite 2024-05-15 16:16:31 +02:00
Michael Roland 9d65fa6aee fix incorrect display of partial emulation state 2024-05-15 15:34:08 +02:00
mifa-om 12f9ac5275 fixed em4x50_sim_read_bit 2024-05-15 11:34:44 +02:00
iceman1001 498af46fbf fix #2384 the use of free() is completely wrong as we use bigbuff allocations. Converted the old style to new and removed the dynamic allocation. 2024-05-15 09:36:31 +02:00
Iceman 2b276cae1a
Merge pull request #2385 from henrygab/em4x70_add_tests
add `lf em 4x70 calc` and self-tests
2024-05-15 09:19:41 +02:00
Henry Gabryjelski b7fff95b7c Improve editor folding (some editors use indentation as cue) 2024-05-14 19:16:37 -07:00