Check keys in hf mf nested and hf mf chk#414
Conversation
|
By now its not faster then 12,5 ms/fail auth |
|
each cycle: |
|
mifare_classic_authex() it seems here 9ms timeout. is it needs to have this? maybe do like 3-4ms timeout? p.s. |
|
12.5 ms / auth == 80 auth/s Quite good I say. When I measured mine, I got about 59-60 auth/s Not sure of the select_card_fast will be much faster. Your idea of just have spindelayus(timeout) is faster then sending a zero byte and then wait... But in my hardnested it states that it can't select card very often. I'm guessing the spindelay is too short. The 9ms timeout seems too long. Very interesting concepts you have, @merlokk :) |
|
spindelay is not needs for this algorithm because it already in mifare_classic_authex()-- iso14a_timeout Tomorrow i will check jcop and plus sl1 and maybe do 2 types of timeout "fast" and "slow" card command (single command, not auth) avg response time - 1500-2000 units (*74ns) = 111mks-148mks |
|
Not sure if the iso14a_timeout applies to what @pwpiwi was aiming at. By sending a zero byte package and waiting forces the reader to comply and reset the state machine. Your idea of skipping the zero byte and just wait to achive the same will be faster. |
|
The default timeout is based on NXPs documentation. 10ms is specified as the timeout for the write block command. For the authentication commands it is 1ms only. You therefore can use iso14a_set_timeout(106) for the purposes of hf mf chk. But be aware that some cards may not follow the specs (clones, magic cards, emulations on processor cards). |
|
So the zero "dummy_answer" isn't needed anymore? Is that what you are saying? |
|
as i see all my cards have 1000(74mks)-1500(111mks) units (1unit-74ns) auth time |
|
let me check. i have many thoughts about that. it seems - it not needs as not needed timeout after auth. |
|
Your unit (mks), is that (us) microseconds? |
|
microseconds. bad translation) |
|
if timeout 300us - speed (4,4 ms/wrong auth) - sometimes card cant be selected and works not so stabile JCOP have a very strange chip. sometimes it dont authenticate sector with correct key and 1ms pause before auth dont works.... jcop log: next ill check with dummy command |
|
with dummy command and 5ms timeout - 8,5 ms/wrong auth - nothing changes for JCOP( it seems i will do switch 3 timeouts 300us, 1ms, 5ms and that's all. I try to reach stabilization with JCOP but it seems it possible in one way: switch off-on field before select. |
|
Not sure if JCOP wants you to send a HALT command.. And RATS... |
|
with RATS it not answers to mifare commands. |
|
It seems all is ok. as for JCOP: instead of halt - works like halt (maybe because we send to card wrong command and it needs to drop from field)
It seems pull ready for merge))) |
|
Travis CI Linux (Ubuntu 14.04.5 LTS) compile failed with |
|
fixed? strange... |
|
maybe lets connect travis to this proxmark? |
I am not sure if this would work or would make sense.
I therefore suggest that each of the developers uses Travis on their own repositories. |
|
only the admin of a repository can link it to Travis and thanks))))) I have not thought about "each of the developers uses Travis on their own repositories" maybe i can install it. it will needs to push cfg file to master, but i look - maybe it can work wo this |
|
I am using a separate branch which only differs in having the .travis.yml config file. And I have Travis configured to watch this branch for changes. |
|
If you don't mind: Can you add the s and ss options to hf mf nested as well? |
|
OK. I look on Tuesday. it needs to add timeout to nonce collecting also |
|
i see that there is a 9ms timeout.... |
|
I just thought about forwarding the optipns to chk keys. The new timeout in chk keys makes nested fail on slow cards. |
Reworking hf mf chk. Transfer main cycle to arm side. It have been not too hard to implement)
i will add hf mf fastcheck in next pull request