Commit graph

254 commits

Author SHA1 Message Date
iceman1001
875b3c44b4 unify text - step 1 2025-03-25 10:12:16 +01:00
Philippe Teuwen
dc1cab14ef cppcheck redundantAssignment 2025-03-24 21:41:31 +01:00
iceman1001
3a3ea75d12 style 2024-11-15 14:28:14 +01:00
Antiklesys
0b7d76d7cd Fixed keygen bug in legrec
Fixed legrec bug that was generating blank keys after misalignment in commit: 110dfab668
2024-11-07 19:20:50 +08:00
Antiklesys
110dfab668 Improved algorithm for hf iclass legrec
Improved algorithm for hf iclass legrec by taking in account the hash0 limitations for the ending bits distributions of each key bite, thus reducing the key entropy and number of required tries from 2^24 to almost 2^19
2024-11-06 16:52:48 +08:00
iceman1001
b3285cce8a style 2024-11-02 15:13:40 +01:00
Antiklesys
88364f6a48
Update iclass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2024-10-20 11:18:50 +08:00
Antiklesys
d6f8f9db4a Updated hf iclass legrec arm side and added custom key to dictionary
Updated hf iclass legrec arm functionality
Added new custom standard key to the repository

Todo: Improve keygen algorithm efficiency
2024-10-20 11:16:46 +08:00
iceman1001
618451048e allow for a reply to be sent when simulating iclass 2024-09-13 13:38:25 +02:00
iceman1001
9c181dd83d step one of bounds checking all responses when receiving ISO14443A frames... because @doegox find a missbehaving IC clone..... 2024-09-05 17:52:10 +02:00
Antiklesys
f9970a3048 Update iclass.c
Improved error logging to better understand what's happening
2024-09-02 17:53:22 +08: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
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
iceman1001
2981dd94f7 had to keep track if the field is on or off on deviceside for 14b raw.\nAdded picopass ISO14443-B anticollision. It allows us to send raw packages over 14b. 2024-01-16 15:12:16 +01:00
nvx
7b0ca43695 Fix iClass dump truncating the AA2 area and improve dump reliability by fixing cmd retry delays. 2023-11-26 19:04:54 +10:00
iceman1001
4986959706 fix logic for epurse updates 2023-10-09 15:48:01 +02:00
iceman1001
7b3e84c0d6 better fix for the PAGEMAP issue 2023-10-09 15:14:53 +02:00
iceman1001
d41f0c394e hf iclass wrbl - the pagemap bit maps isnt the best to handle all four cases. This atleast fixes one issue with them 2023-10-09 15:04:49 +02:00
nvx
186308cb4a Add hf iclass creditepurse command to allow crediting the epurse debit value. 2023-09-10 23:00:23 +10:00
Philippe Teuwen
8ac8e3d7d0 reduce variable scopes 2023-01-15 02:23:19 +01:00
nvx
4180635218 Add --shallow option to hf iclass reader commands to do shallow (ASK) reader modulation instead of OOK. 2023-01-04 23:59:03 +10:00
iceman1001
6290d50564 make style 2022-07-25 08:00:30 +02:00
iceman1001
5a8d9b7954 prep mac 2022-07-23 17:39:40 +02:00
iceman1001
7aeb462e18 convert 15readercommand to use NG frames. Removing the confusing of status and length of received package in same return param. Now returns proper status and length is a ref param 2022-03-23 17:37:40 +01:00
Yann GASCUEL
abb840558f iso15: add support for slow and 2SC to GetIso15693AnswerFromTag()
Allow running raw iso15 cmd expecting slow and/or dual subcarriers
answers. E.g. sending slow 2SC inventory ("hf 15 raw -c -d 250100") is
now working.
2022-03-16 17:25:27 +01:00
Yann GASCUEL
c5f216558c iso15sniff: add an "iclass" bool parameter to SniffIso15693()
This is required to disable ISO15 flags parsing when sniffing iClass
because those flags don't exist in iClass coms (iClass iso15 based
communications are always fast and using only one subcarrier).
2022-03-16 11:26:07 +01:00
iceman1001
b55a33b1d7 cppcheck fixes for const 2022-01-06 15:22:36 +01:00
Philippe Teuwen
b703bb746b Adapting license headers, WIP 2022-01-06 02:20:38 +01:00
Philippe Teuwen
5561466fe8 make style 2022-01-05 18:56:56 +01:00
iceman1001
0a4c9f83ac fixes to hf iclass configcard mem setup, textual output, MIX->NG convertion 2022-01-03 22:08:55 +01:00
Philippe Teuwen
88308ea727 typos 2021-10-10 01:35:45 +02:00
Philippe Teuwen
5b54385347 rename globals 2021-08-21 23:08:26 +02:00
Philippe Teuwen
437f5f6448 rename typedef structs 2021-08-21 22:45:03 +02:00
iceman1001
078ed4dbd4 init header as 0xFF 2021-05-10 13:59:29 +02:00
iceman1001
e4f55556ba style 2021-05-05 21:04:48 +02:00
iceman1001
cd9090b6c8 hf iclass chk - now uses NG 2021-05-03 20:01:12 +02:00
iceman1001
80817cea00 hf iclass chk - rework OLD -> NG. And textual 2021-05-03 09:31:51 +02:00
iceman1001
dea87b8c48 text 2021-04-15 22:34:31 +02:00
iceman1001
6eb02c5f8e cppchecker fixes 2021-04-13 08:17:11 +02:00
iceman1001
8a05a4d1d7 smart raw - now use NG.\nhf iclass config - added more support for keyrollning (WIP)\n 2021-04-08 09:34:11 +02:00
Philippe Teuwen
e5c5629cf2 Some tunings of otptear:
- make tearoff_delay_us and tearoff_enabled globals
- use tearoff_hook and remove Dbprintf in critical tearoff timing
- move initial write from MifareU_Otp_Tearoff to CmdHF14AMfuOtpTearoff and make it optional (old behavior was writing initial 00000000 when -d was not provided)
- tearoff: compare with initial write, not with previous tearoff outcome
- rephrase some messages
- track all begin and end of erase and write phases, with quite complex logic to cover multiple cases (starting in middle of erased phase, starting with write 0, ...) and report them
- check against initial write error
- repeat same timing (up to 10x) in case of write/read errors then quit
- typos
2021-03-07 23:48:55 +01:00
Anže Jenšterle
cd36770c5e
make style 2021-02-09 16:56:55 +01:00
iceman1001
6e0673fd02 cppchecker fixes 2021-01-28 12:05:32 +01:00
tcprst
f4b100b068
show both decimal and hex for iclass blocks 2020-11-25 18:42:22 -05:00
tcprst
88b7efe69a
hf iclass restore - now use cliparser 2020-11-25 18:00:32 -05:00