Commit Graph

6604 Commits

Author SHA1 Message Date
kormax 893ec3237e Add 'hf mfdes pc' command 2026-04-14 19:22:31 +03: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
Philippe Teuwen 07cb7e8a11 remove warning 2026-04-13 15:21:53 +02:00
kormax f9a5ba0d11 Fix uninit cppcheck warnings in GST module 2026-04-13 14:14:23 +02:00
Philippe Teuwen 57c75ff678 arraylen 2026-04-13 09:46:50 +02:00
Philippe Teuwen 88d20bd4f2 make style 2026-04-13 09:35:02 +02:00
Philippe Teuwen 06bedd410e ulaes info: align output 2026-04-13 09:30:40 +02:00
Iceman fc3dbe56bd Merge pull request #3208 from R4H33M/iclass-page-support
Add --page flag to hf iclass dump
2026-04-13 08:18:07 +07:00
Iceman 0adf450bc4 Merge pull request #3232 from Antiklesys/master
hf secc crypto bug fixes
2026-04-13 08:12:00 +07:00
kormax b8c2e2531f Annotate more FeliCa commands with 'hf felica list' 2026-04-12 12:40:20 +03:00
Antiklesys d331e57c78 hf secc crypto bug fixes 2026-04-12 03:16:41 +08:00
Iceman 14824ca680 Merge branch 'master' into mfp_write_checker
Signed-off-by: Iceman <iceman@iuse.se>
2026-04-11 14:24:26 +07:00
iceman1001 6af1a8e432 updated help text for `lf realy 2026-04-11 09:04:55 +07:00
Iceman 652e6fc136 Merge pull request #3228 from kormax/felica-system-annotation
Add FeliCa system code annotation
2026-04-11 08:09:52 +07:00
iceman1001 36a5c881d0 proper fix for ip, socket handling for win32 , proxspace env 2026-04-11 08:01:48 +07:00
team-orangeBlue 877e5c6b70 bugfix #2
oops #2

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:57:28 +03:00
team-orangeBlue 38af2eb1c5 bugfix
oops

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:56:59 +03:00
team-orangeBlue 9e52f0701f Correct ACL RO check
See commit 1cb843a22b

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:41:31 +03:00
team-orangeBlue 1cb843a22b Fix bug in ACL block-RO checker
The code as-is would bug out like below:
```
(input) --blk 255 -d ...f0f0f0...
[=] Sector trailer (ST) write detected
[!] ⚠️  Strict ReadOnly Access Conditions on block 240 detected
[!] ⚠️  Strict ReadOnly Access Conditions on block 241 detected
[!] ⚠️  Strict ReadOnly Access Conditions on block 242 detected
```
This is incorrect. in 16-block sectors, ACLs cover chunks of 5 blocks at once.
It should (and now does) look like:
```
[=] Sector trailer (ST) write detected
[!] ⚠️  Strict ReadOnly Access Conditions on blocks 240-244 detected
[!] ⚠️  Strict ReadOnly Access Conditions on blocks 245-249 detected
[!] ⚠️  Strict ReadOnly Access Conditions on blocks 250-254 detected
```

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:38:14 +03:00
team-orangeBlue 394aec40e2 Add ST+ACL check to hf mfp wrbl
Sector trailers are now checked for errors.
Writes should not go through if for whatever reason ACLs provided to write are invalid.

Reminder that ACLs are checked on the 4-byte method of MFP with the encrypted-only exchange byte.

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:14:36 +03:00
team-orangeBlue f8f6216958 Correct a typo in helptext
Mifare Plus ACLs are 4 bytes, not 3... oops
Fixed typo in `hf mfp acl`

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-11 00:11:41 +03:00
kormax 3eecb97a88 Add system code annotation for 'hf felica info' and 'hf felica rqsyscode' 2026-04-10 20:36:50 +03:00
iceman1001 a5140dd666 add win32 headers, will need to refactor the lf relay using win32 aswell 2026-04-10 17:05:12 +07:00
iceman1001 f070d8a06e lf relay - relays between two pm3 devices over internet. Defaults to port 8000, Thanks to Moreno for original source 2026-04-10 14:03:50 +07:00
iceman1001 1b80129132 text 2026-04-10 13:50:41 +07:00
team-orangeBlue b4da189aa7 Polish hf mf acl
Just cause...

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-09 23:43:47 +03:00
team-orangeBlue 9cf2f49d10 Add ACL command
Mifare Plus has an extra byte for ACL payloads.
That byte controls if data exchange can be plaintext or must be encrypted.

Support for decoding is added in this commit.

Signed-off-by: team-orangeBlue <63470411+team-orangeBlue@users.noreply.github.com>
2026-04-09 23:17:44 +03:00
kormax ad27ccae5c Remove use of printf in mfdes module 2026-04-09 00:20:31 +03:00
kormax 63a9a46b2d Replace space padding with dotted padding in 'hf mfdes getdelegateappinfo' 2026-04-09 00:16:52 +03:00
kormax f5d659235b Re-auth after failed response in 'hf mfdes brutedamslot' 2026-04-08 21:15:30 +03:00
kormax d6a18e0270 Implement 'hf mfdes brutedamslot' command 2026-04-08 20:50:44 +03:00
iceman1001 95845dfa6f style 2026-04-08 15:55:48 +07:00
Antiklesys 796ec85a6f Improved secc
Improved hf secc to use default apdu reply from the json file and not the hardcoded one (used as fallback now).
Removed old hardcoded functions no longer in use.
2026-04-08 16:23:50 +08:00
iceman1001 b011c76dd0 style 2026-04-07 08:35:30 +07:00
Matteo Scarlata 7b632dd1f0 client: fix lf hitag hts restore dump length handling 2026-04-07 01:59:41 +02:00
kormax c8f4430636 Implement DESFire delegated app info retrieval 2026-04-06 21:04:32 +03:00
Antiklesys 3bfc645a0a Added hf secc info command
Added `hf secc info` command to retrieve the Card Recognition Template
2026-04-06 18:43:30 +08:00
kormax 909e1c3f23 Fix secure channel issues with 'hf mfdes createdelegateapp' 2026-04-05 22:09:12 +03:00
kormax f9dc8319fb Add createdelegateapp to autocomplete 2026-04-05 11:26:39 +03:00
kormax 6e73038157 Guard against EV2, remove LRP, EV2 channel suggestions 2026-04-05 10:50:28 +03:00
kormax 9ab41dc875 Implement DESFire delegated application creation 2026-04-05 10:22:18 +03:00
Raheem Idowu b7689cd543 explictly set page = 0 in dump_req_t struct 2026-04-04 17:30:48 -04:00
Raheem Idowu 22dae554c7 hf iclass dump --page support 2026-04-04 17:15:13 -04:00
kormax e78735e26e Fix DESFire ChangeKey 'keyNo' annotation value 2026-04-04 21:43:24 +03:00
Antiklesys 51c44843c9 Removed --credit from hf iclass legrec
Option wasn't working and caused unnecessary complexity in the workflow.
2026-04-04 01:07:47 +08:00
iceman1001 d8d221bc81 add reference to blacktears 2026-04-03 12:20:59 +07:00
Iceman 11e4fa3fd7 Merge pull request #3204 from Antiklesys/master
Huge hf iclass legbrute performance improvements (4x)
2026-04-03 11:31:34 +07:00
iceman1001 1767fbfff9 text list 2026-04-03 11:27:08 +07:00
Antiklesys b5fe39cf34 Update cmdhficlass.c
Signed-off-by: Antiklesys <syselkitna@gmail.com>
2026-04-03 12:17:34 +08:00