Merge pull request #1046 from tcprst/iclass_cliparser2

hf iclass eload, loclass - now use cliparser
This commit is contained in:
Iceman 2020-11-02 08:03:58 +01:00 committed by GitHub
commit 03bd9e00b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 91 deletions

View file

@ -135,7 +135,7 @@ Options
---
f <filename> : load iCLASS tag-dump filename
pm3 --> hf iclass eload f hf-iclass-db883702f8ff12e0.bin
pm3 --> hf iclass eload -f hf-iclass-db883702f8ff12e0.bin
```
Clone iCLASS Legacy Sequence
@ -160,7 +160,7 @@ pm3 --> hf iclass sim 3
Simulate iCLASS Sequence
```
pm3 --> hf iclass dump k 0
pm3 --> hf iclass eload f hf-iclass-db883702f8ff12e0.bin
pm3 --> hf iclass eload -f hf-iclass-db883702f8ff12e0.bin
pm3 --> hf iclass sim 3
```
@ -173,7 +173,7 @@ k <key> : Access Key as 16 hex symbols or 1 hex to select key from memory
e : If 'e' is specified, elite computations applied to key
pm3 --> hf iclass sim 2
pm3 --> hf iclass loclass f iclass_mac_attack.bin
pm3 --> hf iclass loclass -f iclass_mac_attack.bin
pm3 --> hf iclass managekeys n 7 k <Kcus>
pm3 --> hf iclass dump k 7 e
```

View file

@ -8,15 +8,15 @@ LOCLASS, is a two part attack. First is the online part where you gather needed
The second part is offline, where the information gathered from the first step is used in a series of DES operations to figure out the used
masterkey.
run `hf iclass loclass f abc.bin`
run `hf iclass loclass -f abc.bin`
If you don't have access to a iClass SE reader configured in Elite mode there is a test file which you can use.
`hf iclass loclass f iclass_dump.bin`
`hf iclass loclass -f iclass_dump.bin`
# Unit testing
In order to verify that loclass is actually working, there is a "unit" test mode.
run `hf iclass loclass t`.
run `hf iclass loclass --test`.
This test mode uses two files.